Windows Recovery Guide · 2026

How to Repair the Windows Bootloader
in Windows 10 and Windows 11

A practical step-by-step guide for fixing boot errors, rebuilding BCD, restoring the EFI System Partition, and making Windows start again without reinstalling the operating system.

🪟 Windows 10 🪟 Windows 11 🛠 WinRE tools 💽 UEFI + BIOS ⏱ ~18 min read
2
Boot modes covered
5
Repair methods
0
Reinstall required in most cases
📋
Table of Contents
Jump to the boot repair method you need
  1. What the Windows Bootloader Does
  2. Common Bootloader Error Messages
  3. Before You Start: Safety Checklist
  4. How to Enter Windows Recovery Environment
  5. Method 1: Run Automatic Startup Repair
  6. Identify UEFI/GPT or Legacy BIOS/MBR
  7. Method 2: Repair the UEFI Bootloader
  8. Method 3: Repair the Legacy MBR Bootloader
  9. Method 4: Rebuild the BCD Store Manually
  10. Fix Bootrec Errors
  11. Dual-Boot and Multiple Windows Installations
  12. What to Check After Windows Starts
  13. Frequently Asked Questions

What Is the Windows Bootloader and Why Does It Break?

The Windows bootloader is the set of boot files and configuration data that tells your computer where Windows is installed and how to start it. On modern UEFI systems, the most important components are stored on the EFI System Partition. On older BIOS/MBR systems, the boot code is stored in the Master Boot Record and the active system partition.

Bootloader corruption can happen after a failed Windows update, disk cloning, partition resizing, installing another operating system, changing BIOS/UEFI settings, replacing a drive, or accidental deletion of a small system partition. The good news is that in most cases Windows itself is still intact; only the boot configuration must be repaired.

ℹ️
Important concept Repairing the bootloader is different from reinstalling Windows. These methods try to recreate the startup files and BCD configuration while keeping your installed programs, personal files, and Windows settings in place.

Windows Bootloader Problems: Common Error Messages and Causes

You may need to restore the Windows bootloader if the PC powers on but Windows does not load. Typical messages include:

⚠️

BCD errors

0xc000000e, 0xc0000098, 0xc0000225, or “The Boot Configuration Data file is missing”.

💽

No boot device

“No bootable device”, “Operating system not found”, or the BIOS opens instead of Windows.

🔁

Repair loop

Windows repeatedly opens Automatic Repair but never reaches the desktop.

🧩

After disk changes

Windows stopped booting after cloning, converting a disk, deleting partitions, or installing Linux.

The exact repair command depends on whether the PC uses UEFI/GPT or Legacy BIOS/MBR. Using the wrong method usually does not damage Windows, but it may not fix the boot problem.

Before Repairing the Windows Bootloader: Safety Checklist

Boot repair commands are powerful because they work with partitions and boot records. Before you start, follow this checklist:

⚠️
Warning Do not randomly run clean, format, or partition deletion commands in DiskPart. This guide uses DiskPart only to identify volumes and temporarily assign a drive letter to the EFI partition.

How to Open Windows Recovery Environment to Repair Startup

All methods below require Command Prompt or Startup Repair from Windows Recovery Environment. Choose the access method that matches your situation.

If Windows still opens

  1. Open Settings.
  2. Go to SystemRecovery.
  3. Next to Advanced startup, click Restart now.
  4. After restart, open TroubleshootAdvanced options.

If Windows does not start

  1. Turn the PC on and interrupt boot by holding the power button when Windows begins loading.
  2. Repeat this two or three times until Preparing Automatic Repair appears.
  3. Open Advanced optionsTroubleshootAdvanced options.

If recovery does not appear

  1. Create a Windows installation USB on another computer.
  2. Boot from the USB drive.
  3. On the first setup screen, choose your language and click Next.
  4. Click Repair your computer, not Install now.
  5. Open TroubleshootAdvanced options.

Repair Windows Bootloader Automatically with Startup Repair

Start with the automatic tool. It can fix missing boot files, incorrect BCD entries, and some startup loops without manual commands.

  1. Open Windows Recovery Environment.
  2. Go to TroubleshootAdvanced optionsStartup Repair.
  3. Select your Windows installation.
  4. Wait while Windows scans and attempts repairs.
  5. Restart the computer and check whether Windows loads.

If Startup Repair says it could not repair your PC, continue with the manual methods below. That message does not necessarily mean the installation is lost.

How to Check Whether Windows Uses UEFI/GPT or Legacy BIOS/MBR

The bootloader repair procedure is different for UEFI and Legacy BIOS. You can identify the mode from Command Prompt in recovery.

  1. Open TroubleshootAdvanced optionsCommand Prompt.
  2. Run DiskPart:
Command Prompt
diskpart list disk

Look at the GPT column. If your Windows disk has an asterisk * in the GPT column, it is a GPT disk and normally boots in UEFI mode. If there is no asterisk, the disk is usually MBR and normally boots in Legacy BIOS/CSM mode.

Then list volumes to find the Windows partition and the EFI partition:

DiskPart
list volume

Exit DiskPart when you finish checking:

DiskPart
exit

How to Repair the Windows Bootloader on UEFI/GPT Systems

This is the most common method for modern Windows 10 and Windows 11 computers. It recreates boot files on the EFI System Partition using bcdboot.

Step 1: Find the Windows partition

In recovery mode, Windows may be installed on D:, E:, or another letter instead of C:. Check possible drive letters:

Command Prompt
dir C:\Windows dir D:\Windows dir E:\Windows

Use the letter where you see the Windows folder. In the examples below, we will assume Windows is on C:. Replace it if your system uses another letter.

Step 2: Assign a letter to the EFI System Partition

Command Prompt
diskpart list volume

Find the small FAT32 EFI volume. Then replace N with its volume number:

DiskPart
select volume N assign letter=S exit

Step 3: Recreate UEFI boot files

Command Prompt
bcdboot C:\Windows /s S: /f UEFI

If the command succeeds, you should see a message similar to Boot files successfully created. Restart the PC and select the internal Windows drive in UEFI boot settings if needed.

Recommended UEFI command For most Windows 10 and Windows 11 computers with GPT disks, bcdboot C:\Windows /s S: /f UEFI is the cleanest and most reliable bootloader repair command.

How to Repair the Windows Bootloader on Legacy BIOS/MBR Systems

Older computers and some converted installations use Legacy BIOS with an MBR disk. In this configuration, you normally repair the MBR boot code and rebuild BCD entries.

Step 1: Find the Windows partition

Command Prompt
dir C:\Windows dir D:\Windows dir E:\Windows

Assume the correct Windows partition is C: in the commands below. Change the letter if recovery mode shows a different one.

Step 2: Run Bootrec commands

Command Prompt
bootrec /fixmbr bootrec /fixboot bootrec /scanos bootrec /rebuildbcd

If Windows is detected, type Y when prompted to add it to the boot list.

Step 3: Make the correct partition active if needed

If the PC still does not boot, the system partition may not be marked active. Use this only on MBR disks, not GPT disks.

Command Prompt
diskpart list disk select disk 0 list partition select partition N active exit

Replace N with the partition that contains the boot files. It may be a small System Reserved partition or the main Windows partition, depending on how Windows was installed.

How to Rebuild the Windows BCD Store Manually

If bootrec /rebuildbcd does not find Windows or fails to add the installation, rebuild the BCD store manually. This method is useful when the BCD file is damaged but the Windows folder is still present.

For UEFI/GPT systems

Assign the EFI partition to S: as shown earlier, then run:

Command Prompt
ren S:\EFI\Microsoft\Boot\BCD BCD.bak bcdboot C:\Windows /s S: /f UEFI

If the ren command says the file does not exist, continue with bcdboot. The BCD store may already be missing.

For Legacy BIOS/MBR systems

Run these commands from recovery Command Prompt:

Command Prompt
attrib C:\Boot\BCD -h -r -s ren C:\Boot\BCD BCD.bak bootrec /rebuildbcd

If the Boot folder is on the System Reserved partition instead of C:, assign that partition a temporary drive letter in DiskPart and run the commands against that letter.

How to Fix “Bootrec /FixBoot Access Is Denied” and Other Boot Repair Errors

Some Windows installations return Access is denied when running bootrec /fixboot. On UEFI systems, you usually do not need /fixboot; recreate EFI boot files with bcdboot instead.

Recommended fix for UEFI systems

Command Prompt
diskpart list volume select volume N assign letter=S exit bcdboot C:\Windows /s S: /f UEFI

Replace N with the FAT32 EFI volume number and replace C: if your Windows folder is on another letter.

If Bootrec does not find Windows

Check the drive letter first. The most common reason is that the recovery environment assigned Windows a different letter.

Command Prompt
dir C:\Windows dir D:\Windows dir E:\Windows bcdboot D:\Windows /s S: /f UEFI

In this example, D: is used because that is where the Windows folder was found.

If bcdboot says “Failure when attempting to copy boot files”

Repairing Windows Bootloader on Dual-Boot or Multiple-Drive PCs

Dual-boot systems require extra care. Boot files may be stored on a different drive than the Windows installation, especially if Linux or another Windows version was installed later.

To create boot files that support both UEFI and BIOS when you are not sure which mode will be used, you can use:

Command Prompt
bcdboot C:\Windows /s S: /f ALL

However, for a standard modern UEFI installation, /f UEFI is preferred because it matches the actual boot mode.

What to Check After Restoring the Windows Bootloader

After Windows starts successfully, perform a few checks to prevent the issue from returning.

  1. Check boot order in BIOS/UEFI and make sure Windows Boot Manager is first.
  2. Run disk health diagnostics if the bootloader broke without an obvious reason.
  3. Check system files from an elevated Command Prompt:
Administrator Command Prompt
sfc /scannow DISM /Online /Cleanup-Image /RestoreHealth
  1. Create a restore point after confirming the system is stable.
  2. Create a full backup if the boot failure happened after disk cloning or partition changes.
💡
Tip If Windows starts only when you choose a specific boot device manually, the bootloader may be repaired correctly but the UEFI boot order is still wrong. Move Windows Boot Manager for the correct SSD/HDD to the first position.

Windows Bootloader Repair Commands: Quick Reference Table

Situation Recommended command Notes
Modern UEFI/GPT installation bcdboot C:\Windows /s S: /f UEFI Requires assigning S: to the FAT32 EFI partition.
Legacy BIOS/MBR installation bootrec /fixmbr
bootrec /rebuildbcd
Use on MBR disks, often with an active system partition.
BCD file is corrupted ren BCD BCD.bak
bcdboot C:\Windows /s S: /f UEFI
Renames old BCD and creates a new one.
/fixboot access denied bcdboot C:\Windows /s S: /f UEFI Usually the better solution on UEFI systems.
Wrong Windows drive letter in WinRE dir C:\Windows
dir D:\Windows
Always identify the real Windows letter before repair.

Frequently Asked Questions About Windows Bootloader Repair

Q Will repairing the bootloader delete my files?
No. The commands in this guide recreate boot files and BCD configuration. They do not erase documents, installed programs, or Windows settings. Data loss can occur only if you delete, format, or clean partitions manually.
Q Should I use Bootrec or BCDboot to repair Windows 11?
For most Windows 11 PCs, use bcdboot because Windows 11 is normally installed in UEFI/GPT mode. bootrec is still useful on older Legacy BIOS/MBR installations and for some BCD troubleshooting tasks.
Q Why is my Windows drive not C: in recovery mode?
Windows Recovery Environment assigns drive letters independently from your normal Windows session. Your Windows installation may appear as D: or E:. Always run dir C:\Windows, dir D:\Windows, and similar checks before using repair commands.
Q What should I do if there is no EFI partition?
First confirm that the disk is GPT and that the EFI partition is not simply hidden without a drive letter. If the EFI partition was deleted, you may need to shrink the Windows partition, create a new FAT32 EFI partition, and run bcdboot. This is more advanced and should be done only after backing up important data.
Q Can I repair the Windows bootloader from a Windows USB drive?
Yes. Boot from the Windows installation USB, click Repair your computer, then open Troubleshoot → Advanced options → Command Prompt. You can run the same bootrec, bcdboot, and diskpart commands from there.
Q Why does Windows Boot Manager not appear in BIOS/UEFI after repair?
The EFI files may have been created on the wrong disk, the firmware boot entry may not have been registered correctly, or the wrong boot mode may be enabled. Check that UEFI mode is enabled, confirm the EFI partition is on the intended drive, and run bcdboot C:\Windows /s S: /f UEFI again with the correct partitions.

🧰 Final Recommendations

To restore the Windows bootloader, start with Startup Repair. If it fails, identify whether the system uses UEFI/GPT or Legacy BIOS/MBR. For modern Windows 10 and Windows 11 computers, the most effective fix is usually to assign a drive letter to the EFI System Partition and run bcdboot to recreate boot files.

After Windows starts, verify boot order, check disk health, run sfc /scannow, and create a backup. A repaired bootloader solves the startup problem, but the original cause—failed update, disk issue, interrupted cloning, or partition change—should still be investigated.