Ubuntu – System boots straight into Windows without showing GRUB


I installed Ubuntu alongside Windows but I did not disable secure boot as someone told me it could cause problems with boot loader. So when installation finished and I rebooted, the system went straight into Windows. I went to Ubuntu IRC Support and they told me to turn off the secure boot and reinstall Ubuntu. I did that but my system still
boot into windows.

This is a picture of partitions on my system:

enter image description here

This is my first Ubuntu install on my new laptop.
I followed everdaylinux guide to install it and I used something else option.

Best Answer

Re-installing GRUB is almost certainly overkill, and carries a small risk of messing things up. Instead, try this:

  1. Boot to Windows.
  2. Open an Administrator Command Prompt window by right-clicking the Command Prompt icon and selecting the option to run it as Administrator.
  3. Type bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi
  4. Reboot.
  5. If you boot into Ubuntu but GRUB did not give you a menu or if that menu did not include Windows, type sudo update-grub in a Terminal.

That should fix it. Alternatively, instead of steps #2-3, you could try the third-party EasyUEFI, which gives you a GUI menu for rearranging EFI boot priorities. Some EFIs provide similar functionality in their setup utilities. You can also do the same thing with efibootmgr in Ubuntu, but that sometimes fails due to bugs in either efibootmgr or EFIs, and it's harder to explain than is the same procedure with bcdedit in Windows.

Related Question