I have a EFI partition, /dev/sda1, that I was once able to install GRUB to and change the boot order with efibootmgr without issue, unfortunately now, however, I cannot I receive 'Read-only file system' errors from grub-install (specifically, when mounted to /boot/efi,
grub-install --target=x86_64-efi --efi-directory=/boot/efi /dev/sda and efibootmgr. I have tried wiping it with:
sudo mkfs.vfat /dev/sda1
but I still get this error. Specifically
grub-install --target=x86_64-efi --efi-directory=/boot/efi /dev/sda gives:
Installing for x86_64-efi platform. Could not delete variable: Read-only file system efibootmgr: ** Warning ** : Boot0002 has same label gentoo Could not prepare Boot variable: Read-only file system Installation finished. No error reported.
I saw Fix read only file system usb, but I can't wipe this disk with
wipefs I have several distros installed and set up and it'd take a while to recover from such a wipe. Oddly grub-install does still add files to /dev/sda1, it's just the boot order that cannot seem to be changed.