1 |
On Tuesday 12 September 2006 08:26, Remy Blank wrote: |
2 |
|
3 |
> This is worth a try. However, I would first dump the whole card to a |
4 |
> file, make a copy of the file, and try all recovery attempts on the |
5 |
> copy. This way, you can always go back to the original and try something |
6 |
> else. |
7 |
|
8 |
Blast! Too late now - I've tried to recreate the partition table (see other |
9 |
message). But this is a very sensible approach and I should have thought of |
10 |
it at the time. Thank you very much for your advice - well worth bookmarking |
11 |
this one! |
12 |
|
13 |
> Make a copy: |
14 |
> |
15 |
> dd if=/dev/sda of=xd.img bs=1M |
16 |
> |
17 |
> Make a working copy: |
18 |
> |
19 |
> cp xd.img xd_work.img |
20 |
> |
21 |
> Re-create the partition table: |
22 |
> |
23 |
> fdisk -b 512 -C 1024 -H 5 -S 50 xd_work.img |
24 |
> |
25 |
> Enter: "n", "p", "1", "1", "1024", "t", "6", "w" |
26 |
> |
27 |
> (Not quite sure about the partition type (6), you might want to try |
28 |
> other types like FAT32 (b)) |
29 |
> |
30 |
> Try to mount the partition: |
31 |
> |
32 |
> mkdir mnt |
33 |
> mount -o ro,loop,offset=25600 xd_work.img mnt |
34 |
> |
35 |
> (25600 is 50 (number of sectors) * 512 (bytes per sector), that's the |
36 |
> start of the first partition) |
37 |
> |
38 |
> Most of this will have to be done as root, so please be careful. |
39 |
> |
40 |
> Good luck! |
41 |
> -- Remy |
42 |
> |
43 |
> |
44 |
> Remove underscore and suffix in reply address for a timely response. |
45 |
|
46 |
-- |
47 |
Regards, |
48 |
Mick |