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.60) (envelope-from ) id 1GMuVX-00001p-Eh for garchives@archives.gentoo.org; Mon, 11 Sep 2006 22:44:03 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8BMhIdQ024770; Mon, 11 Sep 2006 22:43:18 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k8BMcsSU007050 for ; Mon, 11 Sep 2006 22:38:54 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 3BE4464510 for ; Mon, 11 Sep 2006 22:38:54 +0000 (UTC) Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19105-03 for ; Mon, 11 Sep 2006 22:38:45 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 50882644DA for ; Mon, 11 Sep 2006 22:38:43 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GMuPp-0004cG-2s for gentoo-user@gentoo.org; Tue, 12 Sep 2006 00:38:09 +0200 Received: from dslb-084-061-144-178.pools.arcor-ip.net ([84.61.144.178]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Sep 2006 00:38:09 +0200 Received: from skoehler by dslb-084-061-144-178.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Sep 2006 00:38:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: =?ISO-8859-15?Q?Sven_K=F6hler?= Subject: [gentoo-user] Re: Corrupt xD card with photos Date: Tue, 12 Sep 2006 00:37:38 +0200 Message-ID: References: <200609111950.07446.michaelkintzios@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig50A7EFDFA6BDA41C182D41B7" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dslb-084-061-144-178.pools.arcor-ip.net User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) In-Reply-To: <200609111950.07446.michaelkintzios@gmail.com> X-Enigmail-Version: 0.94.1.0 Sender: news X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Status: No, score=-2.482 required=5.5 tests=[AWL=0.040, BAYES_00=-2.599, TW_UH=0.077] X-Spam-Score: -2.482 X-Spam-Level: X-Archives-Salt: 3a190fb5-885c-46c4-9460-ec6fc2f69927 X-Archives-Hash: 9072d618b961a8928a4c0014bbc09ae7 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig50A7EFDFA6BDA41C182D41B7 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable > I was handed what seems to be a corrupt xD flash card to extract the la= st=20 > photo from it. When the WinXP system at work coughed and died on it=20 > (couldn't read it) I thought that my Linux would do better. Anyhow, I'= ve=20 > inserted it into my Fuji camera and this is what dmesg shows: >=20 > =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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D > usb 2-1: new full speed USB device using uhci_hcd and address 4 > usb 2-1: configuration #1 chosen from 1 choice > scsi2 : SCSI emulation for USB Mass Storage devices > usb-storage: device found at 4 > usb-storage: waiting for device to settle before scanning > Vendor: FUJIFILM Model: USB-DRIVEUNIT Rev: 1.00 > Type: Direct-Access ANSI SCSI revision: 00 > SCSI device sda: 256000 512-byte hdwr sectors (131 MB) > sda: Write Protect is off > sda: Mode Sense: 07 00 00 00 > sda: assuming drive cache: write through > SCSI device sda: 256000 512-byte hdwr sectors (131 MB) > sda: Write Protect is off > sda: Mode Sense: 07 00 00 00 > sda: assuming drive cache: write through > sda: unknown partition table > sd 2:0:0:0: Attached scsi removable disk sda > sd 2:0:0:0: Attached scsi generic sg0 type 0 > usb-storage: device scan complete > =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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D First thing that i see is: where the hell is /dev/sda1? Yes, there should be a FAT partition on that xD card, but it's not there. So first step: Re-create a primary FAT partition without formatting it (for example use cfdisk) > Mount fails: > =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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > $ mount /dev/sda > mount: wrong fs type, bad option, bad superblock on /dev/sda, > 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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D >=20 > and dmesg then shows: > =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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > FAT: bogus number of reserved sectors > VFS: Can't find a valid FAT filesystem on dev sda. > FAT: bogus number of reserved sectors > VFS: Can't find a valid FAT filesystem on dev sda. > =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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D >=20 > This is what fdisk shows: > =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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > # fdisk /dev/sda > Device contains neither a valid DOS partition table, nor Sun, SGI or OS= F=20 > disklabel > Building a new DOS disklabel. Changes will remain in memory only, > until you decide to write them. After that, of course, the previous > content won't be recoverable. >=20 > Warning: invalid flag 0x0000 of partition table 4 will be corrected by = w(rite) >=20 > Command (m for help): p >=20 > Disk /dev/sda: 131 MB, 131072000 bytes > 5 heads, 50 sectors/track, 1024 cylinders > Units =3D cylinders of 250 * 512 =3D 128000 bytes >=20 > Device Boot Start End Blocks Id System >=20 > Command (m for help):=20 >=20 > =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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D >=20 > Is there a Linux (or even M$Windoze?) way of me recovering the last pho= to,=20 > that doesn't involve reconstructing raw data with a hexeditor? Maybe your are abled to mount the FAT partition after you "fixed" the partition table. Well, "fixing" it basically means: delete it, and create a new one. Typically, the FAT partition simply comsumes the whole disk. There should be a fair chance, that (c)fdisk chooses the same start/end-sectors for the partition like any other tool (including the camera). Good luck! --------------enig50A7EFDFA6BDA41C182D41B7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFBeUy7Ww7FjRBE4ARAriTAKCi+4t8PEaMHmHExba3PM7Q4/OSVwCfVXkg DHZmle7h5zWKOvGlthstT9Q= =wfrB -----END PGP SIGNATURE----- --------------enig50A7EFDFA6BDA41C182D41B7-- -- gentoo-user@gentoo.org mailing list