Rescue copy
sudo smartdisk rescue disk4 /Volumes/Backup/disk4.imgrescue copies a failing disk to an image file on another disk, the way
GNU ddrescue does: it gets as much data off as possible
before the disk gives up completely. The disk is only read.
Passes
Section titled “Passes”- Copy: forward in 1 MiB blocks. After a failed block it jumps ahead, twice as far after each further failure (at most 1 % of the disk), so one damaged area does not hold up the rest.
- Reverse: what was skipped, back to front.
- Scrape: the failed blocks sector by sector. Every readable sector is saved.
- Retry: the unreadable sectors once more (
-retries N, default 1).
Unreadable sectors stay zeros in the image.
Stopping and continuing
Section titled “Stopping and continuing”Progress is saved every 30 seconds in <image>.map, in GNU ddrescue’s mapfile format. Ctrl-C
stops; the same command continues where it stopped, and ddrescue can continue it too.
The disk’s volumes are unmounted during the rescue so nothing changes while it is copied, and mounted again afterwards.
Safety
Section titled “Safety”SmartDisk refuses:
- an image on the disk being rescued (APFS volumes are traced back to their physical disk),
- an image without enough free space,
- an existing image without its map,
- a symbolic or hard link in place of the image or the map.
The image is created with mode 0600, because it holds everything on the disk, and belongs to the
user who ran sudo.
Getting files off
Section titled “Getting files off”Open the image read-only and copy the files:
hdiutil attach -readonly -imagekey diskimage-class=CRawDiskImage /Volumes/Backup/disk4.imgIn SmartDisk for Mac: Read test → Rescue copy…. The image is named after the drive, so choosing the same folder again continues an interrupted rescue, and Open the image mounts it read-only.