Saturday, February 1, 2020

Inaccessible Boot Device

After a Windows 10 automatic update, the computer wouldn't boot.

Went to a BSOD (blue screen of death) saying "Your PC ran into a problem and needs to restart" and "Inaccessible boot device".

Tried to fix it following steps here, but none of it worked.

For future reference, here's what I tried. First boot to command prompt as the article says. The use dism

List packages:
dism /image:c:\ /get-packages

Remove package (after copy-pasting PKGNAME from above) (and make sure to mkdir d:\scratch first)
dism /image:c:\ /remove-package /packagename:PKGNAME /scratchdir:d:\scratch

Above steps worked with some (one) package, but failed with others, with various errors:
Permanent package cannot be uninstalled.(never fixed this)
- couldnt uninstall pending package

What did work (not sure which of these actually helped but things were somehow eventually fixed):
- After booting into safe mode (and I dont think doing anything else), and then resetting and booting in regular mode, everything started working again
- at some point, I disabled legacy rom boots and enabled secure boot (but later reenabled it?)
- had a broken monitor that I unplugged at some point
- I normally boot from an m2 drive, which I have to manually use (via f12), but I forgot and booted from regular (non-ssd) drive to an old windows install. when I switched back to the m2 ssd, things started working again (somehow)