UBUNTU 16.04 ERROR INSTALLING GRUB

My computer has Windows 10 installed, and when I try to install Ubuntu 16.04, it does not detect Windows 10, nor does it detect Windows 10 in my partitions list.

On the final step of the installation, it shows me this error.

grub-amd64-efi

Later, I run the LiveCD in "Try Ubuntu", and I paste this command in the terminal sudo fixparts /dev/sda, and sudo fdisk -l it does not work.

Help me please.


The solution for dual boot Windows 10 and Ubuntu 16.04 is a bit tricky because it is somewhat hardware dependent.

See this link for detailed answer and general explanation. See this link for the question in case above link is invalid.

For my particular case, I have a Samsung Series 9 (2011) with Windows 10 installed. No other OS,but my Windows 10 has 4 partitions (pictured below). This PC requires F2 for setup, and no F10/F11 options for boot menu. So the only configuration change in setup is "UEFI Boot Support" which limits the possible solutions to my problem.

The solution for me was to keep my Windows 10 install, and shrink partition to make room for Ubuntu 16.04 install.

First press F2 for setup and change boot priority to make Primary SATA HDD and Windows Boot Manager last. Now it will allow me to boot into USB Live. Boot order in image is not correct so do what works for you, so it's okay if my ordering does not match your own.

Note: boot order displayed is not correct!

Use a 16.04 USB Live, and start the installation process.

Select "Something Else" when asked if you want to format whole disk in the "Installation Type" menu.

Now you are in the manual partition page for the mounted drives. I only have one drive which is called "sda"

Example of my partition scheme with boot loader on /dev/sda

Above Image Shows that I kept my Windows 10 install and made free space for the Ubuntu 16.04 which requires Ext4 file system.

After install restart, and press F2 for setup and change boot priority to have primary SATA HDD and Windows Boot Manager at the top; respectively. This was not the end, but you should try it to see if it may be for your case. I had to go a few steps further.

Went back into USB Live installation and used a tool called Boot-Repair

Redo Ubuntu 16.04 install, but change Device for boot loader installion from (pictured above):

/dev/sda

to

/dev/sda1

Restart and run Boot-Repair again with recommended option.

Final change setup boot priority to have SATA HDD and Windows Boot Manager at the top.

A combination of installing Grub and boot loader a few times allowed the installation to work, and allow Grub to be selected first.

Note in the image below that sda1 is windows recovery, and sda2 is Windows Boot Manager.

sda2 is EFI file system or Windows Boot Manager when looking at disk utility in windows.

LAST STEP: Match boot priority in setup as pictured below.

  1. SATA HDD
  2. Windows Boot Manager
  3. ubuntu (make it last)

Correct boot priority to allow Grub to boot first

Below is a picture of disk utility software output (Disk Management) to show general partition scheme with Windows 10, Ubuntu 14.04, Ubuntu 16.04, and Swap Area. All 3 OS are accessible.

Windows 10 disk management display of 3 OS win10, 14.04, and 16.04

Below is my current GRUB, and yes it is a bit messy. I did advanced option on Boot-Repair to get Windows Boot Manager to be selected automatically. Current GRUB setup is a messy layout due to multiple install attempts and use of Boot-Repair utility

Current GRUB setup with a messy layout due to multiple install attempts and use of Boot-Repair utility


I've had this issue since the beta version of ubuntu 16. I find that after the error shows up, if you reboot to the live cd and run boot-repair, the problem is fixed and ubuntu boots. To get windows booting again, all you need to do is run sudo update-grub