Ubuntu – Grub won’t install

bootdual-bootgrub2

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/

Best Answer

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.
      OR
    • 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