1 |
Sven Köhler wrote: |
2 |
> First thing that i see is: |
3 |
> where the hell is /dev/sda1? Yes, there should be a FAT partition on |
4 |
> that xD card, but it's not there. |
5 |
> |
6 |
> So first step: |
7 |
> Re-create a primary FAT partition without formatting it (for example use |
8 |
> cfdisk) |
9 |
|
10 |
This is worth a try. However, I would first dump the whole card to a |
11 |
file, make a copy of the file, and try all recovery attempts on the |
12 |
copy. This way, you can always go back to the original and try something |
13 |
else. |
14 |
|
15 |
Make a copy: |
16 |
|
17 |
dd if=/dev/sda of=xd.img bs=1M |
18 |
|
19 |
Make a working copy: |
20 |
|
21 |
cp xd.img xd_work.img |
22 |
|
23 |
Re-create the partition table: |
24 |
|
25 |
fdisk -b 512 -C 1024 -H 5 -S 50 xd_work.img |
26 |
|
27 |
Enter: "n", "p", "1", "1", "1024", "t", "6", "w" |
28 |
|
29 |
(Not quite sure about the partition type (6), you might want to try |
30 |
other types like FAT32 (b)) |
31 |
|
32 |
Try to mount the partition: |
33 |
|
34 |
mkdir mnt |
35 |
mount -o ro,loop,offset=25600 xd_work.img mnt |
36 |
|
37 |
(25600 is 50 (number of sectors) * 512 (bytes per sector), that's the |
38 |
start of the first partition) |
39 |
|
40 |
Most of this will have to be done as root, so please be careful. |
41 |
|
42 |
Good luck! |
43 |
-- Remy |
44 |
|
45 |
|
46 |
Remove underscore and suffix in reply address for a timely response. |
47 |
|
48 |
-- |
49 |
gentoo-user@g.o mailing list |