If the 0xc000021a error on Windows 10 relates to issues with the boot configuration data (BCD) or the Master Boot Record (MBR), using the bootrec commands can be helpful. These commands are designed to repair the boot process for Windows.
To use the bootrec commands, you'll first need to boot from a Windows 10 installation media (USB or DVD). If you don't have one, you’ll need to create this from another working computer. Here's how you can perform this recovery:
Step 1: Create or Obtain Windows 10 Installation Media
- If you don’t have one, download the Windows 10 media creation tool from Microsoft's official website and use it to create a bootable USB or DVD.
Step 2: Boot from the Installation Media
- Insert the installation media into the non-working computer and reboot.
- Enter the BIOS/UEFI settings (usually by pressing
Del, F2, F10, or F12 depending on your motherboard).
- Set the USB/DVD as the primary boot device.
- Save changes and exit. Your system should boot from the installation media.
Step 3: Use Windows Recovery Environment
- On the Windows Setup screen, select your language preferences, and click Next.
- Click Repair your computer (not “Install now”).
Step 4: Open Command Prompt
- On the "Choose an option" screen, select Troubleshoot.
- Then choose Advanced options > Command Prompt.
Step 5: Run Bootrec Commands
Once in Command Prompt, you can run the following bootrec commands:
bootrec /fixmbr: This writes a Windows 10-compatible MBR to the system partition. This does not overwrite the existing partition table. Use this if you suspect MBR corruption.
bootrec /fixboot: This writes a new boot sector to the system partition by replacing the old one. Use this if you suspect that boot sector is corrupted or not properly configured.
bootrec /scanos: This scans all disks for installations compatible with Windows and displays entries currently not in the BCD store. Useful for checking if your installations are seen by the system.
bootrec /rebuildbcd: Scans again for installations and lets you select which to add to the BCD.
Step 6: Complete the Process
- Run each command one by one. After finishing, type
exit to close the command prompt.
- Restart your computer and remove the installation media.
Try booting into Windows 10 now. If the issues were related to boot records or BCD, it should boot properly.
Additional Tips
If errors persist:
- Consider a System Restore or System Image Recovery from the Advanced options if you had previously enabled system protection and created restore points or image backups.
- Use the Startup Repair option directly from Advanced options. This function can automatically diagnose and fix issues.
Using these steps should help you address issues related to the boot process and boot configuration data corruption. However, if these steps don't resolve the 0xc000021a error, you might need to look into more specific or advanced recovery options, considering system integrity or third-party application conflicts.