Rebuild Boot Configuration Data BCD File in Windows 11
If Windows 11 won’t start and you see errors like “The boot configuration data for your PC is missing or contains errors,� the Boot Configuration Data (BCD) store is damaged or corrupted. You can rebuild it from the Windows Recovery Environment (WinRE) using the bootrec tool, and this article walks you through the exact steps, explains what the BCD is, and covers common pitfalls.
What Is the BCD and Why Does It Break?
The Boot Configuration Data (BCD) store is a small database that Windows uses to load the operating system. It contains boot parameters such as which partition holds the Windows installation, where the boot loader (winload.exe) is located, and options like safe mode or memory limits. On modern UEFI systems, the BCD lives on a separate EFI System Partition (ESP), usually formatted as FAT32. On older BIOS/MBR systems, it resides in the active system partition.
The BCD can become corrupted due to a sudden power loss during a Windows update, a failed disk write, malware, or an accidental edit to boot settings. When the store is unreadable, Windows cannot find its own boot files, and you’re left with a black screen and a cryptic error. Rebuilding the BCD from scratch is often the fastest fix, and it does not touch your personal files or installed programs.
Before You Start: Backup and Preparation
Rebuilding the BCD is safe, but it’s wise to prepare. You’ll need a Windows 11 installation USB drive or access to the recovery environment already installed on your system. If you don’t have a USB drive, you can create one on another working PC using Microsoft’s Media Creation Tool. The process below works for both UEFI and BIOS systems, though the exact commands differ slightly.
Make sure you know your disk layout. If you have multiple drives or partitions, you want to target the one containing Windows. You can check this during the recovery process using diskpart, but it’s easier to note it beforehand. Also, if you have BitLocker enabled, you may need to suspend it before running bootrec, as the tool might not recognize encrypted boot files.
Step-by-Step: Rebuild the BCD in Windows 11
- Boot from your Windows 11 installation USB or enter the recovery environment (if Windows fails to start, you’ll see the “Choose an option� screen after a few attempts).
- Click Troubleshoot → Advanced options → Command Prompt. This opens an administrator command prompt.
- Type
bootrec /rebuildbcdand press Enter. This scans all disks for Windows installations and asks if you want to add them to the BCD. PressYto add each one found. - If that doesn’t work, run the following commands in order, pressing Enter after each:
bootrec /fixmbr– repairs the master boot record (only for BIOS systems; harmless on UEFI).bootrec /fixboot– writes a new boot sector.bootrec /scanos– scans for installed operating systems.bootrec /rebuildbcd– rebuilds the BCD with the scan results.
- If you still get errors, you may need to manually assign drive letters and use
bcdedit. For example, if Windows is on drive C: and the EFI partition is on drive E:, you can run:diskpart list disk select disk 0 list partition select partition 1 assign letter=S: exit bcdedit /store S:\EFI\Microsoft\Boot\BCD /create {bootmgr} /d "Windows Boot Manager" bcdedit /store S:\EFI\Microsoft\Boot\BCD /set {bootmgr} device partition=S:(The partition numbers and letters will vary; use
list partitionto find the EFI partition, usually about 100–500 MB.) - Close the Command Prompt and restart your PC. Windows should boot normally.
Common Problems and How to Fix Them
“The requested system device cannot be found� – This usually means the BCD points to a wrong drive or partition. Run bootrec /rebuildbcd again, but first use diskpart to ensure the correct partition is marked active (on BIOS) or that the EFI partition has the right drive letter.
“The boot configuration data store could not be opened� – The BCD file itself is missing or unreadable. You may need to create a new store. In the Command Prompt, navigate to the boot folder on the EFI partition (e.g., S:\EFI\Microsoft\Boot) and run bootrec /rebuildbcd again after copying a fresh BCD from another Windows 11 system, or use bcdedit /createstore.
Bootrec doesn’t find Windows – If your Windows installation is on a dynamic disk or uses a non-standard partition layout, bootrec may not detect it. In that case, you can manually add an entry with bcdedit, but it’s easier to use the Startup Repair option first (Troubleshoot → Advanced options → Startup Repair).
Alternative: Use Automatic Startup Repair
Before manually rebuilding the BCD, try the built-in Startup Repair. It’s less technical and often fixes the same issues. From the recovery environment, go to Troubleshoot → Advanced options → Startup Repair. Windows will scan for problems and attempt to repair the BCD automatically. This tool works by checking the integrity of boot files and rewriting the BCD if necessary. If Startup Repair fails, then proceed with the manual bootrec commands.
When to Use bcdedit Instead of bootrec
bcdedit is a more powerful tool that lets you edit specific entries in the BCD. You might need it if you want to change the default boot entry, add a boot option like “Safe Mode,� or fix a dual-boot setup. For example, to add a Windows 11 entry manually, you would use:
bcdedit /create {ntldr} /d "Windows 11"
bcdedit /set {ntldr} device partition=C:
bcdedit /set {ntldr} path \Windows\system32\winload.exe
bcdedit /displayorder {ntldr} /addlast
But for most users, bootrec /rebuildbcd is enough. Use bcdedit only if you know exactly what you’re doing, as a mistake can make the system unbootable.
Frequently Asked Questions
Will rebuilding the BCD delete my files?
No. The BCD is only a boot configuration file, not your personal data. Rebuilding it does not touch your documents, photos, or installed programs. However, if you have BitLocker enabled, you may need to enter your recovery key after the repair, so keep it handy.
How long does it take to rebuild the BCD?
The process itself takes less than a minute. The majority of time is spent booting from the USB drive and waiting for the recovery environment to load. In total, expect 10–15 minutes from start to finish.
Can I rebuild the BCD without a USB drive?
Yes, if Windows 11 fails to boot, it will automatically enter the recovery environment after a few failed attempts. From there, you can access the Command Prompt without any external media. If your system doesn’t do that, you can force it by holding the Shift key while clicking Restart, but only if you can get to the login screen.
What is the difference between MBR and GPT?
MBR (Master Boot Record) and GPT (GUID Partition Table) are two ways to store partition information on a disk. Windows 11 requires UEFI and GPT, so most modern systems use GPT. The bootrec commands work on both, but the partition layout differs. On GPT, the BCD is on the EFI System Partition; on MBR, it’s on the active primary partition. If you’re unsure which you have, check in the BIOS or use diskpart to see if the disk is GPT.
Why does bootrec say “Total identified Windows installations: 0�?
This means bootrec couldn’t find a Windows installation on the scanned disks. This can happen if the Windows partition is not visible, the disk is corrupted, or the installation is on a different disk than expected. Try running diskpart to list disks and partitions, then assign drive letters to each partition and run bootrec /scanos again. If it still fails, you may need to manually add the boot entry with bcdedit.
Is it safe to run bootrec on a dual-boot system?
Yes, but it might remove boot entries for other operating systems like Linux. The /rebuildbcd command scans for Windows installations only, so Linux entries could be lost. To preserve them, back up the BCD file before running bootrec, or use a tool like EasyBCD to re-add the Linux entry afterward.
Final Thoughts
Rebuilding the BCD is a core troubleshooting step for Windows 11 boot failures. It’s safe, non-destructive, and usually resolves the issue in a few minutes. If the problem persists after rebuilding, the issue may be a failing hard drive or a corrupted Windows installation, and you may need to run sfc /scannow or DISM from the recovery environment to repair system files. Always keep a backup of your data and a Windows 11 installation USB ready for emergencies.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.