On Tuesday 12 September 2006 08:26, Remy Blank wrote: > This is worth a try. However, I would first dump the whole card to a > file, make a copy of the file, and try all recovery attempts on the > copy. This way, you can always go back to the original and try something > else.
Blast! Too late now - I've tried to recreate the partition table (see other message). But this is a very sensible approach and I should have thought of it at the time. Thank you very much for your advice - well worth bookmarking this one! > Make a copy: > > dd if=/dev/sda of=xd.img bs=1M > > Make a working copy: > > cp xd.img xd_work.img > > Re-create the partition table: > > fdisk -b 512 -C 1024 -H 5 -S 50 xd_work.img > > Enter: "n", "p", "1", "1", "1024", "t", "6", "w" > > (Not quite sure about the partition type (6), you might want to try > other types like FAT32 (b)) > > Try to mount the partition: > > mkdir mnt > mount -o ro,loop,offset=25600 xd_work.img mnt > > (25600 is 50 (number of sectors) * 512 (bytes per sector), that's the > start of the first partition) > > Most of this will have to be done as root, so please be careful. > > Good luck! > -- Remy > > > Remove underscore and suffix in reply address for a timely response. -- Regards, Mick
pgpb7TxvOWHBC.pgp
Description: PGP signature