Partitions
Cheat sheet · https://pcornel.dk/topic.php?topic=3149
Answer
A partition is a defined range of sectors on a disk. Its offset, size, type and role are partition-table metadata; a partition can exist without a mounted or usable filesystem.
Remember
- Partition ≠ volume ≠ filesystem.
- Partition numbers are scoped to a disk and can change after layout operations.
- GPT can identify partition types with GUIDs; MBR uses legacy type metadata and primary/extended/logical concepts.
- Free space inside a filesystem is different from unallocated disk space outside partitions.
- Extension normally requires suitable contiguous/unallocated layout as required by the specific operation and storage model.
First checks
Get-Disk— disks, partition style, healthGet-Partition— partitionsGet-Volume— volumes, filesystem, free spaceGet-PhysicalDisk | Select FriendlyName,HealthStatus,OperationalStatus— physical disk healthdiskmgmt.msc— Disk Management
Verify in this order
partition table → partitions → volumes
Where it usually breaks
First mismatch in device/provider → Windows storage mapping/pool → volume/filesystem/encryption → share/namespace/access policy → client/process read-back; preserve identity/native error/pre-state before mutation.
Storage → Partitions reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| DiskNumber | Owning disk | verify disk identity first |
| PartitionNumber | Partition index on disk | not durable across all edits |
| Offset/Size | Physical extent metadata | does not prove content |
| Type/GPT type | Partition role metadata | not filesystem health |
| AccessPaths | Mapped mount paths | can be absent for valid system partitions |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3149