Use this when creating, resizing or repairing partitions, or deciding between GPT and MBR.
Partitioning
Partitioning divides a disk into separate regions described by a partition table (GPT or MBR), each holding a file system, swap, EFI system partition or LVM physical volume.
1. Partitions divide a disk.
2. Use GPT for new disks.
3. Align to 1 MiB.
4. Know ESP and boot partitions.
5. Back up the table before changes.
disk → partition table → partitions → filesystems
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
- Partitioning the wrong disk — verify serial and size first.
- Forgetting
partprobeafter changes.
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.
Subtopics
Go one level deeper into this subject.
A partition table records where each partition starts and ends on a disk and what type it is.
Subtopic GPTGPT (GUID Partition Table) is the modern partition table used with UEFI.
Subtopic MBRMBR (Master Boot Record) is the legacy partition table in the first sector of a disk.
Subtopic EFI System PartitionThe EFI System Partition (ESP) is a small FAT32 partition, typically 100–550 MB, that holds UEFI bootloaders such as \EFI\Microsoft\Boot or \EFI\ubuntu.
Subtopic Primary PartitionA primary partition is one of the main entries in an MBR partition table, which allows up to four.
Subtopic Extended PartitionAn extended partition is an MBR workaround for the four-primary-partition limit: one primary slot becomes a container that holds any number of logical partitions.
Subtopic Logical PartitionA logical partition lives inside an MBR extended partition and is numbered from 5 on Linux.
Subtopic AlignmentPartition alignment starts partitions on boundaries that match the disk's physical sectors and RAID stripes, normally 1 MiB.
Subtopic Partition TroubleshootingTroubleshoot partitions by checking the table type and layout (parted print, gdisk, Get-Partition), alignment, a missing or damaged ESP, backup GPT header errors, and whether the kernel has re-read the table (partprobe).
- GPT is required for disks over 2 TiB and for UEFI boot.
- Partitions should start on 1 MiB boundaries.
- The kernel may need partprobe to see a changed table.
lsblk -o NAME,SIZE,TYPE,PARTTYPE,FSTYPE— partitionsparted -l— tables and partitionsGet-Partition— Windows partitions
ReferenceHow it works1 section · depth on demand
Typical layouts
| System | Layout |
|---|---|
| Windows UEFI | ESP 100 MB, MSR 16 MB, C:, Recovery |
| Linux UEFI | ESP 512 MB–1 GB, /boot (optional), root (often LVM) |
| Data disk | One partition spanning the disk, or none (LVM/ZFS on whole disk) |
ReferenceImportant terms & boundaries2 sections · depth on demand
How it works
Partitioning divides a disk into separate regions described by a partition table (GPT or MBR). Each partition can hold a filesystem, swap, an LVM physical volume or a boot partition, and the OS sees it as its own block device.
Reference
lsblk -o NAME,SIZE,FSTYPE,PARTTYPE,MOUNTPOINT
parted -l
Get-Partition | Select DiskNumber,PartitionNumber,Type,Size
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. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.gnu.org/software/parted/manual/parted.html · confidence 94%