On Tuesday 2015-08-11 05:24, greg.freemyer@gmail.com wrote:
On August 10, 2015 11:00:38 PM EDT, Jan Engelhardt
wrote: On Tuesday 2015-08-11 04:29, Greg Freemyer wrote:
My method would be to make a full copy of the drive to a usb drive via
dd.
dd if=/dev/sda of=image_file.dd bs=4k conv=sync,noerror
Then restore it via dd.
ddrescue is a much better program for this task.
The restore should cause any bad sectors to remap, assuming there are any spare sectors to remap to.
For that, you do not have to copy the entire disk. Grab a bad sector list, and only rewrite those. Something like ddrescue -f /dev/sda /dev/zero logfile.txt ddrescue -f -F - /dev/zero /dev/sda logflie.txt
Maybe
If the drive is in such bad shape that ddrescue is needed,
How do you even know you need either? You don't, and hence that was not my implication. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org