gpart failing with no such geom after gpt corruption

Paul Wootton paul at
Thu Apr 1 19:10:10 UTC 2010


One thing to remember is that GPT stores it's header and entry tables at 
both the start and end of the disk for redundancy.
As far as I understand it, by making the disk physically smaller, the 
GPT primary header and entry data would have become  invalid as the last 
partition would now be ending past the end of the disk

Partition table format

Offset    Length   Content
0   8   Signature ("EFI PART", 45 46 49 20 50 41 52 54)
24    8    Current LBA (location of this header copy)
32    8    Backup LBA (location of the other header copy)
40    8    First usable LBA for partitions (primary partition table last 
LBA + 1)
48    8    Last usable LBA (secondary partition table first LBA - 1)

GUID partition entry format

Offset    Length   Content
0    16    Partition type GUID
32    8    First LBA (little-endian)
40    8    Last LBA (inclusive, usually odd)


More information about the freebsd-current mailing list