Use this when using or repairing GPT partition tables.
GPT
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.
1. GPT: up to 128 partitions, >2 TB, CRC-protected with backup header at disk end.
2. Required for UEFI boot.
3. Partition type GUIDs identify roles.
4. Repair with sgdisk from backup header.
5. Default for new disks.
protective MBR → GPT header → entries → backup header
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 Common mistakes Narrow the fault
- Copying disks with tools that do not move the backup GPT header to the new end.
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.
- Supports disks over 2 TiB.
- Backup header at end of disk.
- Needed for UEFI boot.
sgdisk -v /dev/sdX— verify GPTsgdisk -p /dev/sdX— partitionsGet-Disk | ft Number,PartitionStyle— Windows
ReferenceHow it works1 section · depth on demand
Why GPT
- Disks larger than 2 TiB.
- Up to 128 partitions without extended/logical tricks.
- CRC-protected header with backup copy at the end.
- Required for UEFI boot on Windows.
ReferenceImportant terms & boundaries3 sections · depth on demand
In depth
GPT is the default partition table for new disks
The GNU Parted manual describes mklabel gpt as the modern choice; msdos (MBR) is still common on older PCs. GPT removes MBR's four-primary-partition limit and its 2 TiB limit with 512-byte sectors, keeps a backup header at the end of the disk, and names partitions.
# parted /dev/sdb --script mklabel gpt
# parted /dev/sdb --script -a optimal mkpart data ext4 1MiB 100%
# parted /dev/sdb unit MiB print
Model: ATA ST8000 (scsi)
Disk /dev/sdb: 7630885MiB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Number Start End Size File system Name Flags
1 1.00MiB 7630884MiB 7630883MiB ext4 data
mklabel effectively destroys the existing partition table. The manual notes that rescue can search for lost partitions afterwards — do not rely on it.
GPT versus MBR
| GPT | MBR (msdos) | |
|---|---|---|
| Partitions | Many (128 by default with common tools) | 4 primary, or 3 + extended/logical |
| Max disk (512 B sectors) | Far beyond current disks | 2 TiB |
| Redundancy | Backup header and table at disk end | None |
| Firmware | UEFI boot (ESP); BIOS boot needs a BIOS boot partition | Legacy BIOS |
| Names | Yes, required by mkpart on GPT | No |
Operational notes
- After replacing a disk in an array, copy the GPT with
sgdisk -R /dev/new /dev/oldand give it new GUIDs withsgdisk -G /dev/new. - A "backup GPT header not at end of disk" warning after growing a virtual disk is fixed by moving the backup header (
sgdisk -e, or let parted fix it). - Use
lsblk -o NAME,PTTYPE,PARTLABEL,PARTUUIDto inspect quickly.
*The partition boundaries and disk geometry are illustrative values, not an actual disk partitioning result.*
How it works
GPT (GUID Partition Table) is part of the UEFI specification. It supports up to 128 partitions by default and disks far beyond 2 TiB using 64-bit LBAs, and keeps a protective MBR so old tools do not see the disk as empty.
Reference
sgdisk -p /dev/sdb
gdisk -l /dev/sdb
Get-Disk | Select Number,PartitionStyle
GPT keeps a backup header at the end of the disk; repair with gdisk (recovery menu) if the primary is damaged.
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 Partitioning → GPT. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.gnu.org/software/parted/manual/parted.html · confidence 94%