It looks like you are trying to repair their Grub bootloader on EndeavourOS but you are encountering an error related to the EFI directory. To fix this issue, you can follow these steps:
-
Identify the EFI partition:
First, you need to identify the EFI partition where your bootloader files should be installed. Based on the output oflsblk -f
, it appears that the EFI partition is/dev/sdc1
, which is a FAT32 partition. -
Mount the EFI partition:
If the EFI partition is not already mounted, you should mount it to a temporary location. You can do this by running the following command:sudo mount /dev/sdc1 /mnt
-
Chroot into your system:
Since you mentioned that you’ve already chrooted into your system, you can skip this step if you’re already in the chroot environment. -
Install Grub to the EFI partition:
Now, you can install Grub to the EFI partition using thegrub-install
command. Make sure to specify the target directory as the mounted EFI partition. In this case, it would be:grub-install --target=x86_64-efi --efi-directory=/mnt --bootloader-id=endeavouros
Replace
/mnt
with the actual mount point of your EFI partition if it’s different. -
Update the Grub configuration:
After successfully installing Grub, you should update the Grub configuration by running:grub-mkconfig -o /boot/grub/grub.cfg
This command will generate a new Grub configuration file.
-
Unmount the EFI partition:
Finally, you can unmount the EFI partition:sudo umount /mnt
-
Reboot your system:
Once you’ve completed these steps, you can reboot your system to see if Grub is working correctly.
These steps should help you repair your Grub bootloader and resolve the “cannot find EFI directory” error. Make sure to double-check the device paths and mount points to match your system’s configuration.