GNU ddrescue for hard disk imaging or recovery on macOS Ventura
GNU ddrescue (ddrescue) is a proven data recovery tool which you can trust. However, it is also quite a complicated command line tool. If only there was a way to make it more straightforward to use.
Contents
ddrescue is an essential tool for data recovery originally released in 2004 and consistently updatedover time. As is often the case your Linux distribution might be a little behind the upstream release. Ubuntu 24.04 LTS has release 1.27 which is only a little behind the current release, but for LTS users I would recommend sticking with the release provided with the LTS distribution unless you absolutely know you need a fix made in the current release.
Using ddrescue safely
With any tool capable of erasing data, there is the opportunity to make a mistake that results in the source data being damaged. You should allow the tools you run to finish, avoid running them on mounted partitions and never try to repair data on suspected damaged drives. In this case unmount the drive if you mounted it and try to recover an image of all you can onto a new good drive, ideally of the same capacity and form factor if it is destined to be a replacement for a broken computer.
Allow tools to finish!
Patience is a virtue. Some tools can take an extraordinarily long time to run. Let them!
Don't run tools on mounted partitions
Mounted partitions make a disk available to use. Unmounted disks are safe to run low level tools on.
Don't try to repair damaged drives
Make as good a copy of a damaged drive and then try to repair the copy. Damaged drives should be retired.
You should take care to remember that any data on a chosen destination will be replaced. This is why it can be helpful to have the DDRescue-GUI and optionally, GParted, to provide a better visual check before you might destroy the existing data on a destination drive!
From the GNU ddrescue Manual, all emphasis mine!
Cables needed to use DDrescue
You can buy fancy external docks or just use a USB 3.0 to SATA Adapter Cable for 2.5in SSD HDD Drives (pictured).
Installing DDRescue-GUI on macOS Ventura
DDRescue-GUI helps users recover important data fast, using GNU ddrescue but without having to understand the command line, which can be daunting.
DDRescue-GUI
DDRescue-GUI is now a commercial software package available for Windows, macOS and various Linux distributions and releases.
To find out more about DDRescue-GUI, head to https://www.hamishmb.com/ddrescue-gui/
DDRescue-GUI installer is not notarised for macOS
I'd expect any commercial software for macOS to be notarised so that the software can install properly without warning. It is disappointing that it is not.
macOS Disk layouts are complex, and this tool is very low level
You can use the command line % diskutil list to see everything from macOS perspective. Note that this command and DDRescue-GUI show all devices, containers, images in their raw form.
% diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk0
1: Apple_APFS_ISC Container disk1 524.3 MB disk0s1
2: Apple_APFS Container disk3 994.7 GB disk0s2
3: Apple_APFS_Recovery Container disk2 5.4 GB disk0s3
/dev/disk3 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +994.7 GB disk3
Physical Store disk0s2
1: APFS Volume Macintosh HD 10.2 GB disk3s1
2: APFS Snapshot com.apple.os.update-... 10.2 GB disk3s1s1
3: APFS Volume Preboot 6.2 GB disk3s2
4: APFS Volume Recovery 935.4 MB disk3s3
5: APFS Volume Data 636.4 GB disk3s5
6: APFS Volume VM 20.5 KB disk3s6
/dev/disk4 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +3.8 GB disk4
1: Apple_APFS Container disk5 3.8 GB disk4s1
...
/dev/disk19 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +100.0 MB disk19
1: Apple_HFS Install DDRescue-GUI 100.0 MB disk19s1
See also:
DDRescue-GUI homepage
GNU ddrescue homepage
GNU ddrescue manual
GNOME Partition Editor - GParted