Skip to content

GUID Partition Table

Is a standard layout of disk partition, used notably by UEFI systems. It aims to replace MBR.

Usage

Errors after a VM disk shrink

  • Symptoms: the disk don't boot, and GParted complains of errors
  • Why: GPT store partition table at the end of the disk
  • Validation
    • Run gdisk -l /dev/sdX
    • The error "Warning! Disk size is smaller than the main header indicates!" will be there
  • Resolution (source)
    • Run gdisk /dev/sdX
    • Type x to go into experts mode, then e to relocate the backup partition table to the end of the disk, then w to write changes, then confirm.