Share via

blue screen problem with stop code 0xc000021a

Anonymous
2025-06-03T23:55:59+00:00

Hi All,

My computer rushed into a blue screen with stop code 0xc000021a, it then tries restart by itself and stuck on black screen "prepares for automatic repair" however nothing happens even if I waited so long.

I searched for some way however I couldn't be sure which could be exact match for my situation. So I need help from the very beginning and step by step. I can only access Win RE environment by esc key and no safe mode is available.

Thanks in advance.

Windows for home | Windows 10 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

7 answers

Sort by: Most helpful
  1. Anonymous
    2025-06-05T08:54:19+00:00

    Together with ss it is seen as shifted so my first comment for the 1st ss (with usb) was:

    "And with DISKPART and LIST VOL commands the ss is like below:"

    And for the 2nd ss (without usb) was:

    "Before plugging USB (a few days ago) it was like below"

    and final comment and question was:

    "So what should be the exact commands for your suggestions in my case? I would appreciate if you reconsider the ones prior to this if you think that there may be any change with respect to these info I provided lately"

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2025-06-05T08:49:16+00:00

    Thanks for the detailed update, C. Saadet! you're doing all the right things so far, and I understand wanting to avoid a reset and preserve your files and settings.

    Next Steps to Try
    > Run DISM Tool to Repair System Image
    > From Command Prompt via the bootable USB (Advanced Options > Command Prompt):
    DISM /Image:C:\ /Cleanup-Image /RestoreHealth /Source:D:\sources\install.wim /LimitAccess

    Replace:
    C: with the drive where Windows is installed (it may appear as D: or E: in WinRE — use dir to find Windows folder).
    D:\sources\install.wim with the correct path to the install image on your USB.

    If you don’t have install.wim but see install.esd, use this instead:
    > DISM /Image:C:\ /Cleanup-Image /RestoreHealth /Source:ESD:D:\sources\install.esd:1 /LimitAccess

    > Then re-run: sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows

    > Sometimes forcing a clean boot works (still in cmd):
    bcdedit /set {default} recoveryenabled No
    bcdedit /set {default} bootstatuspolicy ignoreallfailures

    Then restart the PC. If the system boots, we can then try repairing or removing the damaged files from within Windows.

    Let me know if these following steps helps out.

    Best,

    Thank you very much for the alternative options.

    I put the bootable usb and accessed command prompt (rechanged boot order to usb again and made usb boot enabled).

    On bottom there is Administrator: X\windows\SYSTEM32\cmd.exe and prompt comes with X: \Sources>

    Whenever I try to switch to C: it says "access is denied"

    When I write "dir" it says "Volume in drive X is boot" and I couldn't see anything named "install.wim" or "install.esd"

    I tried a few commands by changing the letters however I got error numbers "5" and "87".

    When I wrote bcdedit command the device is seen as:

    • under windows boot manager

    device----------- partition=\Device\HarddiskVolume2

    -under windows boot loader

    device------------partition=C:

    osdevice---------partition=C:

    And with DISKPART and LIST VOL commands the ss is like below:

    Before plugging USB (a few days ago) it was like below:

    So what should be the exact commands for your suggestions in my case? I would appreciate if you reconsider the ones prior to this if you think that there may be any change with respect to these info I provided lately.

    Regards.

    CS

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2025-06-05T07:55:17+00:00

    Thanks for the detailed update, C. Saadet! you're doing all the right things so far, and I understand wanting to avoid a reset and preserve your files and settings.

    Next Steps to Try

    > Run DISM Tool to Repair System Image

    > From Command Prompt via the bootable USB (Advanced Options > Command Prompt):

    DISM /Image:C:\ /Cleanup-Image /RestoreHealth /Source:D:\sources\install.wim /LimitAccess

    Replace:

    C: with the drive where Windows is installed (it may appear as D: or E: in WinRE — use dir to find Windows folder).

    D:\sources\install.wim with the correct path to the install image on your USB.

    If you don’t have install.wim but see install.esd, use this instead:

    > DISM /Image:C:\ /Cleanup-Image /RestoreHealth /Source:ESD:D:\sources\install.esd:1 /LimitAccess

    > Then re-run: sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows

    > Sometimes forcing a clean boot works (still in cmd):

    bcdedit /set {default} recoveryenabled No

    bcdedit /set {default} bootstatuspolicy ignoreallfailures

    Then restart the PC. If the system boots, we can then try repairing or removing the damaged files from within Windows.

    Let me know if these following steps helps out.

    Best,

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2025-06-04T22:11:29+00:00

    Hi there, Saadet! Marc here. Thank you for reaching out Microsoft Community. I'm here to help!

    Thanks for providing those details. Based on what you've described, here are a few approaches we can try.

    The stop code 0xc000021a is a critical system failure, often caused by corrupted system files, drivers, or a failed Windows update.

    Since your system gets stuck at "Preparing Automatic Repair" we could use the Startup repair via WinRE.
    > In WinRE, go to Troubleshoot > Advanced options > Startup Repair.
    > Select your Windows installation and let it try automatic repair.

    Alternatively, try System Restore if enabled. In Advanced options, choose System Restore. Pick a restore point before the issue started and follow the prompts.

    Also, run these Command Prompts to repair system files. From Advanced options > Command Prompt, enter the following commands one by one.
    • sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows
    • chkdsk C: /f /r

    Note: Replace 'C:' with your system drive letter if different.

    Please let me know if this resolves your issue, and I will be happy to assist further if needed.

    Best regards,

    Hi Marc,

    Thanks for your reply.

    I have tried all your suggestions however they didn't work :( Here are the results.

    1. I have tried start up repair however after some time it turned back to the same cycle.
    2. I can see a system restore file from last week before the problem starts however it couldn't load. I received 2 error messages as following: (0x80070005) and (0x80070057)

    3)I have used command prompts as well.

    -scannow resulted in the following error message: "Windows Resource Protection found corrupt files but was unable to fix some of them...."

    -chkdsk resulted in "Windows has scanned the file system and found no problems. No further action is required."

    471921663 kb total disk space

    254415904 kb in 655541 files

    640020 kb in 275143 indexes.

    0 kb in bad sectors.

    1327319 kb in use by the system.

    65536 kb occupied by the log file.

    215538420 kb available on disk.

    I have also tried advanced troubleshooting options by using windows installation media with a bootable usb (by changing boot order in bios menu).

    I don't want to lose my settings and files and I don't want a reset :(

    I would appreciate any assistance.

    Regards.

    C. Saadet

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2025-06-04T02:04:44+00:00

    Hi there, Saadet! Marc here. Thank you for reaching out Microsoft Community. I'm here to help!

    Thanks for providing those details. Based on what you've described, here are a few approaches we can try.

    The stop code 0xc000021a is a critical system failure, often caused by corrupted system files, drivers, or a failed Windows update.

    Since your system gets stuck at "Preparing Automatic Repair" we could use the Startup repair via WinRE.

    > In WinRE, go to Troubleshoot > Advanced options > Startup Repair.

    > Select your Windows installation and let it try automatic repair.

    Alternatively, try System Restore if enabled. In Advanced options, choose System Restore. Pick a restore point before the issue started and follow the prompts.

    Also, run these Command Prompts to repair system files. From Advanced options > Command Prompt, enter the following commands one by one.

    • sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows

    • chkdsk C: /f /r

    Note: Replace 'C:' with your system drive letter if different.

    Please let me know if this resolves your issue, and I will be happy to assist further if needed.

    Best regards,

    Was this answer helpful?

    0 comments No comments