I installed EndeavourOS via live USB onto a partition that was previously running ubuntu 20.04.
EndeavourOS works fine, but I can’t seem to correctly boot it.
I get redirected to the grub shell and manually load the correct partition like so:
grub>ls
grub>(hd0) (hd1) ... (hd0,gpt1) (hd0,gpt2) (hd1,msdos1)...
The partition which I installed EndeavourOS is (hd0,gpt2) so I do:
grub>set root (hd0,gpt2)
grub>linux /boot/vmlinuz-linux root=/dev/sda2
grub>initrd /boot/initramfs_linux.image
grub> boot
and it boots normally into EndeavourOS. Then I try to fix my grub installation:
$ sudo grub-mkconfig -o /boot/grub/grub.cfg
$ sudo grub-install /dev/sda
And I then get this error:
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
I have tried specified the EFI partition following this answer:
$ sudo mount /dev/sda1 /mnt
$ sudo grub-install --efi-directory=/mnt
but I get this error:
Installing for x86_64-efi platform.
Could not prepare Boot variable: No space left on device
grub-install: error: efibootmgr failed to register the boot entry: Input/output error.
So I checked my /mnt folder:
$ ls /mnt/EFI
BOOT endeavouros ubuntu
$ ls /mnt/EFI/endeavouros
grubx64.efi
$ ls /mnt/EFI/ubuntu
BOOTX64.CSV fw grub.cfg grubx64.efi mmx64.efi shimx64.efi
The old ubuntu folder is still there, but I’m not sure if I should get rid of it.
This is my system (sda for EndeavourOS and sdb for windows 10)
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 111,8G 0 disk
├─sda1 8:1 0 512M 0 part /mnt
└─sda2 8:2 0 111,3G 0 part /
sdb 8:16 0 931,5G 0 disk
├─sdb1 8:17 0 831,5M 0 part
├─sdb2 8:18 0 926,6G 0 part
└─sdb3 8:19 0 4,1G 0 part
sr0 11:0 1 1024M 0 rom
Any suggestions?