Ubuntu – Make Windows the default boot option in an UEFI enabled system

dual-bootuefiwindows

I have admin rights on my Windows desktop, and I want to install Ubuntu on it, as I use Ubuntu on my desktop. However, I don't want any menu asking to select Ubuntu or something else or that it boots into Ubuntu by default. I also don't want to run it in a VM, because want to run it natively, without any performance-hogging Windows in the way.

My system is UEFI enabled and I'm afraid that it won't let me install any other OS. So basically, I need a way to dual boot a Windows 8 machine with Ubuntu, get around UEFI, and still have it boot to Windows by default.

Best Answer

You're lucky as you have UEFI. (I seriously never thought I'd ever say that lol). Ubuntu supports SecureBoot/UEFI.

Install Ubuntu as normal. It should detect the UEFI configuration.

Once it's done, boot into your BIOS configuration and change the boot order. Move Windows further up and move Ubuntu down. The UEFI system will automatically boot into Windows instead of using GRUB2.

For you to boot into Ubuntu, simply enter the BIOS settings again and use the Boot Override menu. It can also be called Select boot device... or similar.


This works because UEFI uses boot files instead of a MBR. There can be multiple bootloaders on a single drive.

A standard EFI boot partition has the following (simplified) file scheme:

EFI
|
|--> UBUNTU
|     |
|     |--> grub2.efi
|
|
|--> Windows
      |
      |--> win32.efi

The EFI bootloader is (by default) trying to do this:

 1. Check for the UBUNTU folder, and try to boot from the `grub2.efi` file.
 2. Check for the Windows folder, and try to boot from the `win32.efi` file.

You can change the order so it looks for Windows first. Once the boot succeeds, it will not continue trying to use bootable EFI files. If you set Windows first (and it works), Windows will boot without GRUB ever being seen. You can then manually override this by using the Select Boot File... option/key/decoder ring/sacrifice/UEFI setting.

Consult the documentation that came with your computer for the proper settings, keycombination, and/or the right mixture of blood. I do not know these off-hand.

Related Question