From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.62)
	(envelope-from <gentoo-user+bounces-64105-garchives=archives.gentoo.org@gentoo.org>)
	id 1HoiyT-0002ZS-Dh
	for garchives@archives.gentoo.org; Thu, 17 May 2007 16:37:10 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l4HGZ1vl032644;
	Thu, 17 May 2007 16:35:01 GMT
Received: from vscan02.westnet.com.au (vscan02.westnet.com.au [203.10.1.132])
	by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l4HGQEd9020951
	for <gentoo-user@lists.gentoo.org>; Thu, 17 May 2007 16:26:18 GMT
Received: from localhost (localhost.localdomain [127.0.0.1])
	by localhost (Postfix) with ESMTP id 5E29211DE7D
	for <gentoo-user@lists.gentoo.org>; Fri, 18 May 2007 00:26:13 +0800 (WST)
Received: from vscan02.westnet.com.au ([127.0.0.1])
 by localhost (vscan02.westnet.com.au [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 26928-16 for <gentoo-user@lists.gentoo.org>;
 Fri, 18 May 2007 00:26:13 +0800 (WST)
Received: from [192.168.1.55] (unknown [124.149.62.254])
	by vscan02.westnet.com.au (Postfix) with ESMTP id 00B1C11DE5C
	for <gentoo-user@lists.gentoo.org>; Fri, 18 May 2007 00:26:12 +0800 (WST)
Subject: Re: [gentoo-user] Corrupt USB pen drive
From: Tim Allingham <deserted@westnet.com.au>
To: gentoo-user@lists.gentoo.org
In-Reply-To: <200705171704.23751.michaelkintzios@gmail.com>
References: <200705171236.28695.michaelkintzios@gmail.com>
	 <20070517094559.14586f21@pascal.spore.ath.cx>
	 <200705171638.54090.michaelkintzios@gmail.com>
	 <200705171704.23751.michaelkintzios@gmail.com>
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-hCZpI/gWl/OKNox0vO+u"
Date: Fri, 18 May 2007 02:26:16 +1000
Message-Id: <1179419176.17572.20.camel@localhost>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
Mime-Version: 1.0
X-Mailer: Evolution 2.8.3 
X-Archives-Salt: 2b1f36ea-6d9b-4059-876a-3d1c490885e8
X-Archives-Hash: 803f541b8d65b097c013dbe89cc864c3


--=-hCZpI/gWl/OKNox0vO+u
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Thu, 2007-05-17 at 17:04 +0100, Mick wrote:
> On Thursday 17 May 2007 16:38, Mick wrote:
> > On Thursday 17 May 2007 15:45, Dan Farrell wrote:
> > > On Thu, 17 May 2007 12:36:25 +0100
> > >
> > > Mick <michaelkintzios@gmail.com> wrote:
> > > > I tried to dd the boot sector so that I can look at it on my hard
> > > > drive, but it cannot access /dev/sda.  Is there anything that I can
> > > > do with my Gentoo to recover the files on this USB?
> > >
> > > have you tried reading raw from the device like
> > >
> > > | dd if=3D/dev/sda of=3Dsda.image
> > >
> > > ?  That might do the recovery.  How to get it out of the image is the
> > > same problem but once the backup succeeds you can plug it into a
> > > windows xp box and reformat, and you will probably end up with the sa=
me
> > > partition structure as originally.  Then you can try to read the righ=
t
> > > part of the image out of the image, once you get the numbers from fdi=
sk
> > > on the newly formatted drive, and end up with an image of sda1.  From
> > > there you should be able to mount sda1 and read out the data, if it
> > > isn't corrupted.
> >
> > Thanks Dan, as I said above I tried to extract the MBR out of it by
> > running:
> >
> > dd if=3D/dev/sda of=3D/tmp/r1 bs=3D512
> >
> > But couldn't access it whatsoever.
> >
>=20
> Oops! I could access it, but of course I had to try it as root!  Right, I=
've=20
> got it on my hard drive now, but still cannot mount it:
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> # mount -t vfat /dev/loop2 /tmp/r1
> mount: wrong fs type, bad option, bad superblock on /dev/loop2,
>        missing codepage or other error
>        In some cases useful info is found in syslog - try
>        dmesg | tail  or so
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Have you tried mounting with just

mount -o loop /dev/loop2 /tmp/r1

--=-hCZpI/gWl/OKNox0vO+u
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.3 (GNU/Linux)

iD8DBQBGTIIozDi2M4U3QqIRAonFAKCPl9pk2kbm5CsGb6wST8jWG9D9/gCeJWHH
BN8TaLx8GW3qtmoHSHBlndo=
=AIhQ
-----END PGP SIGNATURE-----

--=-hCZpI/gWl/OKNox0vO+u--

-- 
gentoo-user@gentoo.org mailing list