How to Rebuild Windows Boot Configuration Data (BCD) (2024)

> Windows

Rebuild the Boot Configuration Data to fix some Windows startup issues

By

Tim Fisher

How to Rebuild Windows Boot Configuration Data (BCD) (1)

Tim Fisher

Senior Vice President & Group General Manager, Tech & Sustainability

  • Emporia State University

Tim Fisher has more than 30 years' of professional technology experience. He's been writing about tech for more than two decades and serves as the SVP and General Manager of Lifewire.

lifewire's editorial guidelines

Updated on April 10, 2022

Reviewed by

Chris Selph

How to Rebuild Windows Boot Configuration Data (BCD) (2)

Reviewed byChris Selph

    Chris Selph is a CompTIA-certified technology and vocational IT teacher. He also serves as network & server administrator and performs computer maintenance and repair for numerous clients.

    Windows

    • The Ultimate Laptop Buying Guide

    Trending Videos

    What to Know

    • If theWindowsboot configuration data (BCD) store is missing, corrupted or improperly configured, you have to fix Windows startup issues.
    • The easiest solution to a BCD issue is to simply rebuild it, which you can do automatically with thebootreccommand.
    • There are several commands to run and lots of output on the screen, but rebuilding the BCD is a very straightforward process.

    If you see a BOOTMGR is Missing error or a similar message pretty early on in the boot process, you've got a BCD problem. This article explains how to rebuild the BCD.

    These instructions apply to Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista. Similar problems can exist in Windows XP, but since boot configuration information is stored in the boot.ini file and not the BCD, correcting XP issues with boot data involves a completely different process.

    How to Rebuild the BCD in Windows 11, 10, 8, 7, or Vista

    Rebuilding the BCD in Windows should only take around 15 minutes:

    1. On Windows 11/10/8: Start Advanced Startup Options.

      On Windows 7 or Windows Vista: Start System Recovery Options.

      How to Rebuild Windows Boot Configuration Data (BCD) (3)

    2. In Windows 11/10/8, select Troubleshoot > Advanced options.

      How to Rebuild Windows Boot Configuration Data (BCD) (4)

    3. Select the Command Prompt button to start it.

      How to Rebuild Windows Boot Configuration Data (BCD) (5)

      Command Prompt won't start immediately. Your computer will show a "Preparing" screen for a short time while it readies the computer.

      You may need to choose your account name and enter your password to get to the Command Prompt.

    4. At the prompt, type the bootrec command as shown below, and then press Enter:

       bootrec/rebuildbcd

      How to Rebuild Windows Boot Configuration Data (BCD) (6)

      The bootrec command will search for Windows installations not included in the BCD and then ask you if you'd like to add one or more to it.

    5. You should see one of the following messages at the command line.

      Option 1

       ScanningalldisksforWindowsinstallations.Pleasewait,sincethismaytakeawhile...SuccessfullyscannedWindowsinstallations.TotalidentifiedWindowsinstallations:0Theoperationcompletedsuccessfully.

      Option 2

       ScanningalldisksforWindowsinstallations.Pleasewait,sincethismaytakeawhile...SuccessfullyscannedWindowsinstallations.TotalidentifiedWindowsinstallations:1[1]D:\WindowsAddinstallationtobootlist?Yes/No/All:

      If you see Option 1: Move on to Step 7. This result most likely means that Windows installation data in the BCD store exists but bootrec couldn't find any additional installations of Windows on your computer to add to the BCD. That's fine; you'll just need to take a few extra steps to rebuild the BCD.

      If you see option 2: Enter Y or Yes to the Add installation to boot list? question, after which you should see The operation completed successfully, followed by a blinking cursor at the prompt. Finish up with Step 10 toward the bottom of the page.

    6. Since the BCD store exists and lists a Windows installation, you'll first have to remove it manually and then try to rebuild it again. At the prompt, execute the bcdedit command as shown and then press Enter:

       bcdedit/exportc:\bcdbackup

      How to Rebuild Windows Boot Configuration Data (BCD) (8)

      The bcdedit command is used here to export the BCD store as a file: bcdbackup. There's no need to specify a file extension. The command should return the following on screen, meaning the BCD export worked as expected:

       Theoperationcompletedsuccessfully.
    7. At this point, you need to adjust several file attributes for the BCD store so you can manipulate it. At the prompt, execute the attrib command exactly like this:

       attribc:\boot\bcd-h-r-s

      How to Rebuild Windows Boot Configuration Data (BCD) (9)

      What you just did with the attrib command was remove the hidden file, read-only file, and system file attributes from the file bcd. Those attributes restricted the actions you could take on the file. Now that they're gone, you can manipulate the file more freely (specifically, rename it).

    8. To rename the BCD store, execute the ren command as shown:

       renc:\boot\bcdbcd.old

      How to Rebuild Windows Boot Configuration Data (BCD) (10)

      Now that the BCD store is renamed, you should now be able to successfully rebuild it, as you tried to do in Step 6.

      You could delete the BCD file entirely since you're about to create a new one. However, renaming the existing BCD accomplishes the same thing since it's now unavailable to Windows, plus provides you with another layer of backup, in addition to the export you did in Step 5, if you decide to undo your actions.

    9. Try rebuilding the BCD again by executing the following, followed by Enter:

       bootrec/rebuildbcd

      How to Rebuild Windows Boot Configuration Data (BCD) (11)

      It should produce this in Command Prompt:

       ScanningalldisksforWindowsinstallations.Pleasewait,sincethismaytakeawhile...SuccessfullyscannedWindowsinstallations.TotalidentifiedWindowsinstallations:1[1]D:\WindowsAddinstallationtobootlist?Yes/No/All:

      How to Rebuild Windows Boot Configuration Data (BCD) (12)

      This means the BCD store rebuild is progressing as expected.

    10. At the Add installation to boot list? question, typeY or Yes, followed by the Enter key.

      You should see this on the screen to show that the BCD rebuild is complete:

       Theoperationcompletedsuccessfully.

      How to Rebuild Windows Boot Configuration Data (BCD) (13)

    11. Restart your computer. Assuming that an issue with the BCD store was the only problem, Windows should start as expected.

      Depending on how you started Advanced Startup Options or System Recovery Options, you may need to remove a disc or flash drive before restarting.

    If rebuilding the BCD didn't solve the problem you were having, continue troubleshooting to fix freezing and other issues that may prevent Windows from booting normally.

    FAQ

    • What can I do if I cannot rebuild my BCD?

      If you see an error like “Path Not Found C:\Boot,” run the command bcdboot c:\windows /s c (assuming C is your Windows drive). If you still have issues, use the Diskpart command to make your Windows installation the active drive.

    • What should I do after I rebuild the BCD?

      Rebuilding the BCD doesn't affect your personal data or settings in any way, so you can continue to use your computer as normal.

    Was this page helpful?

    Thanks for letting us know!

    Get the Latest Tech News Delivered Every Day

    Subscribe

    Tell us why!

    How to Rebuild Windows Boot Configuration Data (BCD) (2024)
    Top Articles
    Latest Posts
    Article information

    Author: Saturnina Altenwerth DVM

    Last Updated:

    Views: 5861

    Rating: 4.3 / 5 (64 voted)

    Reviews: 95% of readers found this page helpful

    Author information

    Name: Saturnina Altenwerth DVM

    Birthday: 1992-08-21

    Address: Apt. 237 662 Haag Mills, East Verenaport, MO 57071-5493

    Phone: +331850833384

    Job: District Real-Estate Architect

    Hobby: Skateboarding, Taxidermy, Air sports, Painting, Knife making, Letterboxing, Inline skating

    Introduction: My name is Saturnina Altenwerth DVM, I am a witty, perfect, combative, beautiful, determined, fancy, determined person who loves writing and wants to share my knowledge and understanding with you.