Към съдържанието

How to Repair the Windows Boot Configuration Data (BCD) on Windows 7, 8, 10, and 11

24.11.2026

How to Repair the Windows Boot Configuration Data (BCD) on Windows 7, 8, 10, and 11

If your computer fails to start and displays errors like "The Boot Configuration Data for your partition is missing" or "A required device cannot be found," you are likely facing a corrupted Boot Configuration Data (BCD).

The BCD is a critical database used by Windows to store information about how the operating system should be loaded. When this data becomes corrupted due to improper shutdowns, hardware changes, or accidental deletions, Windows won't know how to boot, leaving you stuck at a black screen or an error message.

In this guide, we will walk you through the essential steps to repair the BCD using the Windows Recovery environment.

Prerequisites

To perform these repairs, you cannot simply run commands from within Windows (if it even boots). You will need:

  • Windows Installation Media: A bootable USB drive or DVD containing the Windows installer for your specific version (Windows 7, 8, 10, or 11).
  • A working computer: To create the bootable media if you don't already have one.

Step-by-Step Guide to Repairing BCD

1. Boot from the Windows Installation Media

Insert your bootable USB or DVD and restart your computer. You may need to press a specific key (like F12, F2, or ESC) to enter the Boot Menu and select your installation media.

Once the Windows Setup screen appears, select your language and keyboard preferences, then click Next. On the following screen, do not click "Install Now". Instead, click "Repair your computer" in the bottom-left corner.

2. Navigate to the Command Prompt

You will be taken to the "Choose an option" screen. Follow these steps:

  1. Select Troubleshoot.
  2. Select Advanced options.
  3. Select Command Prompt.

A black Command Prompt window will open. This is the most powerful tool for system recovery.

3. Run the Boot Repair Commands

The bootrec utility is specifically designed to repair the Windows boot process. Type the following commands one by one, pressing Enter after each one.

A. Scan the configuration for existing installations:

bootrec /scanos

This command scans all disks for Windows installations. It helps you see if Windows is even recognized.

B. Rebuild the BCD store:

bootrec /rebuildbcd

This is the most important step. It scans for Windows installations and asks if you want to add them to the boot menu. If prompted, type Y (for Yes) and press Enter.

C. Fix the Master Boot Record (MBR):

bootrec /fixmbr

This writes a new Master Boot Record to the system partition, which is the first thing the computer reads when it starts.

D. Fix the Boot Sector:

bootrec /fixboot

This writes a new boot sector to the system partition.

Summary of Commands

Command Function
bootrec /scanos Scans for Windows installations on all drives.
bootrec /rebuildbcd Scans for installations and adds them to the BCD.
bootrec /fixmbr Repairs the Master Boot Record.
bootrec /fixboot Repairs the Boot Sector.

Final Step: Restart Your Computer

Once you have finished running the commands, close the Command Prompt window and click Continue to exit the recovery environment and restart Windows. If the repairs were successful, your computer should boot normally.

If you are still encountering errors, the issue might be a hardware failure (like a failing hard drive) or a more complex partition issue that may require deeper disk management.