Configuring a new BCD file

Page 1 of 2 12 LastLast

  1. Posts : 62
    Windows 10 Pro

    Configuring a new BCD file

    Hi There,

    How's it going?

    Due to some corruption I have to create a new BCD file, that is along with installing a new boot folder on the windows-boot partition. (My set up uses MBR).

    I know how to enter a lot of the BCD entries but not all of them.

    So I know this for the bootmgr and the bootloader of the OS. When it comes to the Ramdisk entries, there are two, WinRe.wim for the windows recovery partition and the OEM recovery partition; some will say why still use the OEM? And I also know what to do for WinRE.

    But would the entries be similar to WinRe for the OEM recovery - just change the drive, path and GUID?

    More importantly, in entering the bootloader settings, i.e. the OS, is this enough to include Winresume.exe (resume) and memtest.exe (memory test) as these are picked up automatically as they are also in system32 / windows? Or will I also need to enter these settings too? If so, any one know how? It has to be similar to the bootmgr and bootloader?

    Do I include the switch for the debugger settings?

    Must I also add the hypervisor settings? (I know these).

    That leaves the EMS settings? Then how about two device options which are the Ramdisks for WinRE and OEM - have those, but would about this second option - does what I know cover these already?

    From bcdedit /enum all ; there are also the Ram Defects, Global, Boot Loader and Resume Loader Settings, where two of these cross over with the above cases.

    It would be good for any assistance anyone can offer for BCD entries of a new BCD file.

      My Computer

  2. Megahertz's Avatar
    Posts : 2,859
    Windows 7 HP 64 - Windows 10 Pro - Lubuntu

    I'm not an expert on bcdedit but to rebuild it, open a CMD window as administrator and type:

    select volume c
    bcdboot C:\Windows /s C: /f BIOS

    If you're booting from a WinPE, run diskpart - list volume to make sure the windows volume is C: (it may not be)

    BCDEdit Command-Line Options

    BCDBoot Command-Line

      My Computers

  3. Posts : 62
    Windows 10 Pro
    Thread Starter

    Hi Megahertz,

    Thanks for these. However I am aware of all of them; you know of good links - best source but not comprehensive.

    Others, please consult first post.


    - - - Updated - - -

    Thinking a bit more about what is mentioned on my first post. Which is really looking for any ideas on filling in the gaps on the entries needed for a new BCD file. I am still interested to hear any input for these omissions. But am now adding a bit more specific detail to help, which is below:

    (1) Thinking about using bcdboot....

    This creates a new BCD store, but will that BCD store include some of the entries for the specific set up it is installed on? Hence does it not take some of these entries on installation? If so, any idea which?



    I was going to specify the location:

    bcdedit.exe /set {bootmgr} device partition=c:

    Is this enough? What other entries would I need?

    ii Boot Loader

    This requires more entries, where I have two issues with the code.
    a) {current} is identifier for the OS boot application and not {default} which is the identifier for bootmgr.
    b) bcdedit /enum all : mentions windows boot loader as winload.efi, but winload.exe is part of the suggested code .

    Any ideas?

    iii Ramdisk

    For Ramdisk bcdedit /enum all : lists winload.exe in the two cases of WinRE and OEM Recovery. That is along with WinRE.wim.

    The code for this seems to be:

    bcdedit /create {ramdiskoptions} /d "Ramdisk options"

    bcdedit /set {ramdiskoptions} ramdisksdidevice partition=c:

    bcdedit /set {ramdiskoptions} ramdiskdipath \boot\boot.sdi

    bcdedit /create /d "Boot from Wim" /application OSLOADER

    returns GUID

    bcdedit /set {GUID} device ramdisk=[c:] \sources\boot.wim , {ramdiskoptions}

    bcdedit /set {GUID} systemroot \windows

    then change for OEM 2nd set of entries.

    Throughout is using /set all I really need to add the entries along with identifiers and GUIDS, paths and devices? How about inherit and resumeobject: can these be set singularly or do some take from other entries?
      My Computer

  4. NavyLCDR's Avatar
    Posts : 15,784
    Windows 10 Pro

    On all my computers, post #2 has been entirely sufficient. I'm not exactly sure what you are attempting to accomplish, @TroubleShot.
      My Computer

  5. Posts : 62
    Windows 10 Pro
    Thread Starter

    I knew I had to use bcdboot ... from the start; before post 2. But in expecting issues with this due to other problems with the pc. I was checking the entries, along with looking for the omissions, just in the case I had to populate the BCD store manually. If I could that far.

    And I am already experiencing these, ...

    Here are the errors in using the bcdboot ... command for a number of ways; (a) via WinRe, X:, (b) from windows on the same drive and (c) via booting from a USB, X: :

    (a) and (c)

    BFSVC Error: Failed to set element application device. Status = [c00000bb]
    BFSVC Error: Failed to populate BCD store. Status =[c00000bb]

    Same errors if I change bcdboot to bcdboot.exe and if I remove /f BIOS

    (Not much out there on this. Except for VHD, not my case).


    BFSVC Error. BCD strings MUI load Failure (path to) \bootstr.dll (2)
    BFSVC Error. Failed to initialise global state. Status =[c0000001]

    (Mentions as a professional level issue).

    Any ideas how to get around these errors and continue with bcdboot ...

    - - - Updated - - -

    ... Well installing bcdboot to a VHD is kind of my case.

    The other problems with the pc includes C: splitting in C: and E: after a crash. This is where C: has only system32>configsystem of windows on it, that is empty and a 100MB. With the rest of windows etc on E: E: only exists as the partition table is corrupt and the BCD store. That means E: is seen as a Ramdisk; so a virtual HD of sorts. More to do with corrupt data etc.
      My Computer

  6. Megahertz's Avatar
    Posts : 2,859
    Windows 7 HP 64 - Windows 10 Pro - Lubuntu

    With the current Win 10 installation it will never be good.
    My suggestion:
    - Backup ALL your data on an external drive.
    - Check your drive for software issues. Open a CMD window as administrator and type:
    chkdsk c: /f
    It will say your disk is in use and if you want to schedule to next start = yes
    Pay attention on the results, specially bad blocks, bad clusters, bad sectors etc

    - Check the hardware with CrystalDiskInfo. It's a portable, don't need to install. Extract and run.

    Do a Clean Install Windows 10

    Windows can be installed in two ways: Legacy-MBR or UEFI-GPT
    To install as Legacy-MBR you must boot the installation drive as Legacy
    To install as UEFI-GPT you must boot the installation drive as UEFI.
    If you have a UEFI BIOS, you should install as UEFI-GPT

    On BIOS, if there is, disable fast boot and secure boot (you can enable after installation)

    During POST, press F? to launch the boot menu. You will see two options for the USB drive. USB UEFI (Name) and USB (Name). To install as UEFI-GPT, select USB UEFI (Name). To install as Legacy-MBR, select USB (Name).
    Go to install and delete ALL partitions on the SSD till you have one and only one unallocated space and then proceed.
    If you don't want to use MS account, don't enable updates or connect to the internet during installation.
    Last edited by Megahertz; 13 Jun 2021 at 09:36.
      My Computers

  7. NavyLCDR's Avatar
    Posts : 15,784
    Windows 10 Pro

    I agree. Time for a clean install.
      My Computer

  8. Posts : 62
    Windows 10 Pro
    Thread Starter

    Thanks both of you. I knew a clean installation was on the horizon. Just trying some last minute options, as I made some minor changes elsewhere.

    I had already used chkdsk on the HD before you got back to me. But it is fine. No problems. But I had done this a few days earlier and it repaired a lot of stuff it had not before.

    Oh, one last thing attrib -s -h for BCD has been mentioned as able to help.

    To get to GPT I will also need to erase the HD. This means getting rid of the OEM Recovery; which I do not really need as there is WinRE. But if I do keep this I of course was going to use diskpart. I am aware of most of the script but was wondering how to differentiate between WinRE and the OEM Recovery? You cannot have the same GUID for both surely, i.e de94bba4-06d1-4d40-116a-bfd50179d6ac. It looks like it is the basic data id for the OEM Recovery as ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 with gpt attributes 0x0000000000000001.
      My Computer

  9. NavyLCDR's Avatar
    Posts : 15,784
    Windows 10 Pro

    You are over thinking this way too much.
      My Computer

  10. Megahertz's Avatar
    Posts : 2,859
    Windows 7 HP 64 - Windows 10 Pro - Lubuntu

    OEM Recovery is completely different from Windows 10 Recovery.
    OEM Recovery has a installation image (~10 to 15G) to go back to Factory release. As your Samsung Notebook Series 3 probably came with Win 7 or Win 8.x, it is totally useless now that you use Win 10. I would clean the partition to get more space.
    Windows 10 Recovery has the WinRE to run the tools for maintenance. I would clean the partition as a new installation will recreate it.

    As you have a 9 year old laptop, don't miss to run CrystalDiskInfo. It's a portable, don't need to install. Extract and run.

    Please read my post #6 for instructions to install as Legacy-MBR or EFI-GPT

    As you're going to do a Clean install, why don't you buy a SSD and install the current HDD on a USB enclosure to use it as an external drive for backups?
    ORICO Tool Free 2.5 inch USB 3.0 SATA External Hard Drive Enclosure for 2.5" SATA HDD and SSD Support UASP and 8TB Drive Max -Black -

    2.5",1TB,480GB,500GB,512GB Internal SSDs |

    This one has a nice price and is very well evaluated
    Team Group EX2 2.5" 1TB SATA III 3D NAND Internal Solid State Drive (SSD) T253E2001T0C101 -
    Last edited by Megahertz; 14 Jun 2021 at 11:11.
      My Computers

Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 00:56.
Find Us

Windows 10 Forums