Use it when partitioning new disks or disks larger than 2 TiB.
GPT
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.
1. parted -l — Partition Table: gpt?
2. Create: parted /dev/<disk> mklabel gpt (destroys data).
3. Grown disk → sgdisk -e /dev/<disk> then grow the partition (growpart).
4. partprobe so the kernel sees changes.
5. lsblk to confirm.
GPT header and table → partitions with type GUIDs → backup header at disk end
For Disks & Block Devices → GPT, continue with the first unproven Topic check: Capture disk size and current GPT headers/entries before any repair. If that boundary is healthy, advance to the adjacent check: Compare primary versus backup header/table CRC and end-of-disk placement. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
disk size → protective MBR → primary GPT header/table → partition LBAs + GUIDs → backup table/header → kernel partition reread → upper storage layers
Healthy evidence: primary and backup GPT headers agree with disk size, CRCs validate, partition boundaries do not overlap and upper layers map to the expected partitions.
Step 2 Verification and output interpretation Verify boundary
Existing fast checks for this Topic. - Capture disk size and current GPT headers/entries before any repair.
- Compare primary versus backup header/table CRC and end-of-disk placement.
- Verify partition start/end LBAs, type GUIDs and unique GUIDs against expected layout.
- After repair, re-read the table and verify every upper storage mapping before workload access.
Verification chain. disk size → protective MBR → primary GPT header/table → partition LBAs + GUIDs → backup table/header → kernel partition reread → upper storage layers
Step 3 Commands Verify boundary
gdisk -l /dev/sda
parted /dev/sda print
sgdisk -p /dev/sda
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: primary/backup disagreement, invalid CRC, backup header not at the disk end after resizing or overlapping/out-of-range LBAs indicates partition metadata risk.
Step 5 Common mistakes Narrow the fault
- Using MBR tools on GPT disks.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
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.
lsblk -f— disks, partitions, filesystems, UUIDs and mount pointsblkid— UUIDs, labels and typesfdisk -l / parted -l— partition tablesudevadm info /dev/<dev>— device properties
ReferenceWhat it is1 section · depth on demand
Core model
Verify the disk actually uses GPT, then compare primary and backup metadata, usable-LBA boundaries, partition GUID/type GUID, starts/ends and alignment. A readable primary table does not show the backup is healthy, and repairing GPT must use the correct disk size and preserve existing partition boundaries.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
GPT validation shows partition-table metadata and boundaries, not filesystem integrity, LVM metadata or data correctness inside partitions.
In depth
GPT: the GUID Partition Table
GPT is the modern partition table format, defined in the UEFI specification and used on both UEFI and BIOS systems. The specification describes the layout:
- LBA 0: a protective MBR.
- LBA 1: the primary GPT header, with the signature "EFI PART" and CRC32 checksums for the header and for the partition array.
- Partition array: at least 16,384 bytes, enough for 128 entries of 128 bytes each.
- Last LBA: a backup header, with a backup copy of the array stored separately.
Each entry has a partition type GUID, which says what the partition is for, and a unique partition GUID.
GPT compared with MBR
| GPT | MBR | |
|---|---|---|
| Partitions | 128 by default | 4 primary (or 3 + extended with logical partitions) |
| Disk size | Beyond 2 TiB | Limited by 32-bit sector addresses (2 TiB with 512-byte sectors) |
| Redundancy | Backup header and array at the end of the disk | None |
| Integrity check | CRC32 | None |
| Partition identity | Type GUID + unique GUID + name | 1-byte type code |
Common type GUIDs
| Purpose | Type GUID | Short code (gdisk/sgdisk) |
|---|---|---|
| EFI System Partition | C12A7328-F81F-11D2-BA4B-00A0C93EC93B | EF00 |
| BIOS boot partition (GRUB on BIOS+GPT) | 21686148-6449-6E6F-744E-656564454649 | EF02 |
| Linux file system | 0FC63DAF-8483-4772-8E79-3D69D8477DE4 | 8300 |
| Linux LVM | E6D6D379-F507-44C2-A23C-238F2A3DF928 | 8E00 |
| Linux RAID | A19D880F-05FC-4D3B-A006-743F0F84911E | FD00 |
| Linux swap | 0657FD6D-A4AB-43C4-84E5-0933C84B4F4F | 8200 |
host$ sudo sfdisk -l /dev/nvme0n1 | head -8
Disk /dev/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disklabel type: gpt
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 1050623 1048576 512M EFI System
/dev/nvme0n1p2 1050624 3147775 2097152 1G Linux filesystem
/dev/nvme0n1p3 3147776 1000214527 997066752 475.4G Linux LVM
host$ sudo sgdisk -p /dev/nvme0n1 | grep -E "GUID|Partition table holds"
host$ sudo sgdisk -v /dev/nvme0n1
No problems found.
host$ lsblk -o NAME,PARTTYPENAME,PARTUUID /dev/nvme0n1
host$ sudo sgdisk -e /dev/sdc
After growing a virtual disk
The backup GPT lives at the end of the disk. When a virtual disk grows, the backup is suddenly no longer at the end. sgdisk -e (or parted's fix prompt) moves it to the new end, so the extra space can be used for partitions.
Documented example, not captured output.
How it works at runtime
GPT is part of Disks & Block Devices → GPT. GPT is the GUID Partition Table format, using protective MBR compatibility, a primary header/table and a backup header/table with CRC-protected metadata and globally unique partition identifiers.
Topic-specific state model. GPT is the GUID Partition Table format, using protective MBR compatibility, a primary header/table and a backup header/table with CRC-protected metadata and globally unique partition identifiers.
Interpretation rule. - GPT recognized ≠ both primary and backup metadata are valid.
- Partition GUID ≠ filesystem UUID or LVM PV UUID.
- Protective MBR presence ≠ GPT partition data is healthy.
- Rewriting GPT headers safely ≠ filesystem/data inside partitions is healthy.
Quick reference
GPT on Linux:
parted -s /dev/sdb mklabel gpt
parted -s /dev/sdb mkpart data xfs 1MiB 100%
sgdisk -p /dev/sdb
sgdisk -n 1:0:+512M -t 1:ef00 /dev/sdb # ESP
sgdisk -n 2:0:0 -t 2:8e00 /dev/sdb # LVM
sgdisk --backup=sdb.gpt /dev/sdb
GPT keeps a backup header at the end of the disk; after growing a virtual disk, move it with sgdisk -e /dev/sdb (or parted fixes it interactively) before resizing partitions. Type codes: 8300 Linux, 8e00 LVM, fd00 RAID, ef00 ESP, ef02 BIOS boot.
Limits and how it fails
Primary failure point. GPT validation shows partition-table metadata and boundaries, not filesystem integrity, LVM metadata or data correctness inside partitions.
For a live incident, hand the exact output, context, timestamps and original failing operation to ChatGPT for synthesis instead of encoding a large troubleshooting decision tree in the site.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. GPT owns GUID partition-table structures and redundancy. Partitions owns generic partition semantics; filesystems and LVM own metadata stored inside partitions.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Disks & Block Devices → GPT. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/filesystems/index.html · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
GPT operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for GPT.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | GPT is the GUID Partition Table format, using protective MBR compatibility, a primary header/table and a backup header/table with CRC-protected metadata and globally unique partition identifiers. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin host + incident/change time → capture block topology and stable identities → validate partition/device metadata → validate filesystem identity/integrity and effective mount namespace/options → validate PV/VG/LV/device-mapper state where used → make one controlled change at the first failed boundary → re-read effective storage state → repeat original workload I/O/acceptance test. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | disk size → protective MBR → primary GPT header/table → partition LBAs + GUIDs → backup table/header → kernel partition reread → upper storage layers | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | GPT validation proves partition-table metadata and boundaries, not filesystem integrity, LVM metadata or data correctness inside partitions. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated Linux storage evidence can establish this proof path: disk size → protective MBR → primary GPT header/table → partition LBAs + GUIDs → backup table/header → kernel partition reread → upper storage layers | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured device, metadata, mapping, mount or workload scope. GPT validation proves partition-table metadata and boundaries, not filesystem integrity, LVM metadata or data correctness inside partitions. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven boundary: prove backing identity, then on-device metadata, then filesystem/LVM mapping and effective mount/device state, and finally repeat the original workload I/O before any additional storage change. | Continue to the next unresolved boundary while preserving the original test condition. |
GPT · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | GPT |
|---|---|
| Topic path | Disks & Block Devices → GPT |
| Runtime state | GPT is the GUID Partition Table format, using protective MBR compatibility, a primary header/table and a backup header/table with CRC-protected metadata and globally unique partition identifiers. |
| Fast checks | - Capture disk size and current GPT headers/entries before any repair. - Compare primary versus backup header/table CRC and end-of-disk placement. - Verify partition start/end LBAs, type GUIDs and unique GUIDs against expected layout. - After repair, re-read the table and verify every upper storage mapping before workload access. |
| Verification chain | disk size → protective MBR → primary GPT header/table → partition LBAs + GUIDs → backup table/header → kernel partition reread → upper storage layers Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. |
| Failure boundary | GPT validation proves partition-table metadata and boundaries, not filesystem integrity, LVM metadata or data correctness inside partitions. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |