Re: [gentoo-user] Corrupt xD card with photos
Hi Mick, on Monday, 2006-09-25 at 22:54:49, you wrote: I must be doing something wrong: $ ./recoverpics ./recoverpics: line 1: /bin: is a directory ./recoverpics: line 2: /bin: is a directory ./recoverpics: line 3: syntax error near unexpected token `(' ./recoverpics: line 3: ` * Copyright (C) 2004 Matthias Bethke [EMAIL PROTECTED]' Is that the expected output? No, not really. Looks like you're starting the source or something? Here's how it's supposed to look: | [EMAIL PROTECTED] ~ $ tar -jxvvf recoverpics-1.6.tar.bz2 | -rw-r- mb/users 13294 2004-02-28 07:08:36 recoverpics/recoverpics.c | drwxr-x--- Creating directory: recoverpics | -rwxr-xr-x mb/users542 2004-02-27 16:13:03 recoverpics/checkpics.sh | -rw-r- mb/users140 2004-02-27 16:10:04 recoverpics/Makefile | [EMAIL PROTECTED] ~ $ cd recoverpics/ | [EMAIL PROTECTED] ~/recoverpics $ make | cc -O2 -finline-functions -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 | recoverpics.c -orecoverpics | strip recoverpics | [EMAIL PROTECTED] ~/recoverpics $ ./recoverpics | Usage: recoverpics file [offset] [max-output-size] Then you should be able to run it as ./recoverpics /dev/sda or something. good luck :) Matthias -- I prefer encrypted and signed messages. KeyID: FAC37665 Fingerprint: 8C16 3F0A A6FC DF0D 19B0 8DEF 48D9 1700 FAC3 7665 pgpS9N9gKnFxI.pgp Description: PGP signature
Re: [gentoo-user] Corrupt xD card with photos
Hi Mick, on Monday, 2006-09-11 at 22:50:01, you wrote: Thanks Matthias, How do I install it manually? install tells me: # install install: missing file operand Ow, sorry, I missed your reply before! Well, simple, you don't :) This is a very primitive program and the Makefile is just there so you don't have to set any CFLAGS (such as -D_LARGEFILE64_SOURCE) by hand. You run make, it compiles the single source file and leaves an executable there which you can move whereever you want it. Or run it directly, as hopefully you won't need it too often. cheers! Matthias -- I prefer encrypted and signed messages. KeyID: FAC37665 Fingerprint: 8C16 3F0A A6FC DF0D 19B0 8DEF 48D9 1700 FAC3 7665 pgpMbbcBM1aax.pgp Description: PGP signature
Re: [gentoo-user] Corrupt xD card with photos
On Monday 25 September 2006 22:09, Matthias Bethke wrote: on Monday, 2006-09-11 at 22:50:01, you wrote: How do I install it manually? install tells me: # install install: missing file operand Ow, sorry, I missed your reply before! Well, simple, you don't :) This is a very primitive program and the Makefile is just there so you don't have to set any CFLAGS (such as -D_LARGEFILE64_SOURCE) by hand. You run make, it compiles the single source file and leaves an executable there which you can move whereever you want it. Or run it directly, as hopefully you won't need it too often. Thanks again Matthias, I must be doing something wrong: $ ./recoverpics ./recoverpics: line 1: /bin: is a directory ./recoverpics: line 2: /bin: is a directory ./recoverpics: line 3: syntax error near unexpected token `(' ./recoverpics: line 3: ` * Copyright (C) 2004 Matthias Bethke [EMAIL PROTECTED]' Is that the expected output? -- Regards, Mick pgp9ZJk7YNIqq.pgp Description: PGP signature
[gentoo-user] Corrupt xD card with photos
Hi All, I was handed what seems to be a corrupt xD flash card to extract the last photo from it. When the WinXP system at work coughed and died on it (couldn't read it) I thought that my Linux would do better. Anyhow, I've inserted it into my Fuji camera and this is what dmesg shows: === 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 Mount fails: $ 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 and dmesg then shows: 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. This is what fdisk shows: # fdisk /dev/sda Device contains neither a valid DOS partition table, nor Sun, SGI or OSF 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. Warning: invalid flag 0x of partition table 4 will be corrected by w(rite) Command (m for help): p Disk /dev/sda: 131 MB, 131072000 bytes 5 heads, 50 sectors/track, 1024 cylinders Units = cylinders of 250 * 512 = 128000 bytes Device Boot Start End Blocks Id System Command (m for help): Is there a Linux (or even M$Windoze?) way of me recovering the last photo, that doesn't involve reconstructing raw data with a hexeditor? -- Regards, Mick pgpg3lGWKf416.pgp Description: PGP signature
Re: [gentoo-user] Corrupt xD card with photos
On 9/11/06, Mick [EMAIL PROTECTED] wrote: Mount fails: $ 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 What does file -s /dev/sda report? -Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Corrupt xD card with photos
Hi Mick, on Monday, 2006-09-11 at 19:50:05, you wrote: Is there a Linux (or even M$Windoze?) way of me recovering the last photo, that doesn't involve reconstructing raw data with a hexeditor? I had the honor of being tasked by my wife with recovering photos from the amorphous blob of data left over after some virus persuaded her Windoze that it was a good idea to dump its memory all over the NTFS root block. recoverpics finds pretty much every JFIF picture that is in one piece, i.e. not in a fragmented file, no matter what the file system. At 5k source it could be worth a try: https://www.linguistik.uni-erlangen.de/~msbethke/software.html HTH, Matthias -- I prefer encrypted and signed messages. KeyID: FAC37665 Fingerprint: 8C16 3F0A A6FC DF0D 19B0 8DEF 48D9 1700 FAC3 7665 pgpUjNsRxrx0j.pgp Description: PGP signature
Re: [gentoo-user] Corrupt xD card with photos
On Monday 11 September 2006 21:37, Richard Fish wrote: On 9/11/06, Mick [EMAIL PROTECTED] wrote: Mount fails: $ 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 What does file -s /dev/sda report? # file -s /dev/sda /dev/sda: data -- Regards, Mick pgp4lRr02jrrA.pgp Description: PGP signature
Re: [gentoo-user] Corrupt xD card with photos
On Monday 11 September 2006 22:19, Matthias Bethke wrote: Hi Mick, on Monday, 2006-09-11 at 19:50:05, you wrote: Is there a Linux (or even M$Windoze?) way of me recovering the last photo, that doesn't involve reconstructing raw data with a hexeditor? I had the honor of being tasked by my wife with recovering photos from the amorphous blob of data left over after some virus persuaded her Windoze that it was a good idea to dump its memory all over the NTFS root block. recoverpics finds pretty much every JFIF picture that is in one piece, i.e. not in a fragmented file, no matter what the file system. At 5k source it could be worth a try: https://www.linguistik.uni-erlangen.de/~msbethke/software.html Thanks Matthias, How do I install it manually? install tells me: # install install: missing file operand So, I ran: # install recoverpics.c recoverpics Which didn't complain. What next? How do I run it? Is there any documentation anywhere? -- Regards, Mick pgpAPLQOniVLz.pgp Description: PGP signature