sodcalculator

10 Tech How-To

Fix Stop Code 0xc000021a: Step-by-Step Guide

Guide 10-50931 · Updated · Step by step

The stop code 0xc000021a is a Blue Screen of Death (BSOD) error on Windows that usually appears when a critical system process fails or a required driver or DLL is corrupted, preventing the system from starting. The most reliable fixes are booting into Safe Mode, running System File Checker and DISM, and restoring the system to a previous restore point. Below are detailed, step-by-step solutions for this error, along with background on what causes it and how to prevent it.

What Does 0xc000021a Mean?

Stop code 0xc000021a is a Windows bug check that occurs when the Winlogon.exe or Csrss.exe process fails or crashes. These processes are essential for the Windows login and the client/server runtime subsystem, respectively. When they fail, Windows cannot continue and displays a blue screen with the message: “Your PC ran into a problem and needs to restart. We’re just collecting some error info…” and the stop code 0xc000021a.

This error is often caused by:

  • Corrupted system files (e.g., after a failed Windows update or a malware infection).
  • Incompatible or outdated drivers, especially graphics or storage drivers.
  • A recently installed program that modifies critical system components.
  • Problems with the Windows registry or a failing hard drive.

It is important to note that this error is not the same as 0xc000021a during a clean installation—that may indicate a different issue like incompatible hardware. The fixes below target the common scenarios for existing Windows installations.

Before You Start: Access Advanced Startup Options

Most fixes require booting into the Windows Recovery Environment (WinRE). If your PC loops on the error, you can force the Advanced Startup menu by:

  1. Turn on your PC and wait for the Windows logo to appear, then press and hold the power button to force a shutdown.
  2. Repeat this process three times. On the third restart, Windows should enter the “Preparing Automatic Repair” screen, then display the Advanced Startup options.
  3. From there, select Troubleshoot > Advanced options.

If your PC boots normally, you can also go to Settings > Update & Security > Recovery > Advanced startup and click Restart now.

Fix 1: Boot into Safe Mode

Safe Mode starts Windows with a minimal set of drivers and services. If the error is caused by a third-party driver or program, Safe Mode may allow you to boot and then remove the culprit.

  1. From the Advanced Startup screen, select Troubleshoot > Advanced options > Startup Settings.
  2. Click Restart. After restart, you’ll see a list of options.
  3. Press 4 or F4 to enable Safe Mode, or 5 for Safe Mode with Networking.

Once in Safe Mode, you can uninstall recently installed software or update drivers. To uninstall a problematic update: go to Settings > Update & Security > Windows Update > View update history > Uninstall updates.

Fix 2: Run System File Checker (SFC) and DISM

Corrupted system files are a primary cause of 0xc000021a. Use the System File Checker to repair them. If SFC fails, DISM can fix the underlying Windows image.

  1. Boot into Safe Mode with Networking (as above).
  2. Right-click the Start button and select Command Prompt (Admin) or Windows PowerShell (Admin).
  3. Type sfc /scannow and press Enter. Wait for the scan to complete (this may take 15-30 minutes).
  4. If SFC reports that it could not repair some files, run DISM: DISM /Online /Cleanup-Image /RestoreHealth and press Enter.
  5. After DISM finishes, restart your PC and run sfc /scannow again.

If you cannot boot into Safe Mode, you can run these tools from the Advanced Startup options: choose Troubleshoot > Advanced options > Command Prompt. However, the system drive letter may be different (often D: instead of C:). Run sfc /scannow /offbootdir=D:\ /offwindir=D:\Windows.

Fix 3: Use System Restore or Startup Repair

If the error started recently, System Restore can roll back your system to a state before the problem. Startup Repair can fix boot issues automatically.

  1. From Advanced Startup, select Troubleshoot > Advanced options > System Restore.
  2. Choose an account and enter your password, then select a restore point from before the error appeared.
  3. Follow the prompts to restore your system. This will not affect your personal files.

If System Restore is not available, try Startup Repair from the same menu. It will scan for common issues and attempt to fix them.

Fix 4: Check for Disk Errors

Failing hard drives or corrupted disk sectors can cause system files to be unreadable, leading to 0xc000021a. Use the chkdsk utility to check the disk.

  1. Open Command Prompt from Advanced Startup or Safe Mode with Command Prompt.
  2. Type chkdsk C: /f /r and press Enter. Replace C: with your system drive letter if different.
  3. You may be prompted to schedule the check for the next restart. Type Y and restart.

This process can take a long time (hours on large drives). It will attempt to recover readable information from bad sectors.

Fix 5: Reinstall Windows (Last Resort)

If none of the above works, you may need to reinstall Windows. This will remove all personal files and applications, so back up your data first if possible.

  1. From Advanced Startup, select Troubleshoot > Reset this PC.
  2. Choose Keep my files to preserve personal files but remove apps and settings, or Remove everything for a clean slate.
  3. Follow the prompts. You may need a Windows installation media if the recovery partition is damaged.

If you have a Windows installation USB, you can boot from it and choose Repair your computer to access the same tools, or do a clean install.

Frequently Asked Questions

Can this error be caused by a virus?

Yes, malware can corrupt system files or replace critical processes like winlogon.exe. If you suspect an infection, run a full antivirus scan using Windows Defender offline or a bootable antivirus tool from another PC.

Will I lose my files if I use System Restore?

No, System Restore only rolls back system files, settings, and installed programs. Your personal documents, photos, and other files remain untouched. However, programs installed after the restore point will be uninstalled.

What if I can’t boot into Safe Mode?

If Safe Mode also fails, the system files are severely corrupted. Try running SFC and DISM from the Command Prompt in Advanced Startup, or use the Startup Repair option. If those fail, you may need to reinstall Windows.

How long does the DISM command take?

DISM can take anywhere from 10 minutes to over an hour, depending on your system speed and the extent of corruption. It may appear stuck at a certain percentage, but it’s normal—let it finish.

Is there a way to prevent this error in the future?

Regularly update Windows and drivers, avoid shutting down during updates, use reliable antivirus software, and periodically run sfc /scannow to catch file corruption early. Also, ensure your hard drive has enough free space (at least 15% of its capacity) to avoid system file issues.

Can a failing hard drive cause 0xc000021a?

Yes, a failing hard drive can cause system files to become unreadable or corrupted. If chkdsk finds many bad sectors, back up your data immediately and consider replacing the drive.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →