How to clean up BCD entries? Rebuild the BCD?

Page 1 of 2 12 LastLast

  1. Posts : 502
    Microsoft Windows 10 Home 64-bit 18363 Multiprocessor Free
       #1

    How to clean up BCD entries? Rebuild the BCD?


    I have a number of bogus entries in BCD.
    Plus I cloned my primary Win10-1903 SSD to create a multiboot system, ran EasyBCD and that's what added all these fake entries. On top of that, it sometimes has trouble booting, I have to hit Cntrl-Alt-Delete to restart the boot process.

    I think something is corrupt in the BCD, or all these bad entries among good ones.

    I want to try this, can someone explain what exactly it does.


    bootrec /rebuildbcd
      My Computer


  2. Posts : 4,224
    Windows 10
       #2

    Tim Fisher's article at Lifewire explains this reasonably well: How to Rebuild the BCD in Windows.
    HTH,
    --Ed--
      My Computers


  3. Posts : 502
    Microsoft Windows 10 Home 64-bit 18363 Multiprocessor Free
    Thread Starter
       #3

    Will this remove all the bogus entries? Once I hit F11 on this MSI laptop, I see all the BCD entires and most of them are bogus.

    bootrec /rebuildbcd

    Is this the tool to use to delete them all and start anew?

    - - - Updated - - -

    For example this is one of the entries that I see if I hit F11 during the boot cycle, it shows all the bootable entires. This one for example does not lead anywhere, this is a bogus entry:

    How to clean up BCD entries?  Rebuild the BCD?-image.png

    if I select it, I get this:



    How to clean up BCD entries?  Rebuild the BCD?-image.png
      My Computer


  4. Posts : 4,525
    Windows 11 Pro 64-bit
       #4

    You can delete the boot entries from System Configuration type Msconfig into Start Menu and From Boot tab delete bad entries.
      My Computer


  5. Posts : 502
    Microsoft Windows 10 Home 64-bit 18363 Multiprocessor Free
    Thread Starter
       #5

    This is the problem, they don't appear in msconfig.

    How to clean up BCD entries?  Rebuild the BCD?-image.png

    nor do they appear in EasyBCD:



    How to clean up BCD entries?  Rebuild the BCD?-image.png

    - - - Updated - - -

    They do appear in EasyUEFI but not sure which ones are good and which ones are bogus:




    How to clean up BCD entries?  Rebuild the BCD?-image.png

    then there is VisualBCD that's even more confusing:



    How to clean up BCD entries?  Rebuild the BCD?-image.png
      My Computer


  6. Posts : 4,525
    Windows 11 Pro 64-bit
       #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.

    Please boot your computer with Windows Setup Media and from Windows Recovery Environment start the Command Prompt.

    At the Command Prompt, type below command as shown and then press Enter:

    Code:
    C:
    At the Command Prompt, type below command as shown and then press Enter:

    Code:
    bcdedit /export C:\bcdbackup
    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:
    The operation completed successfully.

    Meaning the BCD export worked as expected.


    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 commands exactly like this:

    Code:
    attrib c:\boot\bcd -h -r -s
    What you just did with the attrib command was remove the hidden, read-only, and system 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.

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

    Code:
    ren C:\boot\bcd   bcd.old
    Now that the BCD store is renamed, you should now be able to successfully rebuild it.

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

    Code:
    bootrec /scanos
    bootrec /rebuildbcd
    Restart your computer after rebuilding the BCD store.
      My Computer


  7. Posts : 2,790
    Linux Mint 20.1 Win10Prox64
       #7

    Here's another option.
    Open Admin command prompt and type: bcdboot /bcdclean
    The above command will delete all duplicate entries.

    To clean up all the invalid entries, you'll need to run the Admin command in Recovery Environment (SHIFT+Restart) and use:
    bcdboot /bcdclean full

    How to clean up BCD entries?  Rebuild the BCD?-2019-10-12_074831.jpg
      My Computer


  8. Posts : 502
    Microsoft Windows 10 Home 64-bit 18363 Multiprocessor Free
    Thread Starter
       #8

    I will try these tonight, thank you.
      My Computer


  9. Posts : 502
    Microsoft Windows 10 Home 64-bit 18363 Multiprocessor Free
    Thread Starter
       #9

    I was able to get into it, except it's called F: and not C: in my case.




    How to clean up BCD entries?  Rebuild the BCD?-image.png




    How to clean up BCD entries?  Rebuild the BCD?-image.png

    Hitting F11 upon boot cycle to get into bootable devices menu results in some bogus devices:




    Attachment 251576

    and selecting one of the bogus devices results in a unbootable menu choice:



    How to clean up BCD entries?  Rebuild the BCD?-image.png

    This disk does not exist and I have to hit Control-Alt-delete several times to get back to the boot menu.
    Basically nothing is resolved, I still have bogus entry in the BCD store. Or whatever it's called. NVRAM I think it is.

    - - - Updated - - -


    as for the second part:




    How to clean up BCD entries?  Rebuild the BCD?-image.jpg

    didn't work.

    This is what the correct boot entry looks like. The PM981_old entry doesn't boot anything, even though I added it with EasyBCD. That's fine, at least the primary boots (called PM981_new, the highlighted option).


    How to clean up BCD entries?  Rebuild the BCD?-image.png

    This is an example of a bogus, non-existent entry that I can't delete. The disks it points to don't exist.

    Bunch of junk, bogus, non-existent entries, the good one is not even the first one in the list:





    How to clean up BCD entries?  Rebuild the BCD?-image.jpg

    For example if I select #1 in the above list, I get this:

    How to clean up BCD entries?  Rebuild the BCD?-image.png

    and it doesn't go anywhere, can't find the disk since it doesn't exist and I don't know how to purge it out of ther.e


    I re-burned the Windows recovery thing onto the flash and able to boot off it again:



    How to clean up BCD entries?  Rebuild the BCD?-image.jpg






    How to clean up BCD entries?  Rebuild the BCD?-image.png
    Attached Thumbnails Attached Thumbnails How to clean up BCD entries?  Rebuild the BCD?-image.jpg  
    Last edited by dictum; 17 Oct 2019 at 19:28.
      My Computer


  10. Posts : 1,614
    Windows 10 Home
       #10

    Why is Windows on F and D, and not C where it probably should be? Or, is that part of the bogus BCD entries?
      My Computer


 

  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 19:54.
Find Us




Windows 10 Forums