Gentoo Archives: gentoo-user

From: Tim Allingham <deserted@×××××××××××.au>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Corrupt USB pen drive
Date: Thu, 17 May 2007 16:16:40
Message-Id: 1179417799.17572.5.camel@localhost
In Reply to: Re: [gentoo-user] Corrupt USB pen drive by Mick
1 On Thu, 2007-05-17 at 16:38 +0100, Mick wrote:
2 > On Thursday 17 May 2007 15:45, Dan Farrell wrote:
3 > > On Thu, 17 May 2007 12:36:25 +0100
4 > >
5 > > Mick <michaelkintzios@×××××.com> wrote:
6 >
7 > > >
8 > > > I tried to dd the boot sector so that I can look at it on my hard
9 > > > drive, but it cannot access /dev/sda. Is there anything that I can
10 > > > do with my Gentoo to recover the files on this USB?
11 > >
12 > > have you tried reading raw from the device like
13 > >
14 > > | dd if=/dev/sda of=sda.image
15 > >
16 > > ? That might do the recovery. How to get it out of the image is the
17 > > same problem but once the backup succeeds you can plug it into a
18 > > windows xp box and reformat, and you will probably end up with the same
19 > > partition structure as originally. Then you can try to read the right
20 > > part of the image out of the image, once you get the numbers from fdisk
21 > > on the newly formatted drive, and end up with an image of sda1. From
22 > > there you should be able to mount sda1 and read out the data, if it
23 > > isn't corrupted.
24 >
25 > Thanks Dan, as I said above I tried to extract the MBR out of it by running:
26 >
27 > dd if=/dev/sda of=/tmp/r1 bs=512
28 >
29 > But couldn't access it whatsoever.
30 >
31 > > I also am wondering what happened to the partition table. I bet your
32 > > coworker has a security-compromised box at home (oh, runs windows?
33 > > right...) At any rate, if the data is recoverable, it may be possible
34 > > to rebuild the partition table if you can find out where the partition
35 > > started and ended. People have done it before, i've read online about
36 > > it.
37 >
38
39 Have you tried examining it physically? I've had a drive behave
40 similarly before, and it turned out to be an issue with one of the
41 solder joints on the crystal only having intermittent contact ( was
42 almost a dry join) - resoldering solved it and let me recover the data
43
44 --
45 gentoo-user@g.o mailing list