2024-04-12 20:55:19 +10:00
2024-04-12 11:11:29 +10:00
2024-04-12 16:48:40 +10:00
2024-04-12 10:59:18 +10:00
2024-04-12 10:57:58 +10:00
2024-04-12 11:01:24 +10:00
2024-04-12 20:55:19 +10:00

Synology Recover Data

committers.top badge

Description

A script to make it easy to recover your data from your Synology's drives using a computer

This is still a work in progress...

If you are willing to test it, all feedback is welcome.

What does the script do?

The script automatically does steps 4 to 15 from this web page:
https://kb.synology.com/en-id/DSM/tutorial/How_can_I_recover_data_from_my_DiskStation_using_a_PC

So you need to do steps 1 to 3 from that web page.

The same environment rules as on Synology's web page apply:

Applicable to:

  • DSM version 6.2.x and above
  • Volumes using the Btrfs or ext4 file systems
  • Ubuntu 22.04.4 LTS (Synology's recommended 18.04 has a bug with persistent partition)

Not applicable to:

  • Volumes using read-write SSD cache

Currently the script does NOT support:

  • Encrypted volumes
  • Encrypted shared folders

At the moment the script only support mounting 1 volume at a time. You'd need to run the script again to mount a 2nd volume.

Recover data using a PC

  1. Make sure your PC has sufficient drive slots for drive installation (you can use a USB dock).
  2. Remove the drives from your Synology NAS and install them in your PC. For RAID or SHR configurations, you must install all the drives (excluding hot spare drives) in your PC at the same time.
  3. Download the Desktop image for Ubuntu version 22.04.4 LTS
  4. Prepare a Ubuntu environment by following the instructions in this tutorial with 1 exception:
    • Set Persistent partition size in Rufus to greater than 0 so you can download this script to it.

         

5. Once Rufus has finished creating the boot drive download the latest version of this script to the partition on the USB boot drive and unzip it.

Screenshots

DSM 7 with 2 storage pools and volumes


DSM 6 single volume

S
Description
Recover your data from your Synology's drives using a computer
Readme MIT
9.6 MiB
Languages
C 49.8%
Shell 39.7%
PowerShell 10.5%