Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Partition Troubleshooting

Direct answer

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).

When to use this

Use this when partitions are missing, overlapping or not seen by the OS.

First 30 seconds

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.

Operational verification

table → kernel view → partitions

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 · Linux / util-linux
Key commandlsblk -o NAME,TYPE,SIZE,FSTYPE,PARTTYPE,PARTUUID,MOUNTPOINTS
Scope / prerequisiteUse this when partitions are missing, overlapping or not seen by the OS.
Verify · 1
What next?3 suggested next steps
Catalog command links1
Evidence0
On this pageJump to a specific section
Storage command reference

Primary Commands

Configuration and operational commands for this Topic.

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
  • Writing to a damaged disk while trying to recover partitions.
Key points
  • Kernel may need partprobe.
  • Backup GPT can restore damaged primary.
  • Wrong tool can destroy data.
Key checks
  • parted -l — tables
  • sgdisk -v /dev/sdX — GPT errors
  • dmesg | 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

SymptomCause
Partition missing after changeKernel not reloaded (partprobe)
Disk shows unallocatedTable damaged or wrong disk
GPT header warningBackup header not at disk end (after cloning)
Cannot extendRecovery 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

SymptomCauseAction
Disk grew (VM/LUN) but no free space shownGPT backup header still at the old endLet parted fix it, or sgdisk -e
New partition not visibleKernel 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 usedMounted file system, LVM or md on the diskUnmount or deactivate first
Partition table missing after a wrong commandmklabel or wipeparted rescue, testdisk; stop writing to the disk
align-check reports not alignedOld tool created the partitionMigrate to an aligned partition
Corrupt primary GPT, backup intactDamage at the disk startgdisk 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).

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

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

Confirm action

Continue?