Fix ERROR_CTX_INVALID_PD (0X00001B5A) on Windows 10/11
This error pops up when a protocol driver for your hard drive is corrupt or mismatched. We'll fix it in three steps, from quick to deep.
What's Actually Happening Here
You're seeing ERROR_CTX_INVALID_PD with code 0X00001B5A. This means Windows tried to talk to your hard drive through a protocol driver (like storport.sys or pciidex.sys) but that driver is either missing, corrupt, or registered wrong in the registry. I've seen this most often after a bad driver update or a failed Windows Update that touched storage controllers.
The error usually shows up when you plug in an external drive or during boot. Sometimes it's just a temporary glitch. Other times the driver file is actually wrecked. Don't panic — most people fix it in under 5 minutes.
Fix 1: The 30-Second Reboot and Reseat
This sounds stupid, but I've seen it work. The protocol driver might be stuck in a bad state after a power failure or a crash.
- Shut down your PC completely — not restart, shut down.
- Unplug any external hard drives or USB drives.
- Wait 30 seconds, then plug your main drive back if it's external.
- Boot normally. If the error's gone, you're done.
Why this works: Windows re-enumerates all storage devices on a cold boot. The driver gets loaded fresh. If the error was just a flaky handshake between the drive and the driver, this clears it.
If the error comes back, move to Fix 2.
Fix 2: Reinstall the Storage Controller Driver (5 Minutes)
The protocol driver is usually tied to your storage controller (like Intel SATA AHCI or NVMe). Windows Update sometimes pushes a bad version. We'll force Windows to use the generic Microsoft driver instead.
- Press Win + X and pick Device Manager.
- Expand Storage controllers. You'll see something like
Intel(R) 300 Series Chipset SATA AHCI ControllerorStandard NVM Express Controller. - Right-click that controller and choose Update driver.
- Select Browse my computer for drivers then Let me pick from a list.
- Choose Standard NVM Express Controller (for NVMe drives) or Standard SATA AHCI Controller (for SATA drives). Click Next.
- Reboot.
Why this works: The generic Microsoft driver is boring but stable. It won't cause protocol mismatches. The manufacturer's driver might be corrupt or registered incorrectly. By switching to the standard driver, you bypass the problem.
Still seeing the error? Move to Fix 3.
Fix 3: Run DISM and SFC (15 Minutes, but Thorough)
This is the nuclear option for system file corruption. The protocol driver file itself might be damaged.
- Open Command Prompt as admin (right-click Start, choose Command Prompt (Admin) or Terminal (Admin)).
- Type
DISM /Online /Cleanup-Image /RestoreHealthand press Enter. Wait for it to finish — it takes 5-10 minutes. - Then type
sfc /scannowand press Enter. Let it run. - Reboot.
Why this works: DISM fixes the image that Windows uses to repair files. SFC then checks every system file against that image. If storport.sys or related driver is corrupt, SFC replaces it from a clean copy. This is the most reliable fix for driver corruption that isn't a hardware failure.
If None of These Work
You might have a hardware problem. Run chkdsk C: /f from an admin command prompt to check for bad sectors on your drive. If that finds issues, replace the drive. Also check your motherboard's firmware update — sometimes old BIOS/UEFI versions have buggy storage controller firmware that triggers this error.
Real-world scenario I saw: A user on a Dell Inspiron 15 with Windows 11 22H2 got this error after a BIOS update that changed the SATA mode from AHCI to RAID. The protocol driver didn't match. Switching back to AHCI in BIOS fixed it instantly. If you've changed BIOS settings recently, check your SATA mode.
Was this solution helpful?