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.