epcim
10/20/2015 - 10:40 AM

dd.howto.md

DD

low level copy with dd

dd if=/dev/sdc of=/home/sdc.dd conv=noerror,sync

DD rescue

start pos/size

sudo ddrescue -i0G -s300G /dev/sdc1 imagefile logfile

rescue workflow

First you copy as much data as possible, without retrying or splitting sectors:

sudo ddrescue --no-split /dev/sdc1 imagefile logfile

Now let it retry previous errors 3 times, using uncached reads:

sudo ddrescue --direct --max-retries=3 /dev/sdc1 imagefile logfile

If that fails you can try again but retrimmed, so it tries to reread full sectors:

sudo ddrescue --direct --retrim --max-retries=3 /dev/sdc1 imagefile logfile

sudo mount -t ntfs-3g -o loop,ro imagefile /mnt/tmp1