You should be able to do this via a Live Ubuntu CD.
sudo apt-get install efibootmgr
Then add to the kernel EFI support
sudo modprobe efivars
sudo efibootmgr to check your boot entries. It will return something like this:
Timeout: 2 seconds
Boot0000* Lenovo Recovery System
Boot0001* EFI Network 0 for IPv6 (B8-88-E3-84-F3-EF)
Boot0002* EFI Network 0 for IPv4 (B8-88-E3-84-F3-EF)
Boot0003* Windows Boot Manager
Boot0004* EFI USB Device (SanDisk)
Boot2001* EFI USB Device
Then delete the option you don't want. In this example, Ubuntu is entry 5. the following could be called to delete entry 5 and remove it from the BootOrder.
(CAUTION: Before executing the following command make sure you enter the correct Boot entry number)
sudo efibootmgr -b 5 -B
Further details described here: http://linux.die.net/man/8/efibootmgr
Note: as for anything that changes your bootloader, please ensure you have a good disk image that you can boot with.
Now you should also delete the
ubuntu subdirectory in the EFI partition to prevent the UEFI firmware from restoring the entry into the BootOrder.
To do that, first find your EFI partition. Run
sudo fdisk -l to see the partitions on all attached drives. The EFI partition has
EFI Partition under the Type column.
Suppose your EFI partition was
/dev/sda2, then mount it on an empty folder anywhere.
sudo mkdir /mnt/efipart
sudo mount /dev/sda2 /mnt/efipart
Now we have to find the directory
Ubuntu or any other distro's name in this partition. It is mostly under
Remove that directory and its contents by (PLEASE MAKE SURE YOU ARE DELETING THE CORRECT DIRECTORY)
sudo rm -r ubuntu.
You can do this easily using Visual BCD Editor in Windows 7/8/10.
Map EFI System drive to Z: using
mountvol z: /s
Run Visual BCD Editor and select "Store","Backup store".
a)Click on browse icon in dialog and using the explorer window select
z: drive - now you have full access to EFI System Partition (ESP).
b)Click on EFI folder to expand - you will see "Boot", "Microsoft"
and "ubuntu" folders if you have Windows and Ubuntu installed.
c) You can delete "ubuntu" directory by selecting it and pressing
- In Visual BCD Editor click on loader entry "Ubuntu" to select it and then press "Del" key to delete.
After reboot Ubuntu boot option in UEFI boot menu will be completely gone.
You could alternatively use bcdedit.exe to delete EFI boot entry for Ubuntu and use command prompt to delete "ubuntu" folder from EFI System Partition (drive z:) if you feel more comfortable with commands.
What you see is the a UEFI BIOS. Unlike the legacy BIOS, there's MBR where the bootloaders always try to overwrite each other. Instead, bootloaders are installed in the form:
The EFI partition is a small, FAT32 formatted partition usually located at the beginning of the hard drive. It stores the bootloaders for all the UEFI compatible operating systems you have installed.
Once a UEFI compatible operating system is installed, it copies the bootloader to the EFI partition and creates an entry in the NVRAM which points to the bootloader. In your case,
Windows, for example, creates an entry called "Windows Boot Manager" pointing to
So, with a UEFI BIOS, you can use its boot menu to select your operating systems, set the default operating system to boot, etc.
Also, Ubuntu 11.04's installer has a bug where it will reformat your EFI partition. So, if you have Windows installed, it will no longer boot. You'll have to install Ubuntu first, then Windows.
EDIT: One more thing :) If you want Windows to show up in the boot menu, you have to boot the install DVD in UEFI mode. There should be an option for that if you look in your BIOS settings.
Hope this helps