Disks
Cheat sheet · https://pcornel.dk/topic.php?topic=3148
Answer
A Windows disk is the OS-level object representing a block device that can contain partitioning metadata and partitions. It is not the same object as a partition, volume, filesystem or drive letter.
Remember
- Disk Number is convenient but not a durable identity across all lifecycle events.
- Online/Offline is an OS policy/runtime state, not a media-health verdict.
- Read-only can be policy/attribute state and should be distinguished from write failures below the OS layer.
- PartitionStyle RAW often means no recognized partition table; it does not by itself prove damaged media.
- Correlate size, model, serial/unique ID and bus/location where available before destructive operations.
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
disk detected → online → initialised
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 → Disks reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Number | Current Windows disk index | not durable identity alone |
| UniqueId/Serial | Stronger identity evidence | availability depends on device/stack |
| OperationalStatus | Current OS-reported state | not end-to-end media health |
| PartitionStyle | GPT/MBR/RAW view | not filesystem state |
| IsReadOnly/IsOffline | Policy/runtime flags | not root cause by themselves |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3148