My HDD uses GPT. I've set my boot mode to UEFI only. My partitions are:
/dev/sda
/dev/sda1 Grub 300MiB FAT32
/dev/sda2 Linux 97.66GiB ext4
/dev/sda3 Windows 97.66GiB NTFS
/dev/sda4 Microsoft_Reserved 16MiB unknown
/dev/sda5 Data 726.13GiB NTFS
/dev/sda6 Swap 9.76GiB linux-swap
I had set up grub on /boot/efi on /dev/sda1 during the installation of Sparky linux on /dev/sda2. Everything was working fine and I could choose between Linux, its recovery, Windows 10 and BIOS from the grub menu when I set it as the first in the boot priority order.
I now replaced Sparky Linux with Solus Linux. But the problem is that grub no longer works. Booting from the grub partition gives me the following error:
error: file `/boot/grub/x64_86-efi/normal.mod` not found.
Entering rescue mode
grub rescue>
Booting into linux and doing sudo update-grub gave me:
$ sudo update-grub
Generating grub configuration file ...
Found background: /usr/share/backgrounds/splash.tga
WARNING: Failed to connect to lvmetad. Falling back to device scanning.
Found Windows Boot Manager on /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
done
but that didn't seem to fix it. My HDD currently has 3 bootloaders I think: Linux, Windows and grub, at least that's the things being shown in the boot priority menu in the BIOS.
Edit: I tried to reinstall grub and now I have two grub bootloaders, neither of them which work.
Output of lsblk:
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 300M 0 part
├─sda2 8:2 0 97.7G 0 part /
├─sda3 8:3 0 97.7G 0 part
├─sda5 8:5 0 16M 0 part
├─sda6 8:6 0 726.1G 0 part
└─sda7 8:7 0 9.8G 0 part [SWAP]
sr0 11:0 1 1024M 0 rom
I'm at a loss as to what to do to fix it. I just want to have the option to select my OS at boot.
(hd0) (hd0, gpt7) (hd0, gpt6), (hd0, gpt5) (hd0, gpt4) (hd0, gpt3) (hd0, gpt2) (hd0, gpt1) (cd0). Not sure what you mean by 'install Linux to LVs'. I use GPT, so there's no logical volumes or anything (correct me if I'm wrong) – Spikatrix Nov 10 '17 at 15:53lsin your question, please. Always include all relevant information in the question. – Faheem Mitha Nov 11 '17 at 09:46