Forum Discussion
Ellieio
Dec 03, 2026Copper Contributor
How to rebuild bcd in windows 11 for boot error?
My Windows 11 laptop was stuck on a blue screen with the following error message:
Your PC/Device needs to be repaired
The Boot Configuration Data file doesn't contain valid information for an operating system.
File: \Boot\BCD
Error code: 0xc0000098
I checked a few posts and it seems I need to rebuild BCD in Windows 11 for this boot error. How can I do that?
10 Replies
- NolanEncdBrass Contributor
If you are experiencing error 0xc0000098 on a Windows 11 laptop then repairing your Boot Configuration Data may resolve the issue. Here are 4 frequently asked questions that will enable you to better understand and troubleshoot this problem.
Q1: What causes error 0xc0000098?
A: Typically this is down to either non-existent, damaged or incorrect Boot Configuration Data.
Q2: How to rebuild bcd in Windows 11 without re-installing Windows OS?
A: Yes – there are recovery utilities that can be used to manually repair your boot configuration.
Q3: What should I do if Windows' automatic boot repair does not work?
A: You could manually repair your boot configuration or regenerate your boot files using suitable recovery commands.
Q4: How can I stop my Boot Configuration Data becoming damaged?
A: You should endeavour to avoid power cut-offs and routinely back-up your information. In addition, it is advisable to scan your storage medium for issues.
Note: Prior to following guidance on how to rebuild bcd in Windows 11, it is important to correctly recognise which Windows and EFI partitions you need to work on so that you do not alter the incorrect storage device.
- QuinnRobertsIron Contributor
Error 0xc0000098 is often experienced when Windows cannot access a good quality Boot Configuration Data (BCD) entry, even if Windows itself is fine. winboot-rescue can be used to rebuild BCD Windows 11 UEFI boot files and automatically locate Windows and the EFI partition. It can also perform a backup of current BCD entries and then regenerate new UEFI boot files through BCDBoot.
How to rebuild BCD Windows 11 UEFI:
[ Prepare recovery USB ]
└ Download boot-repair.ps1 and boot-repair.cmd and transfer them to a Windows-compatible, PowerShell-enabled recovery USB.
[ Initiate recovery ]
└ Power on the laptop using the recovery USB and access the Command Prompt in WinRE/WinPE. Execute the recovery launcher, specifying the appropriate drive letter for the USB.
[ Investigate boot ]
└ Pressing [1] Investigate only will allow the script to analyse the laptop and locate where Windows and the EFI partition are, along with determining the firmware type. No alterations are made at this stage.
[ Regenerate boot files ]
└ Pressing [4] Regenerate EFI boot files for a verified UEFI/GPT system will cause the script to back up BCD entries and then utilise BCDBoot to generate new boot files for the EFI partition.
[ Reboot and verify ]
└ Unplug the recovery USB and reboot the computer. Ideally, the 0xc0000098 recovery screen will no longer display. However, further action may be necessary if there are disk issues or if the EFI partition cannot be accessed.
Command Prompt:
E:\boot-repair.cmd
Note: Alter the E: to correspond to the correct drive letter for the recovery USB as displayed within the recovery environment.
- HunterHarperIron Contributor
Common error code 0xc0000098 usually suggests that there are issues with Windows boot settings. I would therefore firstly attempt to fix the boot settings rather than reinstall Windows. Although it is standard to use a rebuild BCD Windows 11 command prompt approach, Visual BCD Editor also allows users to graphically amend boot settings and has its own boot fixing tool.
What this method does:
[ 1 ]View/edit boot settings.
[ 2 ]Fix boot – recreate boot settings using the associated fixing tool.
[ 3 ]Graphical user interface.
[ 4 ]Generally, Windows will not need to be reinstalled.
[ 5 ]User data is not deliberately changed.
Whilst the benefit of this approach is that you can graphically review and amend your boot settings, as your laptop is not currently booting, you will need to use a functioning Windows environment in order to utilise the graphical tool.
How to rebuild BCD Windows 11 command prompt — Recovery Method
Step 1: Use a Windows 11 install USB to boot your laptop.
Step 2: Click on Repair your computer > Troubleshoot > Advanced options > Command Prompt.
Step 3: Type in the command below, which will search for Windows installations and then create new boot settings:
bootrec /rebuildbcd
Step 4: Confirm (by typing in Y) that you wish to include the identified Windows installation. Reboot your laptop and assess if Windows now boots correctly.
- SamuelookBrass Contributor
Startup Repair – A Convenient Built-in Windows 11 BCD Repair Tool!
Although an error 0xc0000098 may stop your Windows 11 laptop starting up, you do not always need to download external boot repair software. Startup Repair is a free in-built function that can analyse and attempt to resolve issues including damaged, absent or misconfigured boot files.
Being an in-built Windows 11 solution, this is ideal for those who wish for a more visual method of repairing their laptop as opposed to typing in commands.
Using Startup Repair:
Use a Windows 11 install USB to boot into Windows Recovery Environment. From here click on Repair your computer. Proceed to Troubleshoot > Advanced options > Startup Repair. If necessary, identify which Windows installation you would like to repair and allow Windows to analyse your boot issue. On completion, reboot your laptop and see if the boot error has been resolved.
Top Tips: Before using the Windows 11 BCD repair tool, ensure your laptop is plugged into a charger and that you have your BitLocker recovery key to hand (if Bitlocker encryption is active). Confirm that you are repairing the right version of Windows 11 and try not to disturb the repair. Should Startup Repair prove unsuccessful, do not continually attempt to use it. Instead, you could manually rebuild your boot configuration by employing Bootrec.exe and/or BCDBoot.
- EmieryIron Contributor
Bootrec.exe is part of Microsoft Windows and can be used to recreate a computer's Boot Configuration Data (BCD). This is especially applicable for your error 0xc0000098 – which suggests that either the BCD is absent, or has been compromised or contains incorrect data.
How to rebuild BCD in Windows 11?
The /RebuildBcd function searches hard drives for Windows and enables you to include these in your BCD. According to Microsoft, this is one way to rectify issues relating to BCD.
After accessing the Command Prompt from within the Windows Recovery Environment (WinRE) or Windows 11 set up media, enter the following:
bootrec /scanos
bootrec /rebuildbcdIf Windows is recognised, you will be prompted to include it within the boot menu.
Benefits:
- There is no cost involved.
- It is already installed on Windows computers.
- It is designed for boot related issues and explicitly enables users to recreate BCD data.
- It can be utilised without an active Windows operating system, by using the Windows Recovery Environment.
However, there are situations in which bootrec.exe will not successfully address BCD issues—particularly when the computer's EFI boot components or system partition are affected. You may need to learn how to rebuild bcd in Windows 11 to repair the boot configuration.
- DylanDavisIron Contributor
This error commonly relates to corrupt or incorrect Boot Configuration Data. You can rebuild BCD Windows 11 UEFI boot data using MWBA (Make Windows Bootable Again). This will recognise EFI drives and utilise Windows tools to reproduce the boot data.
Getting started:
Clone the project off GitHub. Create a bespoke WinPE flash drive which consists of PowerShell 5.1 or newer. Standard Windows 11 install and WinRE flash drives do not automatically contain PowerShell.
How to rebuild BCD Windows 11 UEFI:
□ Power on your laptop and boot off the PowerShell-equipped WinPE flash drive.
□ In PowerShell, go to where the project has been saved.
□ Execute this command to analyse the laptop without affecting it:
powershell.exe -ExecutionPolicy Bypass -File .\MWBA.ps1 -DryRun
□ Analyse the output, and then execute the script again (without -DryRun) on the appropriate Windows offline partition. Where required, validate the boot data alterations that need to be implemented.
□ Eject the flash drive and reboot your laptop.
The tool employs BCDBoot to generate the re-created boot data – without the need to re-install Windows.
Limitations:
- A bespoke PowerShell-enabled WinPE environment is needed.
- Proper recognition of the right Windows offline partition is essential.
- SSD hardware issues are not amendable.
As a precaution, I would recommend making backups of key files. Also, as this project remains in public beta, I would advise initially utilising the analysis function.
- DaxxonSawyerIron Contributor
Ubuntu Live Desktop can be used to boot a standalone Linux desktop environment. From there, you can mount disks, perform backups, and check EFI partitions and disks.
This is particularly useful for the "how to rebuild BCD in Windows 11" guide, as you can back up your data first and then analyze the FAT32 EFI partition to ensure it is not corrupted before editing Windows boot data.
How to Rebuild BCD in Windows 11
Step 1: On another computer that is working properly, download the software image and write it to an empty USB flash drive.
Step 2: Use the rescue USB to boot your laptop, open File Explorer, and copy important documents from the Windows user folder (Users\\<Your Name>) to an external storage device.
Step 3: To rebuild the BCD, enter the Windows Recovery Environment and open the Command Prompt.
Step 4: Use 'diskpart' to assign a drive letter (S:) to the FAT32 EFI partition.
Step 5: Run
'bcdboot C:\Windows /s S: /f UEFI'
Step 6: If the drive letter for Windows in WinRE is different from C:, replace C: accordingly.
Finally, remove the USB drive and restart the computer.
- block_wizardIron Contributor
These command-line scripts automate the process of mounting the EFI partition and running 'bcdboot' from the Windows Recovery Environment.
For users who prefer using scripts over manual input, they essentially serve as a lightweight BCD rebuild tool Windows 11.
Key points to note:
- Be sure to review the script's contents before running it.
- Use only within the Windows Recovery Environment, and ensure that the drive letter is correctly identified.
- Best suited for situations where the default UEFI/BCD entry is corrupted but the Windows system itself remains intact.
How to Use the BCD Rebuild Tool Windows 11:
diskpart list vol select vol X ← Select the EFI partition (the small FAT32 partition) assign letter=S exit bcdboot D:\Windows /s S: /f UEFI- Replace "D:" with the actual drive letter of your Windows partition.
If you're looking for a simple Windows 11 BCD rebuild tool that runs at the command line, these scripts offer an intuitive way to rebuild your boot configuration without having to use a full graphical rescue disc.
- JacksonMarIron Contributor
Although you may know how to rebuild BCD in Windows 11, I suggest that you utilise Parted Magic to examine the hardware and software on a drive.
Functionality
- Parted Magic can examine a drive including its block devices and partitions and can also check a file system.
- Further it is able to detect various issues with both EFI and windows partitions.
Limitations
- Unfortunately Parted Magic does not have the facility to recreate a BCD and is unable to execute the 'bcdboot' command.
- However it can investigate a disk and determine whether it is suitable for this type of task.
As mentioned earlier, examining a drives partitions is a key element of How to rebuild BCD in Windows 11. Therefore, it is not extra to the procedure but rather key. The recreation of the BCD can therefore be seen as a way of repairing a drive.
If this examination is not performed then you may end up re-installing boot files on to a drive that is not actually the one that is causing the problem.
- PhilSheppard12122Tin Contributor
The error 0xc0000098 usually means Windows Boot Configuration Data (BCD) is missing, corrupted, or contains invalid boot entries.
You can rebuild it using Windows Recovery Environment (WinRE).
Method: Rebuild BCD
1. Boot your laptop using a Windows 11 installation USB.
2. Select Repair your computer (not Install).
3. Go to Troubleshoot → Advanced options → Command Prompt.
4. Enter these commands one at a time:
cmd
```cmd
bootrec /scanos
bootrec /rebuildbcd
```
5. If Windows installations are found, confirm adding them to the boot list by typing `Y`.
6. Restart your laptop.
If that doesn't work
On modern UEFI-based Windows 11 systems, you can rebuild boot files using BCDBoot:
1. Open Command Prompt in Recovery.
2. Identify your Windows partition and EFI System Partition using `diskpart` and `list vol`.
3. Assign a temporary drive letter to the EFI partition.
4. Run:
cmd
bcdboot C:\Windows /s S: /f UEFI
Replace `C:` with your actual Windows partition and `S:` with your EFI partition.
Important: Drive letters can differ in recovery mode. Verify the correct partitions before running commands. Do not format or delete the EFI partition.
Recommendation: Try `bootrec /rebuildbcd` first. If it doesn't resolve error 0xc0000098, use BCDBoot.