Pcornel
Linux · Disks & Block Devices

GPT

Cheat sheet · https://pcornel.dk/topic.php?topic=2749

Back to the Topic

Answer

GPT (GUID Partition Table) is the modern partition scheme: up to 128 partitions, disks larger than 2 TiB, a backup table at the end of the disk and partition type GUIDs. UEFI boot uses a GPT EFI System Partition.

Remember

Use gdisk, parted or sgdisk. After growing a virtual disk, move the backup header to the new end (sgdisk -e) before growing partitions. BIOS boot from GPT needs a small BIOS boot partition.

First checks

  • lsblk -f — disks, partitions, filesystems, UUIDs and mount points
  • blkid — UUIDs, labels and types
  • fdisk -l / parted -l — partition tables
  • udevadm info /dev/<dev> — device properties

Verify in this order

GPT header and table → partitions with type GUIDs → backup header at disk end

Where it usually breaks

First mismatch in hardware/block device → kernel driver/mapper/RAID/LVM → filesystem → mount namespace/options → path permissions/MAC → consumer I/O; preserve identity/native diagnostic/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=2749

Confirmation

Confirm action

Continue?