Error 0xc000021a is a Blue Screen of Death (BSOD) stop code that appears when Windows cannot verify the integrity of a critical system file, often due to a failed update, corrupted driver, or malware. This guide walks you through the most reliable fixes, from simple startup repairs to a full system restore, so you can get back into Windows without losing your files.
What You’ll Need
- A Windows installation USB drive or recovery drive (for advanced repairs).
- Another working computer to create the USB if needed.
- Your Windows product key (only if you need to reinstall).
- About 30-60 minutes of time.
Step-by-Step
- Force a restart. If the error appears once, press and hold the power button for 10 seconds to turn off your PC, then turn it back on. Sometimes a transient glitch clears on reboot.
- Boot into Windows Recovery Environment (WinRE). If Windows fails to start twice, it should automatically show the recovery screen. If not, interrupt startup three times by turning off the PC when the Windows logo appears. From the blue screen, select Troubleshoot → Advanced options.
- Run Startup Repair. In Advanced options, choose Startup Repair. Let it run; it will attempt to fix boot files and system corruption automatically. If it succeeds, restart normally.
- Uninstall recent updates. If Startup Repair doesn’t help, go back to Advanced options → Uninstall Updates. Choose Uninstall latest quality update or Uninstall latest feature update. Follow the prompts and restart.
- Use System Restore. In Advanced options, select System Restore. Pick a restore point from before the error started (e.g., a few days ago). Confirm and let it roll back system files while keeping your personal files.
- Run Command Prompt repairs. If System Restore isn’t available, choose Command Prompt from Advanced options. Type these commands one at a time, pressing Enter after each:
sfc /scannow
dism /online /cleanup-image /restorehealth
bootrec /fixmbr
bootrec /fixboot
bootrec /rebuildbcd
Restart after all complete. - Check disk for errors. Still in Command Prompt, type
chkdsk c: /f /rand press Enter. It may ask to schedule on next boot; type Y and restart. This scans for hard drive corruption. - Disable driver signature enforcement. If the error started after installing a new driver, boot into WinRE, then go to Troubleshoot → Advanced options → Startup Settings → Restart. After restart, press 7 or F7 to disable driver signature enforcement. If Windows boots, uninstall the problematic driver from Device Manager.
- Reset this PC. If all else fails, from WinRE choose Troubleshoot → Reset this PC. Select Keep my files to reinstall Windows while preserving personal data (apps and settings will be removed). Choose Remove everything only if you have backups.
- Reinstall Windows from USB. As a last resort, create a bootable USB using Microsoft’s Media Creation Tool on another PC. Boot from it, select your language, then choose Install now. During setup, select Custom: Install Windows only and format the system drive (usually C:). This erases everything, so back up first.
Common Mistakes
- Skipping Startup Repair. Many users jump straight to reinstalling, but Startup Repair fixes the issue about 30% of the time.
- Not backing up before Reset. The “Keep my files” option still removes installed apps and can fail, leaving you with a partially working system. Always back up to an external drive first.
- Using the wrong restore point. Picking a restore point from after the error appeared won’t help. Choose the oldest available one.
- Running DISM without internet. DISM may need Windows Update to download files; if offline, it can fail. Connect via Ethernet if possible.
- Forgetting to remove the USB. After reinstalling, if the USB remains inserted, the PC may boot from it again, causing a loop.
Tips
- Create a recovery drive now. Even if you fix the issue, make a USB recovery drive from Control Panel → Recovery. It saves time next crash.
- Check for malware. Error 0xc000021a can be caused by rootkits. After booting, run Windows Defender Offline scan.
- Update drivers manually. Avoid beta drivers; install only from manufacturer websites or Windows Update.
- Keep system restore enabled. Ensure System Protection is on for your C: drive so restore points are created automatically.
- Use a wired connection. During repairs, a stable internet connection helps DISM and Windows Update download correct files.
Troubleshooting
If the steps above don’t resolve the error, consider these:
- Error persists after Startup Repair: Try the Command Prompt steps (sfc, DISM, bootrec) in safe mode if possible. If not, proceed to Reset.
- System Restore fails: This often indicates a corrupted restore point. Try an earlier point, or use Command Prompt to run
sfc /scannowbefore attempting again. - DISM error 0x800f081f: This means it can’t find the source files. Use the Windows installation USB as source: mount it, then run
dism /online /cleanup-image /restorehealth /source:D:\sources\install.wim(replace D: with your USB drive letter). - Boot loop after reset: If Windows keeps restarting, boot from USB and choose Repair your computer → Troubleshoot → Advanced options → Startup Repair again.
- Hardware issues: If all repairs fail, test your RAM with MemTest86 and check your hard drive’s SMART status. Faulty hardware can mimic system file corruption.
Frequently Asked Questions
What causes error 0xc000021a?
It’s usually caused by a failed Windows update, a corrupted system file, an incompatible driver, or malware that modifies critical Windows components like win32k.sys.
Will I lose my files by fixing this error?
Most fixes, like Startup Repair, System Restore, and Command Prompt commands, preserve your files. Only the “Remove everything” reset or a full reinstall will erase them, so always back up first.
Can I fix this error without a Windows installation USB?
Yes, if you can access the Windows Recovery Environment (WinRE) via automatic repair. If not, you’ll need a USB to boot into recovery tools.
How long does the repair take?
Startup Repair takes 5-15 minutes. System Restore takes 10-30 minutes. A full reset can take 1-2 hours depending on your hardware.
Is error 0xc000021a a sign of a failing hard drive?
Not necessarily, but disk corruption can cause it. Running chkdsk is a good diagnostic step. If chkdsk finds many bad sectors, back up immediately and consider replacing the drive.
What if I can’t even see the Windows logo?
If the PC powers on but shows nothing, the issue may be hardware-related (RAM, motherboard). Try reseating RAM or testing with minimal hardware before attempting software fixes.
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
- Fix Error 0x8007025d in Windows 10
- Fix Alexa App Stuck on Setup
- Android Camera for 7 Office Tasks: Step-by-Step
- Pair Phone to Pioneer Stereo After Bluetooth Reset
- Fix Windows Not Saving Remote Desktop Credentials
- Netbook vs Smartphone: Key Differences