How can I recover data from my DiskStation using a PC?
In the unfortunate event your DiskStation fails, you'll probably want to recover the data stored on its hard drives. Data stored on the DiskStation's hard drives can be easily recovered using an Ubuntu live CD and your computer. Please see the steps below.
- Prepare a PC with enough hard drive slots available to install the hard drives from your DiskStation.
- Remove the hard drives from your DiskStation and connect them to your computer. For RAID or SHR configurations, you'll have to connect all the hard drives (excluding hard drives used as hot spares) to your computer at the same time.
Note: Please make sure the file system running on the hard drives of your Synology NAS are EXT4 or Btrfs.
- Visit http://www.ubuntu.com/download/desktop to download the Ubuntu ISO file.
- Burn the ISO on a blank DVD and use it to boot your computer.
- Install Ubuntu on an empty hard drive or USB stick.
- If you're recovering files from a RAID or SHR configuration, please see steps 7 to 11. For recovering files from basic storage types with only one hard drive, please skip to step 12.
- Go to Applications and open Terminal.
- Install mdadm with the following commands.
Ubuntu@ubuntu:~$ sudo -i
root@ubuntu:~$ apt-get install mdadm
- Select No configuration and complete the installation.
- Install lvm2 with the following commands.
root@ubuntu:~$ apt-get install lvm2 (otherwise vgchange won't work)
- Run the following command to mount all of the hard drives from your DiskStation.
root@ubuntu:~$ mdadm -Asf && vgchange -ay
- Now you'll be able to browse all the shares and files on the hard drives. You may also connect a USB drive to the PC, copy required files to the USB drive, and then transfer the files to other devices.