Storage · Partitioning
Partition Table
Cheat sheet · https://pcornel.dk/topic.php?topic=3938
Answer
A partition table records where each partition starts and ends on a disk and what type it is. The two formats are MBR and GPT; view them with lsblk, fdisk -l, parted print or Get-Partition.
Remember
- MBR or GPT.
- Tools: lsblk, fdisk, parted, Get-Partition.
- Back up before changes.
First checks
parted /dev/sdX print— table type and partitionssgdisk -p /dev/sdX— GPT detailsfdisk -d /dev/sdX > table.bak— back up table
Verify in this order
disk header → table → partition entries
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=3938