cbagger01
Group: Members
Posts: 4264
Joined: Oct. 2003 |
|
Posted: Sep. 30 2004,14:08 |
|
You could clone the entire hard drive or better yet just the partition.
You can clone it to another hard drive, or you can output the contents to a filename
If you use the "dd" command, make sure to use the noerror AND sync options so that it will continue properly after the disk controller hits a bad sector.
Here is the man page for dd:
http://www.die.net/doc/linux/man/man1/dd.1.html
Also, you could grab an alternative program called "dd_rescue" which is designed for the cloning of hard drive data for a damaged hard drive. I believe that this program is included with knoppix, or you could grab it and put it in DSL. Who knows, maybe it is already there.
dd_rescue works almost the same way as the regular dd command, only it is much faster because it copies large chucks of data until it hits an error block. Then it starts copying small chunks of data near the error area so that it can recover as much "good" data as possible. So you get the advantages of FAST reading of the "good" parts of the drive with large block size AND precise recovery of data near the bad sector with small block size.
If you have recovered the data to a file, you should be able to access it something like this (as 'root'):
mkdir /mnt/baddisk mount -t ntfs -o loop /home/dsl/badimagefilename /mnt/baddisk emelfm /mnt/baddisk
I wish I could go into more details about the dd/dd_rescue process but I am short on time. The previous discussions on hard drive cloning are a good place to start.
|