- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Workstation OS: MACOS Sierra
Model: RNDU4000
Firmware: 4.2.30
OS: x86
Drives: RAID Level X-RAID2, 4 disks
Network: Connected via LAN Interface 1
I have lost access to all of my shares on my NAS, I do have access to the Admin interface, however any changes made are not saved. From what I can tell, my drives are intact and healthy, but believe my firmware must somehow be corrupted.
I attempted to upload the 4.2.30 firmware again and I'm getting a message that the firmware version for x86 is invalid.
Any help would be greatly appreciated as I do not have a full backup of the device, was in the process of uploading data to a cloud backup when all of this happened. Ugggggghhhhhh
Thank You
David
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@itsonlycomputer wrote:
Any way to install it in this condition?
No, that's the problem. On OS4, you need to install an add-on, and if the root is full, you can't. So if the NAS doesn't allow to connect via SSH, Tech Support Mode is the next step.
If you want to contact NETGEAR for Support, they have option for paid Support.
Otherwise, you can try to fix it yourself. But please careful, these instructions are only meant to be taken as is. I'm not responsible for anything bad that can happen, perform the actions only if you understand them and feel safe doing it.
These are only valid for RAIDiator4.2 and are meant to cover this specific situation only!
Most of the commands I gave are nonintrusive (or close to nonintrusive).
1. Boot into Tech Support Mode via Boot Menu: https://kb.netgear.com/20898/ReadyNAS-ReadyDATA-Boot-Menu 2. Use RAIDar to identify the IP address. 3. Telnet the IP shown by RAIDar. 4. You can find the credentials here: http://netgear.nas-central.org/wiki/TechSupportMode 5. Start the RAID arrays: start_raid.sh 6. Mount the OS volume: mount /dev/md0 /sysroot 7. Check space usage: df -h 8. If md0 is indeed 100% full, continue, if not paste the output here and stop. 9. Move into the OS volume: cd /sysroot 10. Calculate the space usage for each subfolder: du -h -d1 . 11. In the output, there should be a big folder, with multiple GB of data (typical OS space usage is <1GB out of the 4GB capacity).
If you know what is wrong, continue, if not paste the output here and stop. 12. Move to the big folder: cd <folder> 13. Repeat (calculate the space, move to the big folder, etc.), until you clearly identify either which log file is big and shouldn't be or which folder is big and shouldn't be. This type of condition is often due to a log file that wasn't truncated/rotated and that's filling up the OS volume or some data that was written to the OS instead of the data volume. If the space used is mainly in the current folder, check the size of the files in the current folder: ls -alh 14. Take necessary actions to free up the space if you know what to do, otherwise paste the output here and stop. 15. Move back to the root: cd / 16. Sync: sync 17. Unmount the OS volume: umount /sysroot 18. Stop the RAID arrays: mdadm -S /dev/md* 19. Reboot the machine: reboot -f
If at any point, you're not sure, paste here the ouput and stop.
(I'm going to bed for now, but I'll review tomorrow.)
All Replies
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares
Can you try to download the logs from the GUI?
If they download OK, check at the end of volume.log that md0 is not 100% full.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares
Without doing a thing, I no longer have access to the Front panel, so I am unable to download any logs. Also, the IP address changed to a 192.168.168.168 address, going to try resetting my ip address on my mac to see if I can access it.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares
Sounds like a full root.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares
The logs are empty. I was able to access the front panel after changing my ip address.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares
What exactly does that mean and what can I do to resolve the issue? Thanks for chiming in!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares
Is SSH enabled on the NAS?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares
Note taken, what ever instructions you provide, I'll do at my own risk. I'm not sure if ever installed that add-on or not. Any way to install it in this condition? Either way, if you could provide complete instructions, I'll do at my own risk. This device is long past its warranty.
Thanks
David
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares
You should be able to get paid support for this (which I believe costs about $75).
Do you need to get data off of the NAS? If not, you can simply do a factory reset, reconfigure it, and then restore the data from backup.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@itsonlycomputer wrote:
Any way to install it in this condition?
No, that's the problem. On OS4, you need to install an add-on, and if the root is full, you can't. So if the NAS doesn't allow to connect via SSH, Tech Support Mode is the next step.
If you want to contact NETGEAR for Support, they have option for paid Support.
Otherwise, you can try to fix it yourself. But please careful, these instructions are only meant to be taken as is. I'm not responsible for anything bad that can happen, perform the actions only if you understand them and feel safe doing it.
These are only valid for RAIDiator4.2 and are meant to cover this specific situation only!
Most of the commands I gave are nonintrusive (or close to nonintrusive).
1. Boot into Tech Support Mode via Boot Menu: https://kb.netgear.com/20898/ReadyNAS-ReadyDATA-Boot-Menu 2. Use RAIDar to identify the IP address. 3. Telnet the IP shown by RAIDar. 4. You can find the credentials here: http://netgear.nas-central.org/wiki/TechSupportMode 5. Start the RAID arrays: start_raid.sh 6. Mount the OS volume: mount /dev/md0 /sysroot 7. Check space usage: df -h 8. If md0 is indeed 100% full, continue, if not paste the output here and stop. 9. Move into the OS volume: cd /sysroot 10. Calculate the space usage for each subfolder: du -h -d1 . 11. In the output, there should be a big folder, with multiple GB of data (typical OS space usage is <1GB out of the 4GB capacity).
If you know what is wrong, continue, if not paste the output here and stop. 12. Move to the big folder: cd <folder> 13. Repeat (calculate the space, move to the big folder, etc.), until you clearly identify either which log file is big and shouldn't be or which folder is big and shouldn't be. This type of condition is often due to a log file that wasn't truncated/rotated and that's filling up the OS volume or some data that was written to the OS instead of the data volume. If the space used is mainly in the current folder, check the size of the files in the current folder: ls -alh 14. Take necessary actions to free up the space if you know what to do, otherwise paste the output here and stop. 15. Move back to the root: cd / 16. Sync: sync 17. Unmount the OS volume: umount /sysroot 18. Stop the RAID arrays: mdadm -S /dev/md* 19. Reboot the machine: reboot -f
If at any point, you're not sure, paste here the ouput and stop.
(I'm going to bed for now, but I'll review tomorrow.)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares
Note also that sometimes when the root volume gets filled some config files can be corrupted as there's not enough space to write the new versions. If that's the case then some more work is required to fix the problem.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares
@mdgm wrote:Note also that sometimes when the root volume gets filled some config files can be corrupted as there's not enough space to write the new versions. If that's the case then some more work is required to fix the problem.
I've never found myself in this situation, but these are some really good to have instructions just in case. For my own benefit and that of the OP, would an OS re-install (once there is sufficent space for it to work) likely fix some/most of the corrupted config files? Also, is there a way to install the SSH add-on on OS 4.x or to enable SSH in OS 5.x or 6.x via tech support mode FTP?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares
**CORRECTION** correct syntax is: start_raid.sh There was an extra 's' in your example
I received an error attempting to start the raid array.
# start_raids.sh
-sh: start_raids.sh: not found
#
start_raid.sh
mount /dev/md0 /sysroot
df -h
--------- Result of df -h command -------------------
Filesystem Size Used Available Use% Mounted on
tmpfs 10.0M 0 10.0M 0% /dev
/dev/md0 4.0G 3.8G 0 100% /sysroot
#
cd /sysroot
Attempting: du -h --max-depth=1 (Returns invalid option -> Usage: du [-aHLdclsxhmk] [FILE]...
[STOPPING UNTIL I HEAR FROM YOU]
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares
@itsonlycomputer wrote:
I received an error attempting to start the raid array.
@jak0lantash mistyped the command. Try
# start_raid.sh
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares
start_raid.sh
mount /dev/md0 /sysroot
df -h
--------- Result of df -h command -------------------
Filesystem Size Used Available Use% Mounted on
tmpfs 10.0M 0 10.0M 0% /dev
/dev/md0 4.0G 3.8G 0 100% /sysroot
#
cd /sysroot
Attempting: du -h --max-depth=1 (Returns invalid option -> Usage: du [-aHLdclsxhmk] [FILE]...
[STOPPING UNTIL I HEAR FROM YOU]
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares
@itsonlycomputer wrote:Attempting: du -h --max-depth=1 (Returns invalid option -> Usage: du [-aHLdclsxhmk] [FILE]...
Weird, was pretty sure that was the correct syntax for Tech Support Mode on RAIDiator 4.2.
Anyway, use this one instead:
du -h -d1
Btw, this confirms the root volume is indeed full.
@StephenB wrote:@jak0lantash mistyped the command. Try
# start_raid.sh
Facepalm!
@StephenB Any way you could edit the original post to fix both there please?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares
Once we're all done, I'll post up the complete update for all to see. Hee is the result:
# du -h -d1
4.7M ./sbin
7.7M ./etc
4.0K ./initrd
4.0K ./proc
3.6M ./bin
28.0K ./root
5.8M ./lib64
13.5M ./frontview
4.0K ./USB
8.0K ./dev
3.3M ./opt
4.0K ./mnt
51.2M ./lib
3.3G ./var
8.0K ./home
4.0K ./sys
16.0K ./lost+found
252.0K ./tmp
4.0K ./c
4.0K ./ramfs
309.2M ./usr
3.7G .
#
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares
cd var
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares
cd var - DONE
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares
The OS partition is certainly full.
Look in /var/log and /var/cache first.
Anything in /var/cache can be deleted. If you run ReadyDLNA you should also run an add-on which shifts the DLNA cache to the data volume. Obviously you can't do that now, post back when your system boots properly again.
With logs, it is best to truncate them. The easiest way to do this is echo > logfile-name
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares
@itsonlycomputer wrote:cd var - DONE
Keep going 😉 du, ls, cd
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares
@jak0lantash wrote:
@StephenB Any way you could edit the original post to fix both there please?
Done.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares
# cd /var
# du -h -d1
12.0K ./run
4.0K ./log
16.0K .
# cd run
# du -h -d1
12.0K .
# cd /log
# du -h -d1
4.0K ./frontview
4.0K .
#
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares
On OS6 one would run start_raids, so it can be a bit confusing remembering the subtle difference in command to enter at times.