I have a desktop machine with a single SSD drive in a removable caddie (not hotswap just shutdown machine and remove). I swap the drive to run different operating systems (Win 10, Endeavour etc) i recently installed Arch Linux with (XCFE 4) which also worked fine but i discovered that after i have booted with my EndeavourOS drive when i switch back to the Arch Linux drive my machine no longer thinks that the drive is bootable. Obviously Endeavour cannot have corrupted the Arch drive because it was not inserted in the machine when it was running so something must be happening with UEFI ?
I can make my Arch drive work again by booting from the Arch ISO USB and running the following commands (not sure if this is all necessary but it works):-
grub-install --target=x86_64-efi --efi=directory=/efi --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
Just to confirm that i only need to do the above with switching back to Arch after booting with the Endeavour drive, i can switch between the Win 10 and Arch drives without issues.
Thanks in advance for any advice.