Topic: File Recovery, Mandrake 10.x
this is a machine i built for my sister, IBM 966Mhz/512 meg of RAM. it's only used for web/email/music, so it's quite adequate for that. they had been having power outages in a recent series of storms, and reported problems booting. I got the machine, there appear to be filesystem errors.
i decided to clone the drive FIRST, failing hardware can be risky to work on. i added a hard drive to the machine, booted to a live CD, and tried my regular use of dd (which is on the current S-T-D disc), but it had read errors, which kills dd.
on a very, very pre-pre version of what perhaps may be the basis of the next S-T-D version, i used dd_rescue. this was not present on a Knoppix 5.01 disc, but i thought it had been on earlier ones. dd_rescue does not abort on read errors like dd does.
the syntax is a little different, instead of dd's use of:
dd if=dev/hd(drive to copy from) of=/dev/(drive to copy to)the basic syntax is now:
dd_rescue /dev/hd(drive to copy from) /dev/hd(drive to copy to)the normal dd command does not have a -v switch, so when you run it, you have to just see a blank screen until it is done, when it reports how many records were transferred. if you can locate a spot on the HD that has physical damage, dd_rescue can read the HD backwards up to the damaged location, if that would help.
dd_rescue has a -v switch, and it gives you a very current view of what is happening, with transfer rate display, load indicator and much more. after searching for awhile and RTFManpage, i found a good combination of parameters which will increase the buffer size, write a log, and overall speed things up.
dd_rescue -B 1b -b 2M -A -v -l /var/dd_rescue.log /dev/hd(drive to copy from) /dev/hd(drive to copy to)now i can work on the problem, without risking any of the /home contents. the file /var/dd_rescue.log needs to be read before rebooting of course, because it currently exists only in the ramdisk.
this should work on any filesystem there is at all, because it is a bit for bit disk copy. hope this helps!
Last edited by Picoshark (06-08-2006 03:19:14)