is there a way to avoid that a device will be included in the uefi database?

Discussion in 'backup, imaging & disk mgmt' started by mantra, Mar 28, 2023.

  1. mantra

    mantra Registered Member

    Joined:
    Jan 25, 2005
    Posts:
    6,194
    Hi
    about creating image and restoring and booting via Usb stick , i have noticed that many devices are added to the uefi (bios) database

    for example on my friend 's computer , i have seen several devices in the boot menu but not present in the computer (He plugged hard disks , usb sticks and external ssd ) , he does own these devices , he just plugged and after un plugged

    I thought to disable uefi on in bios , but i guess the laptop will not boot correctly
    thanks
     
  2. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,175
    Location:
    NSW, Australia
    mantra,

    You can disable them. You only need 1 entry in Boot Option Priorities...

    EFI System Partition.

    If he plugs and unplugs, the entries will come back. But it doesn't matter. Have EFI System Partition as the first entry.

    If you have BootIt you will use ...

    BootIt UEFI instead of EFI System Partition.
     
  3. mantra

    mantra Registered Member

    Joined:
    Jan 25, 2005
    Posts:
    6,194
    Brian
    but do you know why does the uefi bios store every devices like external ssd with only data or usb stick?
    I can understand boot usb stick but every devices ,it's weird ,should add only bootable with efi

    he does not own terabyte softwares, i do , but does BootIt UEFI change the bootloader and partitions , doesn't it?
    do you think BootIt Not UEFI could work on eufi computer ? I mean could be used the mbr
    thanks
     
    Last edited: Mar 28, 2023
  4. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,175
    Location:
    NSW, Australia
    There are 2 BootIt versions. BIBM BM and BootIt UEFI. I'm using the latter version now. BIBM BM doesn't work in a UEFI system.

    In the past I've had up to ten items in Boot Option Priorities. I disable them and they gradually return. Some BIOSs are worse than others.
     
    Last edited: Mar 28, 2023
  5. mantra

    mantra Registered Member

    Joined:
    Jan 25, 2005
    Posts:
    6,194
    hi
    I would like to know what does the Bios record , I mean the device Id , or the data of efi partition or the efi bootloader data/file
    but does remove the battery clean up these entries?
    thanks Brian
     
  6. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,175
    Location:
    NSW, Australia
    mantra, we could be discussing different menus. I don't see the items you are describing.
     
  7. mantra

    mantra Registered Member

    Joined:
    Jan 25, 2005
    Posts:
    6,194
    Hi Brian
    sorry for my poor english , is there a working way to avoid these entries?
    I mean a working way to avoid the bios will store every device in the uefi ?
    I guess it's not normal add an uefi entry for non bootable device or bootable device mbr with uefi or efi
    thanks
     
  8. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,175
    Location:
    NSW, Australia
    mantra, are these entries in Boot Option Priorities?
     
  9. mantra

    mantra Registered Member

    Joined:
    Jan 25, 2005
    Posts:
    6,194
    Hi Brian
    yes they are
    Brian in the ventoy threat , you say you keep the CSM in the bios disabled
    should it work?
    thanks
     
  10. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,175
    Location:
    NSW, Australia
    mantra, I don't know how to prevent those entries from appearing. They cause no trouble. It's just a cosmetic issue. You can disable the entries but they will probably return. I have noticed if my entries exceed ten then they can't be disabled. My BIOS anyway. This can be corrected by disabling the entries in BootIt UEFI. For example...

    del uefi bootitem 0x0003

    If you have no need to boot legacy devices you can disable CSM. Then your Boot Menu will only be half the size.
     
  11. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,175
    Location:
    NSW, Australia
    My items look like this...

    PXL_20230329_202835602.jpg PXL_20230329_202858119.jpg
     
  12. Raza0007

    Raza0007 Registered Member

    Joined:
    Mar 30, 2009
    Posts:
    1,691
    Location:
    USA

    Mantra, you are talking about two different things. BIOS/UEFI boot options are different from the Windows Boot menu options.

    It is difficult to tell from you posts but I think you are asking about the random EFI entries in the boot menu. If this is true then you can remove them easily by following this process

    Open Command prompt in elevated mode (run as administrator)

    Type in bcdedit /enum
    Press Enter

    It should list all boot menu entries currently available along with their descriptions and unique identifiers.

    Carefully choose the ones you want to delete by their description entry and then use the following command to delete them by their unique identifiers. (You can just copy paste the long identifiers in command prompt)

    Type in bcdedit /delete {identifier}
    Press Enter

    This will remove the unnecessary EFI entries from your boot menu. Please make a backup before you attempt this just in case. Hopefully this will resolve your issue.
     
  13. mantra

    mantra Registered Member

    Joined:
    Jan 25, 2005
    Posts:
    6,194
    hi @Brian K
    ok , so CSM enabled is for mbr boot disk ,isn't it?
    I was sure CSM was for uefi operation system like macos
    thanks
    @Raza0007
    Hi
    well good command line but i'm talking about Bios/uefi and not windows boot entries
    about windows boot entries in past i had only a winpe for creating and restoring images
    but i like linux based iso , i guess windows can't handle linux based iso like image for linux or R-Drive Image (wonderful program mostly linux based)
    do they delete bios/Uefi entries?
    but i need to a windows with uefi partition to remove them?
    i remember i was able with ubuntu but booting as uefi
    thanks
     
  14. Raza0007

    Raza0007 Registered Member

    Joined:
    Mar 30, 2009
    Posts:
    1,691
    Location:
    USA
    Some UEFI entries are baked in with the UEFI firmware and cannot be removed. However, sometimes the UEFI firmware creates NVRAM entries of local devices and then BCDedit syncs them with the BCD data store. These later entries can be deleted. You need to follow the same process with a different first command


    Type in bcdedit /enum firmware
    Press Enter
    Type in bcdedit /delete {identifier}
    Press Enter


    You will have to be booted into Windows or booted with WinPE to use these commands. My system is UEFI based and the above commands pull the BCD store from the EFI partition. These commands should work on an MBR system, but I have no way to test it.
     
    Last edited: Mar 30, 2023
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.