Solution:
Root Cause: Windows Disk Geometry Caching and Overshadowed Partition Tables
When Windows boots from a newly cloned NVMe drive, the Operating System's Storage Class Driver (
disk.sys) may rely on cached device capacity descriptors from the original drive stored in System Registry hardware keys. Alternatively, cloning software may have copied a Host Protected Area (HPA) or Device Configuration Overlay (DCO) flag from the source disk, restricting physical sector visibility in the OS.
Diagnostic Verification:
Open PowerShell as Administrator and run Get-PhysicalDisk.Compare the Size attribute against the capacity reported in Get-Disk.Check device manager under Disk drives -> Properties -> Volumes tab -> Populate.Step-by-Step Fix:
1Force Virtual Disk Service Rescan:
Open Elevated Command Prompt.Type diskpart.Run rescan and allow Diskpart to re-query the PCIe bus.2Remove Stale Windows Device Registry Entries:
Device Manager -> View -> Show hidden devices.Expand Disk drives and Storage Volume Shadow Copies.Right-click and uninstall all greyed-out (ghosted) disk entries.Restart the computer.3Clear HPA/DCO Blockers (if present from OEM source drive):
Boot into HDAT2 or Linux Live USB.Run hdparm -N /dev/nvme0n1 to check for max address limits.Clear HPA limits if detected: hdparm -N pMAX_SECTORS /dev/nvme0n1.Prevention & Long-Term Monitoring:
Clear ghosted storage drivers prior to system cloning operations when changing underlying hardware controllers.