CategoriesIX4-300D

Preserve custom Servers after IX4-300d Update

Lenovo recently released a firmware update for their IX4-300d NAS to address critical security vulnerabilities that left many devices exposed to potential hacker attacks. While it’s highly recommended to apply this update to keep your system secure, users who rely on custom configurations—particularly those using custom startup scripts to run servers or applications—should proceed with caution. Updating the firmware can overwrite or disable these scripts, potentially breaking your setup and preventing essential services from starting automatically.

In this guide, I’ll walk you through the process of safely updating your NAS firmware while preserving your custom server functionality. We’ll back up key configuration files, reapply custom startup scripts post-update, and verify that everything runs smoothly. With the right steps, you can enjoy the latest security improvements without sacrificing the features and tweaks you’ve added to your system.

Requirements

Before you begin, ensure you have the following tools and files ready:

This method has been successfully tested with all firmware versions up to 4.1.110.33149.

 

ix4-300d firmware update

ix4-300d_update2

ix4-300d_update3

 

Updating Firmware – Version 4.1.102.29716 and Up

Access NAS Interface

  • Open a web browser and log into your NAS.

  • Navigate to “All Features”, then click on the “Software Updates” icon.

  • A table will show your current firmware version and offer the option to download the latest version.

Upload and Apply the Firmware

  • Click the Action icon and select the downloaded firmware file if it’s not already loaded.

  • Click Upload to send the file to your NAS. Once completed, you’ll return to the update screen.

  • You should now see a message like:
    “Version 4.1.xxxxx is ready to apply.”
    Click Apply to begin the update process.

Wait 9 to 10 minutes for the update to complete. The NAS will reboot during this process.

Re-enable or Confirm SSH Access
After the firmware update, your NAS should retain SSH access. If SSH was disabled, follow this guide to re-enable SSH.

Restore Custom Startup Script
The firmware update overwrites your startup configuration. To restore your server or service auto-start functionality:

  • Log in via SSH as root:

    ssh root@<your-nas-ip>

    Use soho as the username and your admin password if not changed.

  • Launch the config editor:

    /opt/editconfig.sh
  • In the nano editor that appears, scroll to Group 1 and insert the following code before the closing </Group> tag:

    <Program Name="init-opt.sh" Path="/opt/init-opt.sh">
    <SysOption Restart="-1"/>
    </Program>
    ix4300dpreserveupdate102
    Putty Startup Script
  • To save:

    • Press Esc

    • Press Ctrl + X

    • Press Enter to confirm the filename and save

⚠️ Warning: Double-check the placement of your inserted code. Any syntax error or misplacement can prevent your NAS from booting correctly. Only reboot if you’re confident the changes are correct.

Reboot NAS
Once you’ve saved the configuration correctly, reboot your NAS. Your custom startup script should now execute as intended on every boot.

 

Updating Firmware Up to Version 4.0.8.23976

For firmware versions below 4.1.102, the process is largely the same, with one small difference in where to insert the custom script reference.

Login and Update

  • Log into your NAS web interface.

  • Go to All Features > Software Updates.

  • Download and upload the firmware file as described above.

  • After uploading, the firmware will show as ready to apply. Click Apply to begin the update process.

SSH and Modify Startup Config

  • After the update, login to your NAS via SSH using PuTTY or terminal.

  • Launch the config editor:

    /opt/editconfig.sh
  • In the nano editor, scroll down and find the <Program> block containing mozzyclient.
    Directly under it, insert the following block:

    <Program Name="init-opt.sh" Path="/opt/init-opt.sh">
    <SysOption Restart="-1"/>
    </Program>
    ix4300dpreserveupdate102
    Putty Startup Script
  • Save your changes (Esc, then Ctrl+X, then Enter) and review your file for accuracy.

Restart Your NAS
Once confirmed, reboot the NAS. Your custom init-opt.sh script will now execute during boot as before the firmware update.

31 comments on “Preserve custom Servers after IX4-300d Update”

4.1.102.29716 Changelog:
Atmos and Mozy Backup are no longer included as built-in LifeLine applications. seems like they deleted the mozy app, I will update mine soon and try to find a new way to enable servers again, thanks for letting me know.

I added it to last line. Rebooted and now it’s stuck at 70%. I can’t get it running. Kinda a brick right now. Not sure how I can undo the change since not booting up completely.

not smart of just trying to paste the line at the end, The warning messages in the post are not for decoration. The best solution probably is to bring it back for warranty and hope they fix it for you. Or you could try restoring the firmware over USB

Let me know what you figure out. I am replacing this NAS anyways due to some other issues with it.

Yes; I have attached / called this HDD into Symantec BE2014 but after upgrade FW 4.1xxxxxx its not able to attach. Tried almost everything

My replacement NAS is coming tomorrow. I was having issues anyways so glad they replaced it. It’s the Diskless version with firmware on chip. I am guessing can still hack this one for SABnzbd, Sick Beard and Couchpotatoe?

So my question is on the diskless version since firmware is on the eprom are you editing it or does it also put OS on drives and that was your really using/editing?

The firmware will probably run from the chip since you should be able to get in the webGUI without any disks installed. However if the webGUI is not the full firmware but only a “setup” firmware that copies the full firmware to the driven your firmware will still run from the drives… Let me know how they do it 🙂

Steven I got the imager program to reimage my drives or might just switch the diskless version tonight when get home. I was hoping that the newest firmware would work but guessing no luck?

I will be doing it tonight when I get home and replace NAS or reimage it. Not sure if should keep the diskless version or the other since have this option now.

So if boot the diskless version and access web interface tells you to add drives. So I put my drives in from bricked NAS and boots fine into older firmware. So now I can backup my files. Still not sure how all works as far as adding programs.

Steven thx for the update, just to be clear, do I have to downgrade my firmware?
Right now I’m on 4.1.102.29716
Or do I just have to add

in level 1?

you don’t have to downgrade, i added a new guide “Updating to firmwares from 4.1.102.29716 and up”, this guide works for the new firmware

Yes it works, thx for that – sorry I didn’t updated my comment
But I have problem with ipkg. I.m doing it right now and some times I have error 22 sometimes error 1 (different after nas restart)
Plus maybe You can write a tutorial for NZB Drone?

i will try to find a solution for your problem, also i did not know NZBdrone but it seems like a very handy app… i’ll give it a try

Steven, if You need any testing please fell free to contact me directly via email and I will help as much as I can.

thank you for this info however does the installing optware still work? my ix400-3d seems to never save the packages once i do it. Again thanks for the great tips! i’m running the latest firmware as of aug 1, 2014 v 4.1.102.29716.

One thing i’m having an issue figuring out is how can i get Twonky to rebuild the video thumbnail cache. my 500+ movies no longers how the movie folder.jpg thumbnail art and i have yet been able to figure out RPC command or file to clear to get these to generate. Worked great prior to the firmware updates. TIA!

Hi Steven

Thanks for the great guide. With the help of these guides and others I found, I was able to get sabnzbd, sickrage and couchpatato installed on my ix4-300d, offloading it from my N5550. What I do miss is nzbdrone, which runs beautifully on my N5550. My goal is to have the ix4-300d do the heavy lifting and the N5550 act as my XBMC media center.

Have you had a look at nzbdrone yet? It does have one vital prerequisite, mono (mono project), .net libraries.

I have the same problem, who can tell me if I solved this problem? Why is the data not saved after a reboot? What can you think of?

I have the same problem, who can tell me if I solved this problem? Why is the data not saved after a reboot? What can you think of?

Hello, does anyone know how to return to the factory firmware of the PX4-300d? With the update “Milestone Arcus” was installed and the native App for “video surveillance” webcams was lost, which was free and had a lot of compatibility with my cameras. I appreciate the support as I have searched all known websites and this is my last resort.

Leave a Reply

Your email address will not be published. Required fields are marked *