1

I am relatively new to ubuntu and just installed 12.04.2 on my machine alongside the pre-installed windows 8. I created a new ext4 partition near the beginning of my disk, ran boot-repair from a live session and told it to set this new partition as the boot point and the windows efi partition as the efi boot. Now when I boot my computer, it only starts into windows. If I enter into the boot manager during startup (F9), my boot options are: OS boot Manager (loads windows), Ubuntu (loads GRUB with a choice of ubuntu or windows), Boot from EFI File, Notebook Hard Drive.

I would like to set GRUB as the default so that I do not have to enter the Boot Manager each time to load ubuntu. I ran boot-repair once more and obtained this information: http://pastebin.ubuntu.com/6097128/ . How can I correct this?

Thanks!

2
  • 1
    Go into the bios and change the boot order to Ubuntu first.
    – psusi
    Sep 12, 2013 at 18:03
  • I have no option of doing this. In BIOS I can change the boot order for USB/CD-ROM/Hard drive, but I do not think I make ubuntu boot first. Please correct me if I am wrong.
    – pushkin
    Sep 13, 2013 at 1:06

2 Answers 2

2

Try the following:

  1. Boot to Linux.
  2. Open a Terminal window.
  3. Type sudo efibootmgr -o 1,2.

In theory, this should set up Linux (Boot0001 in the efibootmgr output) as the first item in the boot list, followed by Windows (Boot0002). Unfortunately, some computers (notably many HP models) have broken EFIs that ignore this parameter. If you've got such a computer, you may need to:

  1. Re-launch Boot Repair.
  2. Select the Advanced options in Boot Repair.
  3. Check the option to back up and rename the Windows boot files.
  4. Click Apply to make the changes.

This procedure applies an ugly hack of a solution for the ugly problem of a broken EFI: It renames the Windows boot loader file and puts a copy of GRUB in its place. That way, the broken EFI will launch GRUB, thinking it's the Windows boot loader. Boot Repair will also adjust GRUB configuration to launch Windows from its new name. It's possible to do this manually; Boot Repair just makes it easier to do it.

Alternatively, you could return the computer for a refund and buy something with a less-broken EFI. In the long run, if you've got an EFI that's broken badly enough to need this second (ugly hack) solution, that's the better solution. If people accept broken firmware, manufacturers will continue to sell us broken firmware, so we'll be dealing with the same problem in the future. If we return defective products, manufacturers are more likely to take notice of the problem and fix it.

2
  • I do have an HP model, returning is not an option right now but your solution worked perfectly! I had to run boot-repair but it quickly solved the issue and now I am presented with the (somewhat ugly) GRUB on boot :)
    – pushkin
    Sep 13, 2013 at 1:22
  • If you think GRUB is ugly, you might look into my rEFInd, which is GUI and themeable.
    – Rod Smith
    Sep 13, 2013 at 3:17
0

If you use your command line for efibootmgr, it leaves the Windows bootloader in first place. Simply switch the numbers at the end of your command line for a cleaner fix, for example sudo efibootmgr -o 2,1.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .