Tried to install Ubuntu on an external drive. Took several attempts and eventually got it installed on sdb/sdb1. Unfortunately at some point grub has also been written to the internal hard drive (SDA? I forget).
Unfortunately now I can only boot windows by inserting the Ubuntu disk and choosing windows from the boot options.
The bios reports two boot entries on the main drive (grub and windows) but while I can rearrange devices it doesn't have any function to arrange entries on a device.
If I try to boot the main drive it goes to a grub command prompt.
Trying to boot from a usb stick also fails. Either it ends up in grub or it ends up failing to find bootx64.efi but I've looked and I know that's there. (Something to investigate...)
To complicate things the ubuntu install on the external drive no longer boots properly. It gets to a try window and prompts for login but attempting to login doesn't work.
I can continue to boot off the external drive and call it advanced security :-) but I'd rather not have to. Anyone suggest how I can proceed?
(And before anyone says it, yeah I should have done a full disk backup...)
What I want to do is make a boot entry on the internal drive so it can boot without needing the boot entry on the external usb device. (I'll worry about fixing the ubuntu install later.)
The grub config on the efi partition on the main drive:
search.fs_uuid a36eccd7-fda5-49f2-b981-df13c6de6b27 root hd1,gpt2 set prefix=($root)'/boot/grub' configfile $prefix/grub.cfg
There seems to be no grub directory and no modules. I'm thinking could i edit this and add a reference to bootx64.efi? At the moment it don't have permissions.