2
1
(tl;dr; sorry about the long post, text in bold has main details)
I have a Windows 10 and KDE Neon dual boot laptop. I rarely boot my Windows partition but I do use it regularly through a virtualized configuration with VMware in Neon. This has worked great for the most part...
... until last night ... I've had some issues with Linux/XOrg/KDE5/(...) going all nutty when docking/undocking and I've made it a habit to Suspend my VM just in case (usually), but last night I forgot and sure enough, my computer completely froze and needed to be powered off manually.
I powered it off, then booted back into Linux with no problem, but now Windows won't boot from the VM or from UEFI as a physical dual boot partition. Using the docking station locked up the computer and hosed my Windows partition (since it was booted in the virtual env).
The actual boot sectors and partition seem ok (after chkdsk'ing it and it did some repairs). When it starts up it will get a BSOD saying "CRITICAL_PROCESS_DIED". It reboots in a mini-recovery shell that says: "A required device isn't connected or cant be accessed - error code: 0x0000225" and has 3 options: "press enter to try again, f8 for startup settings, or esc for UEFI firmware setup". F8 presents the old-school safe-mode, boot logging, vga mode, etc options and I've tried all of those with the same results (the original BSOD).
Things I've tried:
- Created various Win10 installation media to try to repair it: 1 based off latest release of Win 10, one off previous Insider build, and one off current Insider build (which my partition had)
- The latest release is the first to use Microsoft's new Unified Update Platform (UUP), which means no more ESD files (by default) sent to the client machines and that means it's more difficult to make homebrew ISOs. I downloaded someone elses ISO, it seems legit.
- On all 3 versions, I booted into recovery mode and ran the following commands (all failed):
- DISM RESTOREHEALTH:
dism /image:c:\ /cleanup-image /restorehealth /limitaccess /source:wim:d:\sources\install.wim:1
(and minor variations of this)- At 72.7% results in "Error 0x800f081f - the source files could not be found. Use the 'Source' option to specify the location of the files that are required to restore the the feature ... The DISM log file can be found at X:\Windows\Logs\DISM\dism.log"
- SFC:
sfc /scannow /offbootdir=c:\ /offwindir=C:\windows
- Result: "Windows Resource Protection found corrupt files but was unable to fix some of them. Details are includied in the CBS.Log windir\Logs\CBS\CBS.log. For example C:\Windows\Logs\CBS\CBS.log. Note that logging is currently not supported in offline servicing scenarios." - I guess this is considered an offline servicing scenario! :(
- I've also checked C:\Windows\System32\Config\regback and it's just a bunch of 0-byte files
- I've tried a restore point, but I don't have any apparently (I believe this needed to be disabled in order to virtualize my physical Windows filesystem in Linux)
- The Refresh/Restore options in the Windows recovery shell don't exist anywhere
- The recovery shell installed by the OS isn't anywhere to be found - only the one from the install media
- The startup repair feature in the Windows Recovery tool - possibly the most useless placebo screen ever.
- I've tried to go back to previous version of Windows and it fails right away (which really irks me, because I haven't ran any cleanup tools or anything, and I just updated 2 days ago - wtf!)
- The one thing I thought seemed promising, though: there's a C:\WINDOWS.OLD\Windows\System32\Config folder. I tried overwriting all the registry files in C:\Windows\System32\Config with those old registry files (from 2 days ago). Still not booting ugh.
- DISM RESTOREHEALTH:
Things that seemed promising:
- Running chkdsk - it did repair some stuff and seemed to allow me to get slightly further in the boot process, but now it blue screens with the message mentioned above (EDIT, sorry forgot to document original BSOD message)
- I can still boot to KDE neon, and I CAN mount the ntfs filesystem there and do whatever I need with the files
- I can also access the filesystem from the installation media recovery command prompt
So with all that, my questions are:
- Does anyone know of a tool that can be used to repair the raw registry files (I don't mean simply copying over the auto-"backups" from the regback sub-folder ... like ACTUALLY repair a corrupted registry DB)? Preferably from the recovery console or Linux - but I can also copy the reg files to another Windos box if I need to.
- Is there something I'm doing wrong with the dism.exe command? Maybe I've just been staring at this too long and there's something obvious...
- What would cause the Refresh/Restore options not to show up on the installation media's recovery console and is there a way to fix it?
- Why don't I have a full-blown recovery shell without the installation media? Isn't that normally installed? Did that possibly get corrupt too?
- Any other suggestions?
Thank you!
1Hey try to install gparted and make it check your windows partition for errors. But I don't think linux is the reason for your windows failure. 2 different partitions don't touch each other. – answerSeeker – 2016-12-13T03:38:41.817
Agreed, I should have mentioned that I did try that. I also tried "ntfsfix" from the apt-get repo, no luck. I'm not suggesting Linux caused the partition failure, but Linux was the one that locked up my whole system when I placed the laptop in the docking station and it was running my Windows partition in a VM at the time. So... err... I take that back, I totally am blaming Linux! =D – Adam Plocher – 2016-12-13T03:42:28.440
1That's a really great write up, I wish every request for help had that level of detail. On thing: I saw that under "things that seemed promising" you reference BSOD but the message isn't listed. The only suggestion I've got is to pull your files out (if not on dropbox/steam already) and reinstall - seems like you've spent a few evenings trying to fix it, one more reinstalling and downloading all your software and you'll be good to go. Sorry I can't answer questions 1-4. – Sir Adelaide – 2016-12-13T05:20:51.167
1Protip: before you run any more tools to recover this, dd your whole physical Windows partition to a different drive. That way if a tool breaks it more you can restore to the closest thing we have to the exact post-crash state. – newcoder – 2016-12-13T05:43:35.123