How to remove "Ubuntu" from Boot Menu after deleting Ubuntu partition in Windows 10 (Dual Boot)
I've successfully executed this solution below to my problem:
In BIOS, change Boot Sequence to allow booting from USB (containing Ubuntu)
In GRUB, select Try Ubuntu without installing
Once in Ubuntu, press Ctrl+Alt+T to bring up Terminal
Type
sudo efibootmgr
to list all the entries in Boot Menu. If the command doesn't exist, then dosudo apt install efibootmgr
.Find
Ubuntu
in the menu and note down its boot number e.g.1
inBoot0001
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
Open the Command Prompt (Admin) ( shown in the options image above ). Follow these commands-> Note the line after ‘#’ is just to explain the command
> diskpart
> list disk # select the primary disk
> select disk 0 # disk 0 is
> list partition # a list of partition is opened
Note-> Check which is the system partition (example partition 1 is system partition)
> select partition 1 #select the system partition
> assign letter=x #disk is now mounted in your explorer verify with (windows+E)
>exit #exit from diskpart
>x: # this would select this newly mounted disk x:
> dir # displays content
> cd efi
>dir #displays content
Note-> You can now see the OS check your Linux OS
>rd ubuntu /S #if Linux os is Ubuntu
>y #to confirm delete
You may check out my article UNINSTALL UBUNTU COMPLETELY