Use this when partitions are missing, overlapping or not seen by the OS.
Partition Troubleshooting
Troubleshoot 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).
1. Problems: corrupted table, wrong type, overlap, kernel not seeing changes.
2. Run partprobe after changes.
3. Restore from backup header/table.
4. Use testdisk for lost partitions.
5. Check alignment.
table → kernel view → partitions
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
lsblk -o NAME,TYPE,SIZE,FSTYPE,PARTTYPE,PARTUUID,MOUNTPOINTSPrimary Commands
Configuration and operational commands for this Topic.
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
- Writing to a damaged disk while trying to recover partitions.
- Kernel may need partprobe.
- Backup GPT can restore damaged primary.
- Wrong tool can destroy data.
parted -l— tablessgdisk -v /dev/sdX— GPT errorsdmesg | grep -i -e gpt -e partition— kernel warnings
ReferenceHow it works2 sections · depth on demand
How it works
Partition problems usually come from a wrong or damaged table, overlapping partitions, misalignment or the kernel not having re-read the table. Check with lsblk, parted print and gdisk -l (which validates GPT CRCs) before changing anything.
Common problems
| Symptom | Cause |
|---|---|
| Partition missing after change | Kernel not reloaded (partprobe) |
| Disk shows unallocated | Table damaged or wrong disk |
| GPT header warning | Backup header not at disk end (after cloning) |
| Cannot extend | Recovery partition in the way |
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Most partition problems are tables that do not match the disk
# parted /dev/sdb print
Warning: Not all of the space available to /dev/sdb appears to be used, you can fix the GPT to use all of the space (an extra 419430400 blocks) or continue with the current setting?
Fix/Ignore? Fix
# partprobe /dev/sdb
# lsblk /dev/sdb
# parted /dev/sdb unit s print free
The Parted manual documents print free (shows unallocated space), unit s for exact sector positions, align-check and rescue to search a range for a lost partition.
Symptom table
| Symptom | Cause | Action |
|---|---|---|
| Disk grew (VM/LUN) but no free space shown | GPT backup header still at the old end | Let parted fix it, or sgdisk -e |
| New partition not visible | Kernel did not re-read the table (disk in use) | partprobe; partx -u; reboot if the disk is busy |
Partition(s) on /dev/sdb are being used | Mounted file system, LVM or md on the disk | Unmount or deactivate first |
| Partition table missing after a wrong command | mklabel or wipe | parted rescue, testdisk; stop writing to the disk |
align-check reports not aligned | Old tool created the partition | Migrate to an aligned partition |
| Corrupt primary GPT, backup intact | Damage at the disk start | gdisk recovery menu can rebuild from the backup |
Before any change
# sfdisk -d /dev/sdb > /root/sdb.sfdisk # MBR and GPT
# sgdisk --backup=/root/sdb.gpt /dev/sdb # GPT, including headers
Growing a partition in place
growpart /dev/sdb 1 (cloud-utils) or parted's resizepart moves the end of the last partition. Then grow the PV or file system (pvresize, resize2fs, xfs_growfs). Shrinking or moving the start of a partition requires moving data.
Illustrative example (not a system capture).
Reference
1. lsblk, parted -l, Get-Disk — is the disk and table seen?
2. dmesg for read errors.
3. Wrong table type for boot mode?
4. Lost partitions: testdisk (on an image or after backup).
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 Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.gnu.org/software/parted/manual/parted.html · confidence 94%