Ubuntu – How to remove “Ubuntu” from Boot Menu after deleting Ubuntu partition in Windows 10 (Dual Boot)

biosbootloaderdual-bootgrub2windows 10

I have recently installed dual-boot with Windows 10 and Ubuntu 16.04 LTS. After messing around with Ubuntu, I decided it was time for a clean re-install.

I booted back into Windows 10 and deleted the Ubuntu partition (two of them) and they were converted back to free space.

Upon reboot, I got into a black screen with Grub > command line. (Note: not Grub rescue). Not knowing what to do, I did a force shut down.

Next, I attempted to boot my machine again, this time pressing F2 to get into BIOS. I was lucky that I could change the Boot Order to get Windows Boot Manager back on top of the list, instead of Ubuntu. I successfully booted back to Windows 10.

Now, this is where my issue differs from the rest (I did some research on similar topics before posting). Now, I can boot back into Windows 10.

My goal is to remove Ubuntu and reinstall it for a clean-slate. I have already deleted the Ubuntu partitions. However, now the Ubuntu selection remains lingering in my Boot Menu. Hence, how can I remove it?

Best Answer

I've successfully executed this solution below to my problem:

  1. In BIOS, change Boot Sequence to allow booting from USB (containing Ubuntu)

  2. In GRUB, select Try Ubuntu without installing

  3. Once in Ubuntu, press Ctrl+Alt+T to bring up Terminal

  4. Type sudo efibootmgr to list all the entries in Boot Menu. If the command doesn't exist, then do sudo apt install efibootmgr.

  5. Find Ubuntu in the menu and note down its boot number e.g. 1 in Boot0001

  6. Type sudo efibootmgr -b <boot number> -B to delete the entry from Boot Menu. E.g. sudo efibootmgr -b 1 -B

-b: modify boot number -B: delete boot number

There after, all I did was to switch Windows Boot Manager back up to the top of the Boot Menu > go back to Windows 10 > Create and format hard disk partitions and extended my Windows C:\ Drive partition to merge with the free space where it came from my deleted Ubuntu drive.


Reference (with images): How to remove Ubuntu from Dual Boot