How to recover files accidentally deleted from my Qnap and Synology NAS?

data recovery of deleted files

I have a 2-bay QNAP TS-251 NAS, with two 4TB hard drives setup on a RAID1 configuration.

I accidentally deleted all the files in the multimedia shared folder and have switched off the NAS, to avoid any new data being written on the disks.

The shared folder was in an encrypted volume.

Do you know if I took out on of the drives and plugged it into a PC and ran data recovery software that it would be able to read the disk, even though the volume was encrypted? And if so, which data recovery software would you recommend.

First of all you should check if you have recycling bin enabled. You will find deleted files there.

Otherwise check if you have snapshot technology enabled. This allows to roll back to previous folder versions.

Otherwise you can try to use these instruction bellow.

 

There are various tools for recovering data accidentally deleted from your Synology NAS. Users can go to Control Panel > Shared Folder and select a folder to enable Recycle Bin feature. After Recycle Bin is enabled, it will create a subfolder to store deleted files. Then when your file is deleted, you can go to Recycle Bin to retrieve your file. Another tool that can help you to restore deleted file is Cloud Station Server’s Version Viewer. To know more information about it, please refer to this article.

However, if you did not enable Recycle Bin feature or you are not a Cloud Station Server user, a few free third-party software options may help you recover accidentally deleted files. PhotoRec, for example, is especially suitable when you have only one hard drive or when you have a RAID 1 array with two hard drives. Please see the steps below to recover deleted files.

Note:

  • PhotoRec does not support Btrfs file system.

If your NAS is built on RAID 1 or has only one hard drive:

  1. Prepare a computer with at least one additional drive slot available to install the hard drive from your Synology NAS.
  2. Remove one hard drive from your Synology/ Qnap  NAS and connect it to your computer. Make sure the file system running on the hard drives of your Synology NAS is EXT4.
  3. Go to http://www.cgsecurity.org/wiki/TestDisk_Download to download PhotoRec for your operating system.
  4. Launch PhotoRec. In the Windows version, for example, the exe file is called photorec_win.exe.
  5. Identify the hard drive that you have connected to your computer. Select with arrow keys on the keyboard and then press Enter.
  6. Select the partition where your files were saved and then press Enter.
  7. Select [ext2/ext3] ext2/ext3/ext4 filesystem and then press Enter.
  8. Select the folder where you want to save the recovered files and then press C.
  9. Within the destination folder that you selected in Step 8, you will find a few folders called recup_dir.1recup_dir.2, etc. These are where your recovered files are saved. Open any of them to search for the files you need.

If your RAID array consists of more than two hard drives:

You can still recover deleted data with PhotoRec by the following steps.

  1. Refer to this tutorial to rebuild the RAID array on an Ubuntu computer.
  2. Download the Linux version of PhotoRec and use it to scan the RAID device.
  3. Refer to the steps mentioned in this article to recover files with PhotoRec.
Posted in Uncategorized

Leave a Reply