Sven Köhler wrote:
> 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)

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.

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.

-- 
gentoo-user@gentoo.org mailing list

Reply via email to