Recover RAID or move data from broken NAS to a new one- Synology, Qnap, Asustor

Recover RAID or move data from broken NAS to a new one- Synology, Qnap, Asustor.

If everything is working it is very easy to move data to another NAS or a PC, but when your old NAS is broken it is a bit more complicated to do that. All popular NAS brands run on Linux as a backbone either it is Qnap, Synology or Asustor. And this is the way to get your data accessible even if NAS itself has broken power supply or any other component apart from drives.


If you want to get around the Asustor Ransomware popup screen – read this guide- HERE

If you are reading this because you have no access to your Asustor – “Reinitialize” status – follow this guide to gain access  HERE or HERE

Qnap Photo Rec Guide Here


Steps to move data between two different NAS

  1. Make your drives accessible- connect drives to a PC or put drives in some old used same brand NAS
  2. Copy data to your new NAS – over network or USB if 53B series

How to access data from my old broken NAS?

In the unfortunate event your NAS fails, you’ll probably want to recover the data stored on its hard drives. Data stored on the NAS hard drives can be easily recovered using an Ubuntu live CD and your computer. Please see the steps below.

  1. Prepare a PC with enough hard drive slots available to install the hard drives from your NAS.
  2. Remove the hard drives from your NAS 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 NAS are EXT4 or Btrfs.
  3. Visit to download the Ubuntu ISO file.
  4. Burn the ISO on a blank DVD and use it to boot your computer.
  5. Install Ubuntu on an empty hard drive or USB stick.
  6. 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.
  7. Go to Applications and open Terminal.
  8. Install mdadm with the following commands.
    Ubuntu@ubuntu:~$ sudo -i
    root@ubuntu:~$ apt-get install mdadm

  9. Select No configuration and complete the installation.
  10. Install lvm2 with the following commands.
    root@ubuntu:~$ apt-get install lvm2 (otherwise vgchange won’t work)
  11. Run the following command to mount all of the hard drives from your DiskStation.
    root@ubuntu:~$ mdadm -Asf && vgchange -ay
  12. 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.