Layout on harddisk
A GPT disk starts with a 512 byte large
protective MBR (where an ordinary
MBR would be) to prevent MBR-only partitioning tools from overwriting GPT disks.
This protective MBR contains an entry to an inexisting 2 TiB large partition (with code EE00
). Thus, the MBR-only partitioning tool thinks the entire disk is occupied.
When executing gdisk /dev/sda
, it might print (note the Found valid GPT with protective MBR
):
GPT fdisk (gdisk) version 1.0.0
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help):
The GPT header is stored in the 2nd sector (LBA 1) and is followed by the GPT partition entry array.
The minimum size reserved for the GPT partition entry array is 32 blocks (sectors?), i.e. with block size 512 = 16 KiB.
The first
partition (usually) starts with sector 2048.