mirror of
https://github.com/007revad/Synology_Recover_Data.git
synced 2026-07-31 17:44:27 +02:00
4e0e956e131fcb23402a22d7109b4dbc24cdf02b
Synology Recover Data
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
- Make sure your PC has sufficient drive slots for drive installation (you can use a USB dock).
- 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.
- Download the Desktop image for Ubuntu version 22.04.4 LTS
- 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.
Screenshots
DSM 7 with 2 storage pools and volumes
DSM 6 single volume
Languages
C
49.8%
Shell
39.7%
PowerShell
10.5%


