Pcornel
Windows · Storage

Disks

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

Back to the Topic

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, health
  • Get-Partition — partitions
  • Get-Volume — volumes, filesystem, free space
  • Get-PhysicalDisk | Select FriendlyName,HealthStatus,OperationalStatus — physical disk health
  • diskmgmt.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

BoundaryMeaningEvidence limit
NumberCurrent Windows disk indexnot durable identity alone
UniqueId/SerialStronger identity evidenceavailability depends on device/stack
OperationalStatusCurrent OS-reported statenot end-to-end media health
PartitionStyleGPT/MBR/RAW viewnot filesystem state
IsReadOnly/IsOfflinePolicy/runtime flagsnot 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

Confirmation

Confirm action

Continue?