Ubuntu – Install GRUB on a different partition on triple boot system


I have two SSDs.The first one has Ubuntu 14.04 LTS and Windows 8.1 Pro.The second one has Kali Linux installed.Since I installed Kali Linux after Ubuntu and Windows 8.1 Pro it's bootloader now is in use.The problem is when I remove the second SSD I am not able to boot on the operating systems of the first SSD,because grub can't find the second SSD and grub-rescue launches instead.Is it possible somehow to make this triple boot system able to work even when the second SSD is missing?

I tried grub-install /dev/sda1 (sda1 is the partition in which Ubuntu is installed) but I get an error which says:

attempting to install grub to a partitionless disk or to a partition. this is a BAD IDEA.

I tried also grub-install /dev/sda which didn't gave any errors or warnings but when I tested it by removing the second SSD grub-rescue launched again for the same aforementioned reason.

I tried grub-install --force /dev/sda , grub-install --force /dev/sda1 , grub-setup /dev/sda , grub-setup /dev/sda1 , grub-setup --force /dev/sda1 , grub-setup --force /dev/sda but with no luck.

Best Answer

  • Boot-Repair is one of the easier ways to install or repair install of grub2's boot loader (or Windows) to MBR. For BIOS based systems, but Boot-Repair can also work on UEFI based systems also.


    But if you have more than one drive and different operating systems in each drive best not to use Auto-Repair. Auto-Repair will install one grub to every MBR. Better to keep each operating system and its boot loader on separate drives, so each drive could be booted without the other.

    Use Advanced options, choose operating system, and choose which drive to install boot loader into.

  • Related Question