Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Alignment

Direct answer

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.

When to use this

Use this when partitions or RAID stripes may be misaligned and hurt performance.

First 30 seconds

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.

Operational verification

partition start → physical block/stripe boundary

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Storage architecture and operations
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformStorage architecture and operations
Scope / prerequisiteUse this when partitions or RAID stripes may be misaligned and hurt performance.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • Start partitions at 1 MiB.
  • Misalignment splits I/O across blocks.
  • SSD and 4K disks suffer most.
Key checks
  • parted /dev/sdX align-check optimal 1 — alignment check
  • cat /sys/block/sdX/queue/physical_block_size — sector size
  • Get-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.

LayerAlign to
Partition start1 MiB
LVM PV data areaDefault 1 MiB (pvs -o +pe_start)
RAID chunk / file systemmkfs.xfs -d su=,sw=, mkfs.ext4 -E stride=,stripe-width= when tools do not detect it
VM disksGuest 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.*

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docStorage architecture and operations current

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%
Confirmation

Confirm action

Continue?