[Cialug] ddrescue + kpartx = bacon
David Champion
dchamp1337 at gmail.com
Wed May 8 13:02:27 CDT 2013
I was using Mandriva Linux (about any distro should work), with the bad HD
on a usb adapter, and writing the data to another external usb hard drive.
There are obviously faster ways to do that... I have an esata drive but
didn't have that with me when I started the recovery, the internal drive
didn't have enough space for the 320gb drive image.
The defaults for both ddrescue and kpartx were sufficient. Looks like if
you have a lot of bad sectors, ddrescue may take days in the "splitting"
phase, you can skip or adjust the settings to make that work faster.
Run kpartx on the image, it automatically creates the /dev/mapper/loop*
devices, you just mount with something like:
mount /dev/mapper/loop0p3 /mnt/recover/ -o ro
I have fuseblk on this distro, so it detected the ntfs partition without
specifying the type.
-dc
On Wed, May 8, 2013 at 12:50 PM, chris rheinherren
<c.rheinherren at gmail.com>wrote:
> The more details the better. I have a crashed harddrive that I would like
> to try this out on.
>
>
> On Wed, May 8, 2013 at 12:47 PM, Nathan C. Smith <nathan.smith at ipmvs.com
> >wrote:
>
> > Thanks for sharing this Dave,
> >
> > Did you use a particular distro -knoppix or rescue disk?
> >
> > Did you mount the image dd created with kpartx - did you need prior
> > knowledge of the disk(partition sizes or filesystems in use) to do that
> > part?
> >
> > I'm always looking for faster and easier, not to mention - successful,
> > ways of trying to recover things.
> >
> > -Nate
> >
> >
> >
> > -----Original Message-----
> > From: cialug-bounces at cialug.org [mailto:cialug-bounces at cialug.org] On
> > Behalf Of David Champion
> > Sent: Wednesday, May 08, 2013 12:33 PM
> > To: Central Iowa Linux Users Group
> > Subject: [Cialug] ddrescue + kpartx = bacon
> >
> > Had to recover data from a crashed laptop drive. Some of the usual tools
> > didn't work for me, I used ddrescue to grab the disk image, it took about
> > 26 hours to recover a 320gb drive, about 7gb of the drive was not
> > recoverable. Then I used kpartx to read the partition table & create the
> > loop devices, mounted it and was able to recover the documents I needed.
> >
> > Saved my bacon.
> >
> > -dc
> > _______________________________________________
> > Cialug mailing list
> > Cialug at cialug.org
> > http://cialug.org/mailman/listinfo/cialug
> > _______________________________________________
> > Cialug mailing list
> > Cialug at cialug.org
> > http://cialug.org/mailman/listinfo/cialug
> >
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
>
More information about the Cialug
mailing list