Use this when partitions or RAID stripes may be misaligned and hurt performance.
Alignment
Partition alignment starts partitions on boundaries that match the disk's physical sectors and RAID stripes, normally 1 MiB. Misaligned partitions split I/O across blocks and cut performance, especially on SSDs and 4K disks.
1. Align partitions to 1 MiB (2048 sectors).
2. Misalignment hurts SSD/RAID/4K performance.
3. Modern tools align by default.
4. Check old partitions/VM images.
5. Align to RAID stripe for parity arrays.
partition start → physical block/stripe boundary
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
- Old partitions created at sector 63, hurting performance on SSDs/RAID.
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.
- Start partitions at 1 MiB.
- Misalignment splits I/O across blocks.
- SSD and 4K disks suffer most.
parted /dev/sdX align-check optimal 1— alignment checkcat /sys/block/sdX/queue/physical_block_size— sector sizeGet-Partition | ft PartitionNumber,Offset— Windows offsets
ReferenceHow it works1 section · depth on demand
Why it matters
Misaligned partitions make one logical I/O span two physical blocks (4K sectors, SSD pages, RAID stripes), doubling reads/writes. Aligning to 1 MiB satisfies 4K sectors and common stripe sizes.
ReferenceImportant terms & boundaries3 sections · depth on demand
In depth
Misaligned partitions make one host I/O cost two device I/Os
Modern disks use 4 KiB physical sectors (often reporting 512-byte logical sectors), SSDs have larger internal pages and erase blocks, and RAID/SAN LUNs have stripe sizes. A partition that starts at an offset not divisible by those sizes splits I/Os across boundaries.
Check with parted
The Parted manual documents align-check minimal|optimal N, which prints whether partition N's start meets the alignment, and the -a option (none, cylinder, minimal, optimal) for new partitions.
# parted /dev/sdb align-check optimal 1
1 aligned
# parted /dev/sdb unit s print
Number Start End Size File system Name Flags
1 2048s 15628052479s 15628050432s ext4 data
# cat /sys/block/sdb/queue/physical_block_size /sys/block/sdb/queue/optimal_io_size
4096
0
A start at sector 2048 (1 MiB with 512-byte sectors) is aligned for 4 KiB sectors and for common stripe sizes; that is why modern tools default to 1 MiB.
Legacy problem
Partitions created by old tools started at sector 63 (cylinder alignment). On a 4 KiB-sector disk every 4 KiB write then touches two physical sectors and becomes a read-modify-write.
| Layer | Align to |
|---|---|
| Partition start | 1 MiB |
| LVM PV data area | Default 1 MiB (pvs -o +pe_start) |
| RAID chunk / file system | mkfs.xfs -d su=,sw=, mkfs.ext4 -E stride=,stripe-width= when tools do not detect it |
| VM disks | Guest partitions aligned too |
Fixing it
Alignment cannot be changed in place without moving data. Create a correctly aligned partition on a new disk/LUN and migrate (pvmove, rsync, storage migration).
*The parted result and physical block size illustrate sector-boundary checks, not a measured disk layout.*
How it works
Partitions should start on a boundary that is a multiple of the device's physical block or erase-block size; starting at 1 MiB (sector 2048 with 512-byte sectors) is aligned for all common devices. Misaligned partitions make one logical write span two physical blocks, reducing performance, especially on SSDs and RAID stripes.
parted /dev/sdb align-check optimal 1
lsblk -t /dev/sdb # ALIGNMENT column 0 = aligned
Reference
Partitions should start on 1 MiB boundaries (sector 2048 for 512-byte sectors). Modern tools do this by default. Check with parted /dev/sda align-check optimal 1 or fdisk -l (start sector divisible by 2048).
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 → Alignment. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.gnu.org/software/parted/manual/parted.html · confidence 94%