GPT
Cheat sheet · https://pcornel.dk/topic.php?topic=3939
Answer
GPT (GUID Partition Table) is the modern partition table used with UEFI. It supports disks larger than 2 TiB, up to 128 partitions by default, and keeps a backup header at the end of the disk.
Remember
- Supports disks over 2 TiB.
- Backup header at end of disk.
- Needed for UEFI boot.
First checks
sgdisk -v /dev/sdX— verify GPTsgdisk -p /dev/sdX— partitionsGet-Disk | ft Number,PartitionStyle— Windows
Commands
lsblk -o NAME,PTTYPE,PARTLABEL,PARTUUID
Verify in this order
protective MBR → GPT header → entries → backup header
Where it usually breaks
First mismatch in media/provider → controller/pool → logical object → path/protocol → filesystem/share/object namespace → consumer workload; preserve identity/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3939