Pcornel
Storage · Partitioning

Partition Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=3946

Back to the Topic

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

Remember

  • Kernel may need partprobe.
  • Backup GPT can restore damaged primary.
  • Wrong tool can destroy data.

First checks

  • parted -l — tables
  • sgdisk -v /dev/sdX — GPT errors
  • dmesg | grep -i -e gpt -e partition — kernel warnings

Commands

lsblk -o NAME,TYPE,SIZE,FSTYPE,PARTTYPE,PARTUUID,MOUNTPOINTS
Inspect block and partition topology. Focus fields: device hierarchy, partition type/UUID, filesystem type, size and mo…
lsblk

Verify in this order

table → kernel view → partitions

Where it usually breaks

First mismatch in media/provider → controller/pool → logical object → path/protocol → filesystem/share/object namespace → consumer workload; preserve identity/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3946

Confirmation

Confirm action

Continue?