Repairing GRUB

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:

  1. Identify the EFI partition:
    First, you need to identify the EFI partition where your bootloader files should be installed. Based on the output of lsblk -f, it appears that the EFI partition is /dev/sdc1, which is a FAT32 partition.

  2. 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
    
  3. 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.

  4. Install Grub to the EFI partition:
    Now, you can install Grub to the EFI partition using the grub-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.

  5. 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.

  6. Unmount the EFI partition:
    Finally, you can unmount the EFI partition:

    sudo umount /mnt
    
  7. 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.