× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares

itsonlycomputer
Aspirant

ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares

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

 

Model: ReadyNAS-Ultra 4|ReadyNAS-Ultra 4
Message 1 of 39

Accepted Solutions
jak0lantash
Mentor

Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares


@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).

 

 

Spoiler
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.)

View solution in original post

Message 10 of 39

All Replies
jak0lantash
Mentor

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.

Message 2 of 39
itsonlycomputer
Aspirant

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.

 

 

 

Message 3 of 39
jak0lantash
Mentor

Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares

Sounds like a full root.

Message 4 of 39
itsonlycomputer
Aspirant

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.

Message 5 of 39
itsonlycomputer
Aspirant

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!

Message 6 of 39
jak0lantash
Mentor

Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares

If it's indeed a full root, it's very easy to fix via Tech Support mode. But I can't really help you to do that since I'm no longer working for NETGEAR Support...
Is SSH enabled on the NAS?
Message 7 of 39
itsonlycomputer
Aspirant

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

 

Message 8 of 39
StephenB
Guru

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.

Message 9 of 39
jak0lantash
Mentor

Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares


@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).

 

 

Spoiler
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.)

Message 10 of 39
mdgm-ntgr
NETGEAR Employee Retired

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.

Message 11 of 39
Sandshark
Sensei

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?

Message 12 of 39
jak0lantash
Mentor

Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares

A full root often leads to corrupted config files as @mdgm-ntgr said. An OS Reinstall rarely fixes that but is worth a try.
Message 13 of 39
itsonlycomputer
Aspirant

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]

 

Message 14 of 39
StephenB
Guru

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

 

Message 15 of 39
itsonlycomputer
Aspirant

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]

 

Message 16 of 39
jak0lantash
Mentor

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?

Message 17 of 39
itsonlycomputer
Aspirant

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    .

Message 18 of 39
jak0lantash
Mentor

Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares

cd var
Message 19 of 39
itsonlycomputer
Aspirant

Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares

cd var - DONE

 

Message 20 of 39
StephenB
Guru

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 

Message 21 of 39
jak0lantash
Mentor

Re: ReadyNAS Ultra4 - Possible Corrupted Firmware - No Access to Shares


@itsonlycomputer wrote:

cd var - DONE 


Keep going 😉 du, ls, cd

Message 22 of 39
StephenB
Guru

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.

Message 23 of 39
itsonlycomputer
Aspirant

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    .

 

 

 

Message 24 of 39
mdgm-ntgr
NETGEAR Employee Retired

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.

Message 25 of 39
Top Contributors
Discussion stats
  • 38 replies
  • 4621 views
  • 2 kudos
  • 5 in conversation
Announcements