Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Corrupt USB pen drive
Date: Thu, 17 May 2007 16:19:15
Message-Id: 200705171704.23751.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] Corrupt USB pen drive by Mick
1 On Thursday 17 May 2007 16:38, 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 > > > I tried to dd the boot sector so that I can look at it on my hard
7 > > > drive, but it cannot access /dev/sda. Is there anything that I can
8 > > > do with my Gentoo to recover the files on this USB?
9 > >
10 > > have you tried reading raw from the device like
11 > >
12 > > | dd if=/dev/sda of=sda.image
13 > >
14 > > ? That might do the recovery. How to get it out of the image is the
15 > > same problem but once the backup succeeds you can plug it into a
16 > > windows xp box and reformat, and you will probably end up with the same
17 > > partition structure as originally. Then you can try to read the right
18 > > part of the image out of the image, once you get the numbers from fdisk
19 > > on the newly formatted drive, and end up with an image of sda1. From
20 > > there you should be able to mount sda1 and read out the data, if it
21 > > isn't corrupted.
22 >
23 > Thanks Dan, as I said above I tried to extract the MBR out of it by
24 > running:
25 >
26 > dd if=/dev/sda of=/tmp/r1 bs=512
27 >
28 > But couldn't access it whatsoever.
29 >
30
31 Oops! I could access it, but of course I had to try it as root! Right, I've
32 got it on my hard drive now, but still cannot mount it:
33 ==================================
34 # mount -t vfat /dev/loop2 /tmp/r1
35 mount: wrong fs type, bad option, bad superblock on /dev/loop2,
36 missing codepage or other error
37 In some cases useful info is found in syslog - try
38 dmesg | tail or so
39 ==================================
40 --
41 Regards,
42 Mick

Replies

Subject Author
Re: [gentoo-user] Corrupt USB pen drive Dan Farrell <dan@×××××××××.cx>
Re: [gentoo-user] Corrupt USB pen drive Tim Allingham <deserted@×××××××××××.au>
Re: [gentoo-user] Corrupt USB pen drive Etaoin Shrdlu <shrdlu@×××××××××××××.org>