[aklug] Using DD to find partition table

From: Jim <jim.wadell@gmail.com>
Date: Mon Nov 19 2012 - 08:09:27 AKST

Good Morning

Leif, can you post a bit more about finding the partition table? I tried
to build binwalk, but no luck so far.

Thanks

------------------------------ Date: Mon, 19 Nov 2012 00:19:57 -0900
(AKST) Subject: [aklug] Re: Wife's hard drive is failing From:
bryanm@acsalaska.net On Sun, November 18, 2012 6:44 pm, Leif Sawyer wrote:
>> Use dd to grab the first meg or so of the drive, and put the resulting file on
>> a usb key or different drive, so your not exercising the failed drive during
>> the next process.
>>
>> Use dd on the extracted file to search for a partition table, using seek to
>> skip ahead in the file 1 byte at a time until you find the correct offset.
>>
>> Then you can dd the failing drive into a new drive, skipping ahead that
>> offset, so that the partition table is written correctly on the new drive.
>>
>> I've done this with a couple of failed raid'd drives, and it has worked for
>> me.
> There is a utility called binwalk:
> https://code.google.com/p/binwalk/
>
> that will do the stepping-through for you, so you don't have to
> manually increment the seek. I haven't used it personally, but
> it's a great idea.
>
> --
> Bryan Medsker
> bryanm@acsalaska.net
>
>
> ------------------------------
>
> End of aklug Digest V11 #168
> ****************************
> ---------
> To unsubscribe, send email to <aklug-request@aklug.org>
> with 'unsubscribe' in the message body.
>

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Mon Nov 19 08:09:37 2012

This archive was generated by hypermail 2.1.8 : Mon Nov 19 2012 - 08:09:38 AKST