Quick answer
Boot into Safe Mode with Networking, open Device Manager, uninstall the storage controller driver (usually under "Storage controllers"), then run a driver integrity scan with sfc /scannow and reinstall the correct driver from the hardware manufacturer's site.
What's actually happening here
Windows throws 0x000007D1 when a driver fails the operating system's signature validation or compatibility check at load time. The driver binary itself is either corrupt (partial download, disk error), digitally signed with an expired certificate, or it's a generic Microsoft driver that doesn't match your specific chipset. I've seen this most often on machines that got a forced Windows update that replaced the SATA or NVMe controller driver with a wrong version — think a Dell XPS 13 running an Intel RST driver that got swapped for a generic Microsoft driver during a feature update.
The error fires during the boot sequence, right at the "Classpnp.sys" stage, which is where storage drivers initialize. The OS declares the driver invalid and halts. You can't just ignore it; the system won't load normally until the driver is replaced.
Fix steps (do them in order)
- Boot into Safe Mode with Networking — restart your PC and press F8 (or Shift + Restart from the login screen) and select Troubleshoot > Advanced Options > Startup Settings > Restart > then press 5 for Safe Mode with Networking. This loads only essential drivers and gives you a working desktop.
- Open Device Manager — right-click the Start button, select Device Manager.
- Expand "Storage controllers" — look for anything named "Standard NVM Express Controller", "Intel RST", or generic "Microsoft Storage Spaces Controller". Right-click it and choose "Uninstall device". Check the box that says "Delete the driver software for this device" if it appears. This forces Windows to re-evaluate the driver on next boot.
- Run an SFC scan — open Command Prompt as admin (right-click Start, Command Prompt Admin) and type
sfc /scannow. Let it finish. This repairs any system file corruption that might have broken the driver store. - Restart normally — if you followed steps 3 and 4, Windows should boot and automatically reinstall a generic Microsoft driver. Check if the error is gone. If not, proceed to step 6.
- Install the correct driver manually — download the exact storage driver for your motherboard or laptop model from the manufacturer's support site. For Intel systems, that's often the Intel RST (Rapid Storage Technology) driver; for AMD, the AMD SATA or NVMe driver. Extract the ZIP, go back to Device Manager, right-click the uninstalled device, select "Update driver" > "Browse my computer for drivers" > point it to the extracted folder. Reboot.
Alternative fixes if the above fails
- Use a bootable USB to replace the driver — if Safe Mode won't load (rare but happens), create a Windows installation USB, boot from it, and at the setup screen press Shift+F10 to open Command Prompt. Run
notepadthen go to File > Open to browse theC:\Windows\System32\driversfolder. Locatestornvme.sysoriaStorAVC.sys(depends on your chipset) and rename it to.old. Then copy a known-good version from a backup or another machine. This is a hack, but it works when the driver is corrupted beyond SFC's repair. - Roll back the problematic update — boot into Safe Mode, open Settings > Update & Security > Windows Update > View update history > Uninstall updates. Remove the most recent cumulative update or driver update. This undoes whatever swapped your driver.
- Check hardware health —
0x000007D1can also fire if the SSD is failing and the driver can't communicate with it. Use CrystalDiskInfo (in Safe Mode) to check your drive's SMART status. If it shows reallocated sectors or pending errors, replace the drive, not the driver.
Prevention tip
Disable automatic driver updates in Windows Update. Go to Settings > System > About > Advanced system settings > Hardware tab > Device Installation Settings > select "No (your device might not work as expected)". This stops Windows from overwriting your storage drivers with generic ones. If you use an Intel RST or AMD RAID driver, download and install the chipset driver manually once, then lock it in.