
Are you facing boot errors on your Windows PC? In this guide, we’ll show you a proven method to rebuild the Boot Configuration Data (BCD) file or recreate the System/EFI partition automatically. This approach works for Windows 11, Windows 10, Windows 8, and other versions. Whether you’re dealing with minor BCD corruption or a severely damaged boot configuration, this solution ensures a hassle-free recovery.
Commonly, the BCD can be rebuilt manually through CMD Commands if the BCD corruption is simple. But if the System or EFI partition is missing or infected by a virus, or if the rebuilding commands failed for any reason, you have to use this automatic batch script file to rebuild BCD or recreate the System/EFI volume by just one click and without common errors.
Before showing how to use this automatic tool, you have to know what is the BCD file, and what are the most common boot failure errors that indicate the BCD corruption.
What Is the Boot Configuration Data (BCD) File?
The Boot Configuration Data file or BCD is a settings file that contains the necessary information required by windows operating system to boot normally. If the BCD file is corrupted or missing, your computer will fail to boot with this error: “Your PC/Device needs to be repaired”, followed by one of the following blue screen error messages.
Common Errors Caused by BCD Corruption
The corrupted BCD can trigger a blue screen error messages with different error codes or can lead to a command error while trying to show the BCD using BDEDIT command, or while trying to rebuild the BCD using BOOTREC or BCDBOOT commands.
Examples of BCD-related blue screen errors:
- “The Boot Configuration Data file doesn’t contain valid information for an operating system.”
- Error Codes:
- 0xc0000098
- 0xc0000034
- 0xc00000bb
- 0xc000014c
- Error Codes:
- “The Boot Configuration Data for your PC is missing or contains errors.”
- Error Code: 0xc000000f
- File \Boot\BCD or
- \EFI\Microsoft\Boot\BCD
- Error Code: 0xc000000f
Command Failures Error Messages:
The following are some examples of BCD errors when repairing the BCD file from CMD:
- In case of missing of System or EFI partition, you may see the following error message:
- “A required device isn’t connected or can’t be accessed.”
- Error Code: 0xc000000f
- The boot configuration data store could not be opened.
- The requested system device cannot be found.
- Failure when attempting to copy boot files.
- BFSVC Error: Could not open the BCD template store. Status = C000000F
- Failure when initializing library system volume.
- Errors related to Bootrec RebuildBCD command:
- The System Cannot Find the Path Specified”
- “Element not Found”
All mentioned boot failures, BCD rebuild errors and all other BCD problems can be fixed easily and safely using this auto batch file, as they require a more robust solution than manual commands.
How to Boot into Advanced Recovery Menu?
You have to boot into Windows Recovery Environment (WinRE) in order to rebuild the BCD.
If the Windows recovery was enabled and intact before boot failure, your computer will reboot into Automatic Repair menu. From this menu, click on Advanced Option. Select Troubleshoot option and then select Advanced Options. If the computer reboot into Recovery Menu with option to Enter Recovery Environment like this, press F1 or F8 or another key to boot into recovery menu.
Both of those scenarios are true only if the BCD corruption is simple, but in most cases, you can’t boot into Recovery Environment if the BCD file is missing or severely corrupted, or if the Windows recovery is disabled or corrupted too. In such case, you have create a bootable USB using your mobile and then boot from the bootable USB in order to repair the BCD.
How to Rebuild the BCD Manually Using CMD?
For advanced users, the BCD can be rebuilt manually.
- If you want to rebuild the BCD manually, do the followings:
- Open the Command Prompt and execute the following commands at once or one by one:
BOOTSECT /NT60 SYS /FORCE
BOOTREC /FIXMBR
BOOTREC /FIXBOOT
BOOTREC /REBUILDBCD
- Type BCDEDIT and press Enter to identify the letter of windows partition
- Type the following command and press Enter (Replace the C with the letter of windows partition you have identified in previous step):
BCDBOOT C:\Windows
- Close the CMD window and then click on Continue to reboot into windows 10 or windows 11 login screen.
How to Rebuild the BCD Automatically Using a Batch File?
If the manual method failed to fix the BCD issue, you have to use the automatic batch file as followings:
- Download the VMTechsBCD.zip from this link or from this link using your mobile or in another computer.
- Extract the downloaded file into your mobile
- Connect a USB drive to your mobile and then copy the extracted folder and everything inside it into the USB.
- Plug-in the USB to the corrupted computer and then open Command Prompt
- Type DISKPART and press Enter
- Type LIST VOL and press Enter
- See if there is any volume without assigned letter and select it using SEL VOL followed by the volume number. For example, to select the volume number 2, type SEL VOL 2 and press Enter.
- Assign any free letter that is not assigned to another volume using this command:
- ASSIGN LETTER= followed by the desired letter. For example, to assign the letter V, execute this command: ASSIGN LETTER=V
- Repeat previous two steps to assign a free letter to all volumes that don’t have a letter.
- Press up Arrow key from keyboard to explore and use previous commands
- Type EXIT and press Enter to leave the DISKPART
- Type NOTEPAD and press Enter
- From File tab, select Open option
- Click on This PC and then locate the USB drive.
- Open the USB drive and then open VMTechsBCD folder
- Change “Files of type” option to “All Files”
- Right click on Auto-Rebuild-BCD-By-VMTechs file and then select, Run as Administrator
- This auto file will format the System or EFI partition and then rebuild the BCD automatically. Also it will create a new partition for the System or EFI if there is no one due to disk cloning or for any reason.
- If there is a separated system or EFI partition for the BCD in your computer, the auto batch will locate and then format it. After that, it will rebuild the BCD and enable the Recovery Environment. But you will be asked to ad windows installation to the BCD.
- Type Y or Yes to confirm addition of the identified windows into the BCD data.
- If you have a dual boot system, Type A or All to add all identified operating systems to the BCD file.
- If not sure, type Y or Yes to add the identified Windows installation that has :\Windows path only, and ignore the windows that has a Windows.old on its path by typing N or NO and pressing Enter.
- Once you see the successful message of Reagentc, press any key to close the auto CMD window
- Close all opened tabs and then click on Continue to restart your system.
NOTES:
- In older Windows 10 with MBR disk scheme or Legacy firmware, the Boot Configuration Data or BCD file may be stored in the windows partition. In such case, the CMD script will rebuild the BCD without formatting the partition.
- If you still have a blue screen error after a SUCCESSFUL rebuild using this auto batch file, then the problem is not related to the BCD. In such case, you have to identify the new error message and error code to know what is the source of new blue screen boot loop.
- To avoid errors when using the Auto batch file, make sure you have assigned a free letter to all volumes.
- Also make sure to copy the VMTechsBCD folder and everything inside it, including 7-Zip folder.
- If you need additional help, feel free to add your question in a comment, and we’ll do our best to help you.
VIDEO:
Watch this video to see how to rebuild BCD manually or automatically without errors step by step