I started with a TDC HomeDisk with TDC firmware version
335AFN0D0. I then physically removed the harddrive from the enclosure and connected it via SATA to USB directly to my laptop. I erased all contents of the drive and added an empty file named mount.sda1.rw.flag directly to sda1.
I then downloaded Mijzelf's
sysdisk.401AF01C0.img and renamed it to sysdisk.img
I mounted the sysdisk.img-file on my laptop and added the following code to the beginning of /etc/init.d/rcS2
Code:
tar xzf /ram_bin/etc/init.d/service_conf.tar.gz -C /etc/service_conf/
and
Code:
if [ -f /etc/zyxel/320_conf ]; then
echo /etc/zyxel is already a 320 conf
else
echo going to copy the 320 conf to /etc/zyxel...
rm -rf /etc/zyxel/*
tar xzf /ram_bin/etc/init.d/zyxel.tar.gz -C /etc/zyxel/
touch /etc/zyxel/320_conf
fi
I also added Mijzelf's files
zyxel.tar.gz and
service_conf.tar.gz to /etc/init.d/
I then commented out line 406 and 407 of:
/usr/local/apache/htdocs/zyxel/admin/maint_firmware_upgrade.html
Before:
Code:
if (GLOBALS['modelName'] == "NSA310") {
document.getElementById("fwTable1").style.display="none";
ocument.getElementById("periodSetting").style.display="none";
document.getElementById("periodSettingNote").style.display="";
document.getElementById("periodSettingNote1").style.display="";
}
After:
Code:
if (GLOBALS['modelName'] == "NSA310") {
//document.getElementById("fwTable1").style.display="none";
//document.getElementById("periodSetting").style.display="none";
document.getElementById("periodSettingNote").style.display="";
document.getElementById("periodSettingNote1").style.display="";
}
I then unmounted the sysdisk.img file from my laptop and copied the modified sysdisk.img to sda1 of the harddrive and put it back in the enclosure. When I turned the TDC HomeDisk on, I could access the webmanagement on <ip of NAS>/zyxel/loginwrap.html
The username was admin and the password (after 1 reset via the physical reset button) was the ZyXEL default of 1234.
By going to the Upgrade Firmware menu of the management interface I now had access to uploading my own firmware files (not just the automatic firmware upgrade). I tried manually uploading the newest NSA310 firmware (
440AFK0C0), which failed with an "Invalid firmware file." message.
I then tried uploading the
330AFK0C0 TDC firmware, which actually succeded.
I wanted to try other Zyxel firmware versions (I have only found
422AFK1C0 and
422AFK0C0 so far), but since I downgraded from TDC firmware 335AFN0D0 to 330AFK0C0, the mount.sda1.rw.flag does not seem to work, and I can't access the management GUI anymore.
Do you know how to make the file flag trick work on 330AFK0C0 to prevent the sysdisk.img from being overwritten Mijzelf?