ddrescue¶
"GNU ddrescue - Data recovery tool. Copies data from one file or block device to another, trying to rescue the good parts first in case of read errors." - man ddrescue
There are actually two tools called ddrescue: dd_rescue and gddrescue. gddrescue is the best.
- Software home page - http://www.gnu.org/software/ddrescue/
- Instruction Manual - http://www.gnu.org/software/ddrescue/manual/ddrescue_manual.html
Examples¶
Attempt to mirror an entire hard disk¶
This uses the minimum read rate to skip sctors that may be bad on the input device.
Wipe a hard disk and log bad sectors¶
You can re-run this exact same command to resume the wipe of a hard disk.
Attempt to continue the mirror of a hard disk¶
Wipe the good sectors of a failing disk¶
This requires a valid rescue log file mapping out the good sectors that were recovered.