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

Attachments

File name MIME type
signature.asc application/pgp-signature