NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
BigReyRey90
May 08, 2022Tutor
ReadyNas Ultra 2 - OS 6.10.7 - Only accesible via DLNA / UPNP
Hi there, I am running a ReadyNas Ultra 2, on the latest OS (6.10.7) and the device has a reserved IP address. As of yesterday, I was able to access the NAS via Windows Explorer / Mac Finder ...
StephenB
May 08, 2022Guru - Experienced User
BigReyRey90 wrote:
Apologies, I misunderstood - this time I was able to access via SSH and using 'password', I think it has let me in;
Yes.
Start by entering ls -als /data Make sure that you see your shares in the output.
Then try entering systemctl status apache2 -l --no-pager You can then copy/paste the output of that command into a reply.
Do the same with systemctl status smb -l --no-pager
BigReyRey90
May 08, 2022Tutor
Thank you. Here are the outputs;
ls -als /data
root@Ben_NAS:~# ls -als /data
total 48
32 drwxr-xr-x 1 root root 152 Jun 18 2018 .
16 drwxr-xr-x 1 root root 224 Feb 9 22:19 ..
0 drwxr-xr-x 1 root root 120 Jun 20 2018 ._share
0 drwxrwxr-x 1 root root 140 May 7 18:20 .apps
0 drwxr-xr-x 1 root root 0 Jun 18 2018 .purge
0 drwxr-xr-x 1 root root 0 Dec 12 2014 .timemachine
0 drwxr-xr-x 1 root root 0 Sep 20 2014 .vault
0 drwxrwxrwx+ 1 Ben guest 54 Oct 27 2017 Backup
0 drwxrwxrwx+ 1 guest guest 1090 Apr 23 11:01 Documents
0 drwxrwxrwx+ 1 guest guest 24334 Apr 21 21:52 Movies
0 drwxrwxrwx+ 1 guest guest 14382 Feb 14 2015 Music
0 drwx------+ 1 Ben admin 1368 May 17 2017 Pictures
0 drwxrwxrwx+ 1 guest guest 2322 May 6 22:29 TV
0 drwxr-xr-x 1 admin admin 56 Mar 30 2017 home
The shares are correct
systemctl status apache2 -l --no-pager
root@Ben_NAS:~# systemctl status apache2 -l --no-pager
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2022-05-08 12:12:37 +04; 2h 55min ago
Process: 3039 ExecStartPre=/frontview/bin/fvapps (code=exited, status=203/EXEC)
May 08 12:12:36 Ben_NAS systemd[1]: Starting The Apache HTTP Server...
May 08 12:12:37 Ben_NAS systemd[1]: apache2.service: Control process exited, code=exited status=203
May 08 12:12:37 Ben_NAS systemd[1]: Failed to start The Apache HTTP Server.
May 08 12:12:37 Ben_NAS systemd[1]: apache2.service: Unit entered failed state.
May 08 12:12:37 Ben_NAS systemd[1]: apache2.service: Triggering OnFailure= dependencies.
May 08 12:12:37 Ben_NAS systemd[1]: apache2.service: Failed with result 'exit-code'.
systemctl status smb -l --no-pager
root@Ben_NAS:~# systemctl status smb -l --no-pager
● smb.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smb.service; enabled; vendor preset: enabled)
Active: failed (Result: signal) since Sun 2022-05-08 12:12:20 +04; 2h 56min ago
Main PID: 2632 (code=killed, signal=SEGV)
May 08 12:12:20 Ben_NAS systemd[1]: Starting Samba SMB Daemon...
May 08 12:12:20 Ben_NAS systemd[1]: smb.service: Main process exited, code=killed, status=11/SEGV
May 08 12:12:20 Ben_NAS systemd[1]: Failed to start Samba SMB Daemon.
May 08 12:12:20 Ben_NAS systemd[1]: smb.service: Unit entered failed state.
May 08 12:12:20 Ben_NAS systemd[1]: smb.service: Failed with result 'signal'.
StephenB thank you again so much for your expertise !
- StephenBMay 08, 2022Guru - Experienced User
Does entering systemctl restart smb give you any errors?
If not, then try another systemctl status smb afterwards, and check that the service didn't fail again. If this works, then you'd be able to access the shares again with explorer or finder. I think the best thing to do at that point is to back up all the files.
- BigReyRey90May 08, 2022Tutor
systemctl restart smb produces the following output;
root@Ben_NAS:~# systemctl restart smb
Job for smb.service failed because a fatal signal was delivered to the control process.
See "systemctl status smb.service" and "journalctl -xe" for details.
root@Ben_NAS:~# - StephenBMay 08, 2022Guru - Experienced User
Ok. Let's check for a full OS partition.
Enter these commands:
mount --bind / /mnt du -hs /mnt
and report the result.
- BigReyRey90May 08, 2022Tutor
Thank you
Output;
root@Ben_NAS:~# mount --bind / /mnt
root@Ben_NAS:~# du -hs /mnt
647M /mnt
root@Ben_NAS:~# - StephenBMay 08, 2022Guru - Experienced User
BigReyRey90 wrote:
647M /mnt
Definitely not full - in fact it's smaller than we usually see.
Can you post the output of du -h -d1 /mnt ?
- BigReyRey90May 08, 2022Tutor
Thank you
root@Ben_NAS:~# du -hs /mnt
647M /mnt
root@Ben_NAS:~# mount --bind / /mnt
root@Ben_NAS:~# du -hs /mnt
647M /mnt
root@Ben_NAS:~# du -h -d1 /mnt
7.4M /mnt/bin
0 /mnt/boot
24K /mnt/dev
12M /mnt/etc
0 /mnt/home
34M /mnt/lib
4.0K /mnt/lib64
0 /mnt/media
0 /mnt/mnt
4.6M /mnt/opt
0 /mnt/proc
20K /mnt/root
0 /mnt/run
12M /mnt/sbin
0 /mnt/selinux
0 /mnt/srv
0 /mnt/sys
0 /mnt/tmp
293M /mnt/usr
286M /mnt/var
0 /mnt/data
76K /mnt/apps
647M /mnt - StephenBMay 08, 2022Guru - Experienced User
Ok. /mnt/var looks rather small. Try entering du -h -d1 /mnt/var
- BigReyRey90May 08, 2022Tutor
du -h -d1 /mnt/var output;
root@Ben_NAS:~# du -h -d1 /mnt/var
0 /mnt/var/opt
86M /mnt/var/backups
0 /mnt/var/agentx
0 /mnt/var/local
69M /mnt/var/log
4.0K /mnt/var/spool
0 /mnt/var/mail
45M /mnt/var/cache
52M /mnt/var/lib
0 /mnt/var/tmp
4.0K /mnt/var/www
8.0K /mnt/var/netatalk
22M /mnt/var/cores
0 /mnt/var/ftp
13M /mnt/var/readynasd
8.0K /mnt/var/readydrop
286M /mnt/var - StephenBMay 08, 2022Guru - Experienced User
BigReyRey90 wrote:
52M /mnt/var/lib
I think there should be more stuff in this folder. My RN102 shows 243M.
Do you have a current backup of your data? If you have an NTFS-formatted USB drive, we can copy files off to it.
- BigReyRey90May 08, 2022Tutor
Thanks - would you suggest the NAS is irreparable?
I have some of the data backed up, but would like to take a full back up and then restore this, onto a new NAS, if you believe this one is on it's last legs.
I have about 1.5tb of data on the NAS, and do not have access do a drive that size right now. Could we test this using a smaller USB storage drive?
Alternatively, is it possible to copy the data to a local drive on my laptop?
- StephenBMay 08, 2022Guru - Experienced User
BigReyRey90 wrote:
Thanks - would you suggest the NAS is irreparable?
No, there is no evidence of that.
BigReyRey90 wrote:
I have about 1.5tb of data on the NAS, and do not have access do a drive that size right now. Could we test this using a smaller USB storage drive?
Yes, assuming it is formatted using a format that the NAS supports. NTFS is probably the best option.
You can copy one share at a time, if that helps.
- BigReyRey90May 08, 2022Tutor
Ok, so would you suggest the best plan would be to backup all the data, and then factory reset the device?
Could you share commands to test backing up shares to NTFS formatted USB?
Thank you again
- StephenBMay 08, 2022Guru - Experienced User
BigReyRey90 wrote:
Ok, so would you suggest the best plan would be to backup all the data, and then factory reset the device?
Yes, that would be a good plan.
BigReyRey90 wrote:
Could you share commands to test backing up shares to NTFS formatted USB?
The first step is to see if the NAS has automatically mounted the USB drive or not. Entering mount | grep media will show you if it's mounted. You should see something like /dev/sdc1 on /media/USB_FLASH_2 - perhaps not using sdc1, and likely showing something other than USB_FLASH_2.
- BigReyRey90May 08, 2022Tutor
Yes, using one of the rear USB's, I believe it has been recognized and mounted;
root@Ben_NAS:~# mount | grep media
/dev/sdd1 on /media/USB_FLASH_2 type ufsd (rw,noatime,nodiratime,nls=utf8,fmask=0,dmask=0)
/dev/sdd1 on /run/nfs4/media/USB_FLASH_2 type ufsd (rw,noatime,nodiratime,nls=utf8,fmask=0,dmask=0) - StephenBMay 08, 2022Guru - Experienced User
BigReyRey90 wrote:
Yes, using one of the rear USB's, I believe it has been recognized and mounted;
root@Ben_NAS:~# mount | grep media
/dev/sdd1 on /media/USB_FLASH_2 type ufsd (rw,noatime,nodiratime,nls=utf8,fmask=0,dmask=0)
/dev/sdd1 on /run/nfs4/media/USB_FLASH_2 type ufsd (rw,noatime,nodiratime,nls=utf8,fmask=0,dmask=0)Great. To copy a share, you'd enter cp -rpv /data/sharename /media/USB_FLASH_2/sharename (using the real sharenames of course). If you use a different drive, the USB_FLASH_2 bit will be different. Redoing the mount | grep media command will tell you what that part of the pathname should e.
The three options (-rpv) are
- r: recursive - copying subfolders and the files in them.
- p: preserve - this tries to preserve file modification dates, permissions, and ownership. If you get a lot of errors (saying this is unsupported), you can omit this
- v: verbose - this lists the files as they are copied - giving you some assurance that everything is working as it should.
You should unmount the drive before removing it - if you don't, you will need to let the PC "repair" it when you connect it to the PC. Also, the NAS will mount the USB drive as read-only the next time you insert it if you don't do the PC "repair" procedure. The command for that is umount /media/USB_FLASH_2 Note the spelling for "umount" (it is not "unmount").
If you use the private folder feature, make sure that you copy /data/home. Your private folder(s) will be in that folder.
- BigReyRey90May 08, 2022Tutor
Thank you - I managed to get this process to start.
Can I browse the folder structure, down to the individual files using another command? This will help me verify that I have successfully copied the data off of the NAS.
If I wanted to copy the entire disk in one go, is this possible? Is there a command to do so?
Lastly, how do I track the progress of the copy and now once the process is complete?
- StephenBMay 08, 2022Guru - Experienced User
BigReyRey90 wrote:
Lastly, how do I track the progress of the copy and now once the process is complete?
That's what the -v was for.
BigReyRey90 wrote:
Can I browse the folder structure, down to the individual files using another command? This will help me verify that I have successfully copied the data off of the NAS.
ls would do that. ls -alsR /media/USB_FLASH_2
BigReyRey90 wrote:
If I wanted to copy the entire disk in one go, is this possible? Is there a command to do so?
It's the same cp command, just a slightly differently path. cp -rpv /data /media/USB_FLASH_2/data
- BigReyRey90May 08, 2022Tutor
Thank you - I have been playing around with the commands and seem to have gotten to grips following your expert help!!
Two final questions for the day,
1 - The transfer speed onto the USB drive seems to be very, very slow..... is this normal? Copying around 5gb data is taking maybe 20 mins or so
2 - Using the verbose command, does the file name only show in the log once it has been copied, or once the copy process starts? I ask as I unclear as to when the process is fully completed. Should it say something in the log confirming it is complete?
- StephenBMay 08, 2022Guru - Experienced User
BigReyRey90 wrote:
Copying around 5gb data is taking maybe 20 mins or so
The Ultra-2 only has USB-2, so it will be slow.
But 20 minutes for 5 GB is slower than USB 2 - not sure what is going on there. After the data is backup up, maybe test the two drives.
BigReyRey90 wrote:
2 - Using the verbose command, does the file name only show in the log once it has been copied, or once the copy process starts? I ask as I unclear as to when the process is fully completed. Should it say something in the log confirming it is complete?
The file name is shown on the screen when the copy begins. There is no "log". When the copy is finished, you will see the ssh prompt again.
- BigReyRey90May 08, 2022Tutor
Thank you, perhaps I can use the front USB 3.0 port instead? Should this work?
Using the verbose command, does the file name only show in the log once it has been copied, or once the copy process starts? I ask as I unclear as to when the process is fully completed. Should it say something in the log confirming it is complete?
- BigReyRey90May 09, 2022Tutor
Hi StephenB
I seem to have got the trick of copying data off.
One question, can you help with a command to see the size of the shares in GB below? This will help me to confirm 100% data has been copied.
Thank you
*********************
root@Ben_NAS:~# ls -als /data/
total 48
32 drwxr-xr-x 1 root root 152 Jun 18 2018 .
16 drwxr-xr-x 1 root root 224 Feb 9 22:19 ..
0 drwxr-xr-x 1 root root 120 Jun 20 2018 ._share
0 drwxrwxr-x 1 root root 140 May 7 18:20 .apps
0 drwxr-xr-x 1 root root 0 Jun 18 2018 .purge
0 drwxr-xr-x 1 root root 0 Dec 12 2014 .timemachine
0 drwxr-xr-x 1 root root 0 Sep 20 2014 .vault
0 drwxrwxrwx+ 1 Ben guest 54 Oct 27 2017 Backup
0 drwxrwxrwx+ 1 guest guest 1090 Apr 23 11:01 Documents
0 drwxrwxrwx+ 1 guest guest 24334 Apr 21 21:52 Movies
0 drwxrwxrwx+ 1 guest guest 14382 Feb 14 2015 Music
0 drwx------+ 1 Ben admin 1368 May 17 2017 Pictures
0 drwxrwxrwx+ 1 guest guest 2322 May 6 22:29 TV
0 drwxr-xr-x 1 admin admin 56 Mar 30 2017 home - StephenBMay 09, 2022Guru - Experienced User
BigReyRey90 wrote:
One question, can you help with a command to see the size of the shares in GB below? This will help me to confirm 100% data has been copied.
It won't tie out exactly. The USB drive(s) are formatted differently from the data volume, and the folders themselves will be a different size.
But the du command can be used to roughly check space. For instance, after copying /data/Test to /media/USB_FLASH_2/Test:
root@RN102:~# du -s /data/Test 637060 /data/Test root@RN102:~# du -s /media/USB_FLASH_2/Test 637076 /media/USB_FLASH_2/Test root@RN102:~#
Note the 16 kb discrepancy in this example.
You can also confirm the number of files match, by piping ls into wc. For instance,
root@RN102:~# ls /data/Test | wc -l 24 root@RN102:~# ls /media/USB_FLASH_2/Test | wc -l 24 root@RN102:~# ls -as /data/Test
- BigReyRey90May 10, 2022Tutor
Hi StephenB ,
I had to power down the NAS, to remove one of the disks.
After trying to boot the NAS back on, it appears to be stuck in the boot mode, with the fan running high. I have tried to boot with no disks, disk 1 only and disk 2 only, but to no avail.
Now when I try to SSH in, i get the following error when using 'password' ;
root@192.168.0.115's password:
Permission denied, please try again.Any idea of possible next steps? I would just like to get back to the stage where I can SSH in and copy data off via USB
- StephenBMay 10, 2022Guru - Experienced User
It would have been best to complete the backup before manipulating disks. You knew the data was at risk.
What status is RAIDar giving you for the NAS? https://kb.netgear.com/20684/ReadyNAS-Downloads#raidar
- BigReyRey90May 10, 2022Tutor
I had removed one of the disks to run it through R-Studio - this software has found the data, but there are over 50,000 files, which are spread across a many folders and sub-folders. I had hope the data would match the Folder structure on the NAS itself.
RAIDar status is - "System Starting Up"
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!