Use this when reading or changing where partitions sit on a disk.
Partition Table
A partition table records where each partition starts and ends on a disk and what type it is. The two formats are MBR and GPT; view them with lsblk, fdisk -l, parted print or Get-Partition.
1. A partition table records partitions (GPT or MBR).
2. Back up before editing.
3. Kernel rereads with partprobe.
4. Don't edit tables of mounted disks carelessly.
5. Use by-uuid/by-partuuid for references.
disk header → table → partition entries
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
- MBR on disks over 2 TiB.
- Converting tables on disks with data without backup.
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.
- MBR or GPT.
- Tools: lsblk, fdisk, parted, Get-Partition.
- Back up before changes.
parted /dev/sdX print— table type and partitionssgdisk -p /dev/sdX— GPT detailsfdisk -d /dev/sdX > table.bak— back up table
ReferenceHow it works1 section · depth on demand
Commands
parted /dev/sdb mklabel gpt
parted -a optimal /dev/sdb mkpart data 1MiB 100%
Initialize-Disk -Number 2 -PartitionStyle GPT
Documented example, not captured output. Creating a label erases the existing table.
ReferenceImportant terms & boundaries3 sections · depth on demand
In depth
The partition table maps regions of a disk to partitions
The partition table (disk label) is the small metadata structure that says where each partition starts and ends, what type it is, and with GPT also its name and unique GUID. Two formats are in use: GPT and MBR (msdos).
The GNU Parted manual describes mklabel gpt|msdos as creating a new, empty table. Existing partitions are effectively lost, although rescue can search for them.
# lsblk -o NAME,PTTYPE,PARTTYPENAME,PARTLABEL,PARTUUID,SIZE
NAME PTTYPE PARTTYPENAME PARTLABEL PARTUUID SIZE
sda gpt 476.9G
├─sda1 gpt EFI System ESP 0f3a... 512M
├─sda2 gpt Linux filesystem root 7c1e... 100G
└─sda3 gpt Linux LVM lvm a9d2... 376.4G
# parted /dev/sda print
GPT and MBR at a glance
| GPT | MBR | |
|---|---|---|
| Location | Header at LBA 1, backup at the end of the disk | First sector |
| Partition entries | Typically 128 | 4 primary |
| Identification | Type GUID and unique partition GUID | One-byte type ID |
| Max size (512 B sectors) | Effectively unlimited | 2 TiB |
Practical uses of the identifiers
| Identifier | Use |
|---|---|
| PARTUUID | Stable reference in bootloader and kernel command lines (root=PARTUUID=...) |
| PARTLABEL | Human-readable name; /dev/disk/by-partlabel/ |
| File system UUID (not the table) | /etc/fstab (UUID=...) |
Do not partition when not needed
Whole-disk use is normal for ZFS (it creates its own table), Ceph OSDs, and LVM PVs on SAN LUNs. A partition table on a LUN that is later grown adds one more layer to resize.
Illustrative example (not a system capture).
How it works
The partition table at the start of the disk lists each partition's start, size and type. GPT also keeps a backup copy at the end of the disk and checksums both, so corruption can be detected and repaired.
Reference
| Type | Max disk | Max partitions | Boot |
|---|---|---|---|
| MBR | 2 TiB | 4 primary (or 3 + extended) | BIOS |
| GPT | 8 ZiB (practical: huge) | 128 (default) | UEFI |
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 → Partition Table. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.gnu.org/software/parted/manual/parted.html · confidence 94%