I have a full Ubuntu install on a USB that I keep on my keyring so I can have a portable, personal computer. However I cant boot from it on UEFI machines, even if secure boot is turned off. Is there any way to make it UEFI compatible?
Asked
Active
Viewed 1,507 times
1 Answers
0
I haven't tested this but it should work. First, you have to prepare the USB drive:
- Install and launch GParted on the running OS from the USB.
- Shrink a partition to make a 200 - 400 MB space at the end (or the beginning, but not in the middle of the drive). Make a new primary partition in that space and format it as FAT32.
- Put the
espflag on it using GParted. - Mount it using terminal.
To make it EFI bootable:
- Install package
grub-efi-amd64-bin. - Run
sudo grub-install --target=x86_64-efi /dev/sdaXwhere X is the number of the FAT32 ESP partition you created earlier. - Run
sudo update-grub. It should detect and add Ubuntu to the boot menu. - Check the ESP partition. You should find a file at
/efi/ubuntu/grubx64.efi. Copy and rename this file in abootfolder so that you get/efi/boot/bootx64.efi. - Shut down, plug USB in UEFI computer and boot.
Disclaimer: it should work. I haven't tested it personally.
Cornelius
- 9,653