ai answer
The error you're encountering is "grub-install: error: cannot find a GRUB drive for /dev/sdc1. Check your device.map." This error typically occurs when the EFI System Partition (ESP) is not properly mounted or specified during the installation process. Here are some steps you can take to resolve the issue:
Check if the EFI system is mounted: Run the command mount | grep /boot/efi to see if the EFI system is mounted at /boot/efi. If it is not, try running mount | grep /dev/[efi device] to check if it is mounted elsewhere. If it is not mounted, you can mount it manually using the command mount /dev/[efi device] /mnt.
Specify the EFI directory: When running grub-install, you need to specify the EFI directory using the --efi-directory flag. If the EFI system is mounted at /boot/efi, you can run grub-install --efi-directory=/boot/efi. If it is mounted elsewhere, use the appropriate directory. For example, if it is mounted at /mnt, you would run grub-install --efi-directory=/mnt.
Update the GRUB configuration: After running grub-install, it is recommended to update the GRUB configuration using grub-mkconfig. Run grub-mkconfig -o /boot/grub/grub.cfg to update the configuration file.