Solved Boot error: Recover from invalid BCD (Help!)

Jimmy59

Member
Member
Messages
44
After a Windows update, I can't get to the Windows login screen, and arrive at a screen that states, "there is an invalid object in the boot configuration data store windows 8." The message suggests that I do a system repair from my Win 8 install disc. I booted to the disc and then, per Microsoft's suggestion, accessed a command prompt, where I tried bootrec /RebuildBcd. The command completed "successfully," but reported that no operating system was found. An automatic repair also failed. Is there anything else that I can try to get my system back? I can't boot top Safe Mode either.

I do have a Partition Manager backup. If nothing else works, can I copy the BCD fiiles from the backup over the ones in my presently-bad system? I don't use System Restore, and my backup is little older that I'd like. Thanks!!
 

My Computer

System One

  • OS
    7x64
    Computer type
    PC/Desktop
For example, you receive one of the following error messages.

Recovery
Your PC needs to be repaired
The Boot Configuration Data file is missing some required information.
File: \BCD
Error code: 0xc0000034

Error code 0xc0000034.png

Recovery
Your PC/Device needs to be repaired
A required device isn't connected or can't be accessed.
Error code: 0xc0000225

Error code 0xc0000225.png

BCDBOOT - Bcd boot file creation and repair tool.

BCDboot <source>
- <source> Specifies the location of the Windows directory to use as the source for copying boot files.

UEFI Boot Mode: BCDboot copies the boot files from the Windows partition to the EFI System partition and creates the BCD store in the same partition.
Legacy BIOS Boot Mode: BCDboot copies the boot files from the Windows partition to the active partition on the primary hard drive and creates the BCD store in the same partition.

https://msdn.microsoft.com/en-us/library/windows/hardware/dn898490(v=vs.85).aspx

Repair the system partition. If the system partition has been corrupted, you can use BCDBoot to recreate the system partition files by using new copies of these files from the Windows partition.

Set up or repair the boot menu on a dual-boot PC. If you've installed more than one copy of Windows on a PC, you can use BCDBoot to add or repair the boot menu.

How to use the BCDboot command in Windows 7/8/10.

Open the command prompt as administrator.
-or-
Boot the computer using the Windows 7/8/10 installation media.
On the first screen, press SHIFT+F10 to bring up the command prompt.
-or-
Boot the computer using the Windows 8/10 Recovery USB flash drive.
Select Troubleshoot > Advanced options > Command Prompt.

Run the following commands at the command prompt.

diskpart
list volume Note: Note the volume letter where the Windows OS is installed.
exit

bcdboot X:\windows Note: Replace "X" with the volume letter of the Windows OS partition.

For example, bcdboot c:\windows or bcdboot d:\windows (see screenshots below).

If the drive letter is incorrect, you will receive the following error message: "Failure when attempting to copy boot files". Note: But if you get that error message even if the drive letter is correct, then take a look at this post if the hard drive has an MBR partition table. -> link

bcdboot 1.png

bcdboot 2.png

Tip   Tip

The following is an example how do you fix a dual-boot system (see screenshot below).

bcdboot - dual-boot system installed.png

Now you should see the dual-boot screen (see screenshot below).

dual-boot system installed.png


Tip   Tip

Windows 10 and Windows 7 dual boot 1.png

If you have a Windows 7 style dual-boot screen (see screenshot above) and if you want a Windows 8/10 style dual-boot screen.

When you are in Windows 8/10, open the Command Prompt (Admin) and type: bcdboot %windir%

bcdboot windir.png

Windows 10 and Windows 7 dual boot 2.png


Other instructions.

How to create a bootable Windows 10 USB flash drive or DVD. -> link

How to download and clean install Windows 8.1 if you have an OEM computer with UEFI firmware (BIOS) embedded Windows 8/8.1 product key. -> link

Here is info about UEFI Boot Mode (installing using the GPT partition style) and Legacy BIOS Boot Mode (installing using the MBR partition style): link
 
Last edited:

My Computer

System One

  • OS
    Windows 10
    Computer type
    Laptop
    System Manufacturer/Model
    Lenovo G580
    CPU
    Intel Core i5-3230M
    Memory
    8 GB
    Graphics Card(s)
    Intel HD Graphics 4000
    Browser
    Microsoft Edge
    Antivirus
    Windows Defender, standard user account
    Other Info
    UEFI firmware (BIOS) embedded Windows 8 product key.
Thanks very much. My Win OS was J:, so I ran X:sources\bcdboot j:\windows. The command completed without any message. I did not receive a message of "Boot files successfully created." I repeated the process and then received "BFSVC Warning: Failed to remove duplicate object from bbotmgr display order. Status = [c0000225]." So, it seems that something was created. The fix evidently failed, as my system did not boot and I received the same error as I did initially.
 

My Computer

System One

  • OS
    7x64
    Computer type
    PC/Desktop
I went a little further and ran bootrec /RebuildBcd on my system partition, and it appeared to complete successfully. Now, when I try to boot into Windows, it starts to load (the scrolling horizontal bar appears), but I end up with a black screen. Same when I try to boot to Safe Mode. Windows Repair could not fix the problem. My guess is that I have a video issue, but I can't figure out a way to resolve the problem. Thanks.
 

My Computer

System One

  • OS
    7x64
    Computer type
    PC/Desktop
Wait a minute - after a looooong time, Windows Update restarted at 80%, finished, and Windows loaded! Thanks very much for your help! I'm sorry for taking up your time.
 

My Computer

System One

  • OS
    7x64
    Computer type
    PC/Desktop
Back
Top