Hi Jubei, To restore it to a new hard disk drive, just use ddrescue to copy from the image file to the new drive. Be sure to specify a different logfile, so that you don't wipe out your good log file from the recovery process.
E.g., if your recovery command sequence was like this: fdisk -lu /dev/hdc >fdisk-lu_out.txt hdparm -d1 /dev/hdc hdparm -a256 /dev/hdc hdparm -A1 /dev/hdc blktool /dev/hdc read-ahead 256 ddrescue -B -n -S /dev/hdc drive.ima drive.log hdparm -a8 /dev/hdc hdparm -A0 /dev/hdc blktool /dev/hdc read-ahead 0 ddrescue -B -c 8 /dev/hdc drive.ima drive.log hdparm -a0 /dev/hdc hdparm -A0 /dev/hdc hdparm -k1 /dev/hdc hdparm -K1 /dev/hdc ddrescue -B -c 1 -r 1 -d /dev/hdc drive.ima drive.log hdparm -d0 /dev/hdc ddrescue -B -c 1 -r 2 -d /dev/hdc drive.ima drive.log hdparm -a256 /dev/hdc hdparm -A1 /dev/hdc blktool /dev/hdc read-ahead 256 hdparm -d1 /dev/hdc Then the restore-to-new-drive command would be: ddrescue -B drive.ima /dev/hdc restore.log Also, since you are using Spinrite, you might want to use some of my scripts, which you can download here: http://www.burtonsys.com/downloads.html (the last link on the page) Regards, -Dave ncdave4life at gmail dot com but please no spam [EMAIL PROTECTED] (jubei) wrote: > Hello all, > I'm new to this ddrescue thing so please be gentle :) So I've got a drive > I'm trying to get data off of that has lots of errors. Here's my process so > far: > > 1.) Ran SpinRite on it. Initially, SpinRite had trouble reading it but > after running it a few times, it was able to recover the first partition (a > Dell recovery partition) so that it's readable in Knoppix. > > 2.) Ran TestDisk against it. TestDisk can see the partitions but I don't > want to go much further so I decided to... > > 3.) Run ddrescue against it. I initially ran ddrescue to copy from the bad > drive to an empty drive. It looks like it ran through but the new drive was > unreadable by TestDisk or Find and Mount. One caveat: in Windows, the new > disk showed up as uninitialized. > > 4.) Last night I ran ddrescue against it again but this time creating an > image on my NAS. It's about 35GB through an 80GB disk. Hopefully at the > end I'll have a full image of the drive so that the person I'm doing this > for can send it back to Dell (she has 10 days to send it back and I'm on > day 5). > > So my question is, what do I do with the disc image after it's done? > Everything I've read says that I should restore it to a new clean drive and > run chkdsk against it. But I don't know how to restore it to that drive and > am worried I'll be in the same boat as I was when I copied drive to drive. > Anyone have any ideas on how I should proceed? THANK YOU SO MUCH IN > ADVANCE!!! > > -jubei _______________________________________________ Bug-ddrescue mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-ddrescue
