Storage
Partitioning
Cheat sheet · https://pcornel.dk/topic.php?topic=3937
Answer
Partitioning divides a disk into separate regions described by a partition table (GPT or MBR), each holding a file system, swap, EFI system partition or LVM physical volume.
Remember
- GPT is required for disks over 2 TiB and for UEFI boot.
- Partitions should start on 1 MiB boundaries.
- The kernel may need partprobe to see a changed table.
First checks
lsblk -o NAME,SIZE,TYPE,PARTTYPE,FSTYPE— partitionsparted -l— tables and partitionsGet-Partition— Windows partitions
Verify in this order
disk → partition table → partitions → filesystems
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=3937