Ubuntu: Grub won't install


I'm trying to install Ubuntu to my Dell XPS. I have an existing Windows 10 install on it, which I'd prefer not to loose. I have an empty partition of about 400 Gb. However, Grub keeps failing to install. Also, the bootloader is appearantly broken now, as I can't boot from the hard disk at all at the moment.

What's I've done so far:

  1. I originally tried to install Ubuntu 16. It would always fail on the Grub install. After getting the error message and prompt with 3 options on how to proceed, the installer would crash. I read that Ubuntu 14 might get me around the issue.
  2. I booted from a Ubuntu 14 disk, and set it up to install Ubuntu 14 to the same partition that I had attempted to install Ubuntu 16 to. Grub still failed to install with the same error message. But, the installer didn't crash this time.
  3. I rebooted the machine from the Ubuntu 14 disk, loaded Ubuntu in live mode and ran boot-repair. It gave me several commands to run, but it still fails when it attempts to install Grub.

The error message I get now is:

enter image description here

Also, on the command line I saw these messages:

Installing for i386-pc platform.  grub-install: warning: attempt to read or write outside of disk `hostdisk//dev/sda'.  grub-install: error: embedding is not possible, but this is required for cross-disk install.  

Boot-repair generated this diagnostics report: http://paste.ubuntu.com/23450135/


You're using:

  • a software-RAID (never a good idea)
  • with dual boot (a bad idea)
  • installed GRUB on one of the members of the software RAID (/dev/sda) bypassing the software RAID (a terrible idea),

so now you need to:

  • Restore the software RAID boot sector first by:
    • Restoring the boot sector from your backup.
    • Reading the manual of your Software RAID as you don't specify which it is, nor does boot-repair...
  • Install GRUB on /dev/mapper/isw_caeddgafgj_ARRAY0and not on /dev/sda


This what happens if you install Linux along with the Windows 10.

Even if you manage to fix the issue now I guarantee that you will get the problem again when Windows does the infamous auto-update. That's because Windows will take over the bootloader at the time and will make your Ubuntu invisible to you.

The best suggestion I have is to use the Windows Repair Disk to bring back the windows master boot loader and then make Windows to load the Ubuntu and not the other way around.

Here's the way:

You need to restore MBR, so it boots into Windows again, not Linux, THEN add Linux.

  1. Boot from Windows installation disk
  2. Choose Repair/Startup repair
  3. Windows will restore MBR
  4. When done, reboot into Windows
  5. Install and open EasyBCD, and add Linux
  6. On reboot, you will see the good old black screen with Windows bootloader and two entries: Windows and Linux
  7. Done

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »