
# ddrescue -force -n /dev/sd X /dev/sd Y rescue.map For the first round, copy every block without read error and map the errors to rescue.map. To clone a faulty or dying drive, run ddrescue twice. The key difference is that ddrescue uses a sophisticated algorithm to copy data from failing drives causing them as little additional damage as possible. ddrescue is not related to dd in any way except that both can be used for copying data from one device to another. GNU ddrescue is a data recovery tool capable of ignoring read errors. Results may vary while using USB adapters. If possible, data recovery from disks should be performed using their native interface: SATA or, for older drives, IDE. See dd#Disk cloning and restore and Core utilities#dd alternatives. So, when moving data to a new drive, instead of cloning the block devices or file systems, consider creating a new file system and only copy the files (and their attributes, ACLs, extended attributes, etc.) with e.g. Tip: Over time file systems get new features and the mkfs utilities change their defaults, but not all new features can be enabled without reformatting.
