Clear up the obsolete BIOS boot menu entries

Obsolete entries in the UEFI/EFI selection list of your bootmenu? Here is the cure!

A BIOS has some NAND ram where it stores information about all those bootloaders. Often forgetting to delete it when you remove a system. To purge this list we will use a special utility for that. In Linux, that is efibootmgr, but as currently I don’t have Ubuntu installed, we’ll use Windows. In Windows the utility is called bcedit.exe

Run it with this command.

bcdedit /enum firmware

It will produce a list of all entries in the BCD store. Export the list

bcdedit /export newbcd

and make a backup copy just in case.

copy newbcd bcdbackup

Now copy and paste the IDs of the unused entries and delete them one at a time by this command.

bcdedit /store newbcd /delete {identifier}

After you removed all unwanted, save the file with this command.

bcdedit /import newbcd /clean

That’s it.