geli recovery

Ivan Voras ivoras at freebsd.org
Thu Jan 21 12:30:17 UTC 2010


On 01/21/10 12:44, BSD Life wrote:
> Since I didn't get a response on -stable yet, I ask here again.
>
> I put my WD5000AACS in my Windows PC and did a SMART drive quick self-test
> with the WD utility (Data Lifeguard Diagnostic for Windows) to check my
> drive because of the recently discussed Load/Reload Cycle problem.
> No data was written to the drive. I put it back to my FreeBSD box
> (8.0-Stable) and I I am not able to decrypt it anymore with geli.
> It keeps telling: # geli attach -k /etc/keys/keyfile /dev/ada0
> geli: Cannot read metadata from /dev/ada0: Invalid argument.
>
> A geli backup command failed with:
> geli: MD5 hash mismatch: not a geli provider?
>
> I think Windows has messed up something on my disk, but a fdisk dump looks
> still the same as before:
> # fdisk /dev/ada0
> ******* Working on device /dev/ada0 *******
> parameters extracted from in-core disklabel are:
> cylinders=969021 heads=16 sectors/track=63 (1008 blks/cyl)
>
> Figures below won't work with BIOS for partitions not in cyl 1
> parameters to be used for BIOS calculations are:
> cylinders=969021 heads=16 sectors/track=63 (1008 blks/cyl)
>
> fdisk: invalid fdisk partition table found

Was there ever a partition table on the drive?

> Media sector size is 512
> Warning: BIOS sector numbering starts with sector 1
> Information from DOS bootblock is:
> The data for partition 1 is:
> sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
> start 63, size 976773105 (476939 Meg), flag 80 (active)
> beg: cyl 0/ head 1/ sector 1;
> end: cyl 316/ head 15/ sector 63
> The data for partition 2 is:
> <UNUSED>
> The data for partition 3 is:
> <UNUSED>
> The data for partition 4 is:
> <UNUSED>
>
> Are there any things I could try or is all my data gone?

You could read the last sector of the disk and send it here for 
inspection (pass it through 'hd').



More information about the freebsd-geom mailing list