I can't boot into Windows 10, it shows blue screen with 0xc000021a
error code. Then tries to autorestore, but fails. I tried to restore it from Windows 11 on USB drive with DISM, but it shows me an error 0x800f0801
, and in DISM log file I found a line where it failed to load ...\System32\config\SECURITY into registry key with error code 0x800703f1
. More details and logs are bellow.
I have an external SSD drive with Windows 11 installed on it. I usually plug it on different computers USB port, and boot from it to Windows 11. This time, after removing external SSD drive I, as usual, turned on computer to boot from computers internal drive Windows 10 OS. It booted as normal, but when I try to login with my password, nothing happened. Like I am clicking enter and password input gets cleared, but nothing happens. I tried several times, but it always cleared the input, without logging in. I decided to restart, hopping to solve the problem, but after restart it showed me a blue screen with an error code 0xc000021a
. Now I can't boot from Windows 10 that was installed on that computer. I don't even sure, that the problem was booting from external Windows 11, because I have tried it before, and everything was ok.
The logs for the commands:
C:\Windows\system32>dism /image:G:\ /cleanup-image /restorehealth /source:wim:G:\install.wim:3
Deployment Image Servicing and Management tool
Version: 10.0.22000.653
Image Version: 10.0.19045.3324
Error: 0x800f0801
DISM failed. No operation was performed.
For more information, review the log file.
The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
>---------- C:\Windows\Logs\DISM\dism.log --------------
...
...
CBS Failed to load offline \\?\G:\Windows\System32\config\SECURITY hive from '\\?\G:\Windows\System32\config\SECURITY' into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}G:/Windows/System32/config/SECURITY'. [HRESULT = 0x800703f1 - ERROR_BADDB]
CBS Failed to load offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}G:/Windows/System32/config/SECURITY [HRESULT = 0x800703f1 - ERROR_BADDB]
CBS Failed to load offline SECURITY hive. [HRESULT = 0x800703f1 - ERROR_BADDB]
...
...
$ sfc /scannow /offBootDir=G:\ /offWinDir=G:\Windows /offLogFile=G:\sfc-log2.txt
>-----------sfc-log2.txt -------------
00000001 Shim considered [l:126]'\??\G:\Windows\Servicing\amd64_microsoft-windows- servicingstack_31bf3856ad364e35_10.0.19041.3266_none_7e25389a7c7bcadb\wcp.dll' : got STATUS_OBJECT_PATH_NOT_FOUND
00000002 Shim considered [l:123]'\??\G:\Windows\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.19041.3266_none_7e25389a7c7bcadb\wcp.dll' : got STATUS_SUCCESS
00000001@2023/9/15:05:58:05.197 WcpInitialize: wcp.dll version 10.0.19041.3266 (WinBuild.160101.0800)
Can anyone help me solve this issue please?
dism
andsfc
to service it:Dism /Image:D:\Windows /Cleanup-Image /StartComponentCleanup
→Dism /Image:D:\Windows /Cleanup-Image /RestoreHealth
→Sfc /ScanNow /OffBootDir=D:\ /OffWinDir=D:\Windows /OffLogFile=D:\sfc-log.txt