Recovering Data Off Netgear ReadyNAS

So I have a 4 bay Netgear ReadyNAS NVX that has stopped working.

The unit has TWO drives configured as a RAID 1 mirror (this will only work with units with two or less drives fitted).

I suspect that the power supply has failed (a common problem).

I’m going to recover the data off drive to a QNAP NAS (HS-251+ in this case).

Steps..

  1. Remove one drive from the ReadyNAS caddy
  2. Connect the drive SATA and power cables to a standard PC (remove/disconnect all other drives to avoid confusion).
  3. Boot the PC from a System Rescue CD – this can be downloaded here: https://www.system-rescue-cd.org/SystemRescueCd_Homepage
  4. Once at the command prompt you can list the drives with:
  5. fdisk -l
  6. root@sysresccd /root % fdisk -l
    Disk /dev/loop0: 353.1 MiB, 370208768 bytes, 723064 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    
    
    Disk /dev/sda: 1.4 TiB, 1500301910016 bytes, 2930277168 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: 30AC9B24-F06D-4CE1-BBB5-ED9443790F5F
    
    Device Start End Sectors Size Type
    /dev/sda1 4 8388611 8388608 4G Linux RAID
    /dev/sda2 8388612 9437187 1048576 512M Linux RAID
    /dev/sda5 9437189 2930272064 2920834876 1.4T Linux RAID
    
    
    Disk /dev/sdb: 58.6 GiB, 62932647936 bytes, 122915328 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0x455dc590
    
    Device Boot Start End Sectors Size Id Type
    /dev/sdb1 * 2048 122915327 122913280 58.6G c W95 FAT32 (LBA)
    
    
    Disk /dev/md0: 4 GiB, 4294955008 bytes, 8388584 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    
    
    Disk /dev/md1: 512 MiB, 536858624 bytes, 1048552 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    
    
    Disk /dev/md2: 1.4 TiB, 1495467311104 bytes, 2920834592 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 16384 bytes / 16384 bytes
    
    
    Disk /dev/mapper/c-c: 1.4 TiB, 1490085216256 bytes, 2910322688 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 16384 bytes / 16384 bytes

The drive is 1.5TB and the device we are interested in is /dev/mapper/c-c

Mount this drive with:

root@sysresccd /mnt % mkdir /mnt/readynas
root@sysresccd /mnt % mount /dev/mapper/c-c /mnt/readynas

We can now look at the files on the ReadyNAS drive:

root@sysresccd /mnt % ls /mnt/readynas
aquota.group aquota.user backup home lost+found media squeezeboxserver

Next I’m going to mount the QNAP drive so that I can copy data from the ReadyNAS drive to the QNAP NAS. I need the IP address of the QNAP from the QNAP Finder application (in my case this is 172.31.1.69 – more typically 192.168.1.x).

Mount the Public folder on the  QNAP drive using:

root@sysresccd /mnt % mkdir /mnt/qnap
root@sysresccd /mnt % mount -t cifs -ousername=admin,password=YourQnapPassword //172.31.1.69/Public /mnt/qnap

I can now copy the data from the ReadyNAs drive (/mnt/readynas) to the QNAP (/mnt/qnap) e.g.:

rsync -av /mnt/readynas/media /mnt/qnap/media

 

Using System Rescue CD to Share a Mounted Folder

System Rescue CD is an essential tool for system and data recovery. I typically use it for recovering files off fail(ing) or damaged hard drives from multiple types of systems: Windows, QNAP and OSX etc.

System Rescue CD

Download System Rescue CD here.

Find the partition to mount with:

fdisk -l

or use the graphical application gparted from the GUI (use the command startx to switch to the GUI from the command line).

The following assumes we have a NFTS partition on /dev/sdc1

First mount the partition and make it fully accessible:

mkdir /mnt/sdc1

mount /dev/sdc1 /mnt/sdc1

chmod 777 /mnt/sdc1

At this point we should be able to access the files on the Windows drive e.g

ls /dev/sdc1

Now I want share this entire drive so I can access it from any machine on the local area network.

Create the file /etc/samba/smb.conf.default

** Check this maybe filename is just /etc/samba/smb.conf

nano /etc/samba/smb.conf.default

Add the following and save (CTRL+X):

[public]
path = /mnt/sdc1
public = yes
writable = yes
printable = no
browsable = yes

Next we need to give the root user a password using:

pdbedit -a -u root

Start the Samba server with:

service samba start

Find the IP address of the machine using:

ifconfig

Now you should be able to access the share from any client computer on the same network.

Assuming the computer running System Rescue CD is at ip address 192.168.1.100 then drive should be available at the following UNC path:

\\192.168.1.100\public

or using “Connect to Server” option in Finder on the Mac:

smb://192.168.1.100/public