3

I had an dual boot installation with windows and ubuntu. Recently, my ubuntu installation grub failed. I tried repairing it which brought a new entry into my boot selection screen. Eventually I deleted ubuntu and installed a new version of Ubuntu which added a yet another entry into the list as shown below.

IMG:

I would like to delete both ubuntu(P2: ST1000DM003-1SB102) from the list as they belonged to the deleted ubuntu installation (boots into windows).

How do I do that since my bios settings can only disable an entry.

music2myear
  • 49,799

3 Answers3

11

The firmware usually has the option to delete entries as well, it just might not be very obvious (i.e. probably done through a separate section in Advanced, not through the usual "Boot order").

If you can boot into Linux in UEFI mode, use efibootmgr:

  • efibootmgr to list entries (or efibootmgr -v in older versions);
  • efibootmgr -b XXXX -B to delete an entry by number.

If you can boot into Windows in UEFI mode, use bcdedit:

  • bcdedit /enum firmware to list entries;
  • bcdedit /delete "{GUID}" to delete an entry by its "identifier".
grawity
  • 501,077
2

Open Command Prompt in administrator, then in that type 'bcdedit /enum firmware' this will list a load of entries, find the one that corresponds to your Ubuntu installation and copy the identifier, be careful to copy the correct identifier. Then type 'bcdedit delete {identifier}' where {identifier} is replaced by the identifier of the entry you are trying to remove.

Kate
  • 31
-2

You need to modify the entries that grub gets. Launch linux, then navigate to /etc/grub.d in that directory there should be a file that lists those entries you do not want. Either remove them, or if you are not comfortable of removing just making them non-executable. If the file for the entry is not there, then it is in one of the files and being picked up as an OS. Here is a link to help you out.

https://linuxnorth.wordpress.com/2011/03/09/grub2-revisited/

Frostalf
  • 543