I'm currently having a close call with a hard lesson!
My 2TB WD Green drive started throwing bad blocks after a year of service. I have recovered all but 82kb of data to an image on a spare 3TB drive using the following commands:
ddrescue --no-split /dev/sda1 /media/store1/store1.img /media/store1/store1.log
Then I ran
ddrescue --direct --max-retries=3 /dev/sda1 /media/store1/store1.img /media/store1/store1.log
Followed by
ddrescue --direct --retrim --max-retries=3 /dev/sda1 /media/store1/store1.img
I have another empty 3TB drive which can be used for a restore. But I'd quite like some advice first, as this recovery has taken 3 solid days and I wouldn't want to screw it up!
From what I understand, I could restore the image to a disk and then repair the copied bad blocks.. Would that be correct?