UEFI Boot – Installing Ubuntu on Windows 8.1 with UEFI and Legacy Mode

bootdual-bootgrub-legacyuefiwindows 8

I followed this Askubuntu Post to install Ubuntu as dual-boot with Windows 8.1 pre-installed as(UEFI),but I am not able to dual-boot and tried Boot-Repair

  1. I first burned an Ubuntu ISO on a blank DVD-R to create the LiveCD.
  2. Even with secure boot disabled, when I tried restarting my computer, it never booted to the installation screen, and it just skipped to Windows.
  3. After a lot of skimming, I thought I had to put my computer in Legacy Mode in order to get give my CD/ROM drive priority.
  4. I installed Ubuntu and used my existing EFI partition.
  5. Ubuntu works, but Windows doesn't, probably because my laptop is stuck in Legacy Mode.
  6. I tried switching back to UEFI using boot-repair on the Linux Terminal, and going into Advanced Properties -> Grub Location -> Ticking the checkbox for EFI, but it says I need to be in an EFI session, and now I'm just really lost and confused at what I've all done.
  7. I can see my Windows8.1 OS on a partition but I want to dual-boot Windows 8.1 along with Ubuntu?

Did I just brick my computer?

Best Answer

Enabling BIOS/CSM/legacy support was a mistake. You now have Windows installed in EFI mode and Linux installed in BIOS mode. Most computers make it difficult to switch from one boot mode to the other, so such mixed-mode installations are difficult to manage.

To fix it, install an EFI boot loader for Linux. As detailed on the page to which I've just linked, several are available; but as part of the normal process of EFI boot loader installation requires that you be booted in EFI mode, you can't do this from your current Ubuntu installation -- at least, not without jumping through some extra hoops. There are several ways around this, one of which is:

  1. Download the USB flash drive or CD-R version of my rEFInd boot manager.
  2. Prepare a USB flash drive or CD-R from the downloaded image.
  3. Boot the rEFInd medium you've just prepared. This may require using your firmware's built-in boot manager or going into the setup utility and disabling BIOS/CSM/legacy support. If you use the boot manager and see two entries for your boot medium, select the one with "UEFI" in the description string.
  4. In rEFInd, you should see an entry for Windows and one or more entries to boot Linux kernels. Select one of the latter and Ubuntu should start. Note, however, that if you used a separate /boot partition, you'll need to hit F2 or Insert twice, rather than Enter, to launch Ubuntu. When you do this, a simple line editor will open, in which you must enter a root= specification pointing your kernel to your root filesystem.
  5. In Linux, install the boot loader of your choice. Two relatively easy ways to do this are:
    • Install the rEFInd Debian package or PPA, as described on the rEFInd page. This will set up rEFInd as your default boot program.
    • Run Boot Repair again. This should install the EFI version of GRUB. Note that this path leaves more to chance than the preceding one; at this point you really don't know that the way Boot Repair sets things up will work, whereas you know that rEFInd will boot Ubuntu.
Related Question