3

If I were to partition a /dev/sdb1, place all the needed root/home files, then go to my own /boot/efi folder and put the files there with whatever UUID I need, would it then be bootable?

  • No, because you'll also need a bootloader like grub or uboot. – mikewhatever Feb 20 at 5:33
  • I suspected it was yes, so tried & failed. I suspected I hadn't got it right, but decided it wasn't worth the effort & installed normally (so I defer to mikewhatever's prior comment) – guiverc Feb 20 at 5:38
  • Well I've got rEFInd, a USB with recovery, an empty NTFS partition and a lot of frustration. Noted on needing a bootloader, I think I can try taking it from a VM or the USB. – avisitoritseems Feb 20 at 6:01
5

Yes, the "right place" being an EFI FAT partition for the shimx64.efi and grubx64.efi bootloaders, along with the grub.cfg (all in EFI/ubuntu, and copies in /EFI/Boot with shimx64.efi renamed to bootx64.efi. Your root should be on an ext4 partition. The only UUID change needed is in the EFI partition's grub.cfg file to use the root of your system (assuming you just copied the whole EFI from another system. It's really pretty simple, and will even boot a legacy install of the root this way (not secure boot, but UEFI). Surprisingly, even the legacy /boot/grub/grub.cfg will work for a UEFI boot. You can add the /boot/efi and fstab entry for mounting the EFI, but that would only be needed if you tried to update shim/grub, (assuming you have the efi versions of the packages). I've been running a disk set up this way (legacy install, UEFI files added from another system) for years without issue. I did add the /boot/efi and fstab entry, but never bothered with the shi9m/grub efi package change.

  • Awesome. I have Linux root as ext4 and its separate boot partition as FAT32. I'm going to run a VM with NTLite, remove junk and copy it over network share to the empty partition, then copy the needed files to my /boot as well. I'll comment again if I run into any errors, thank you. – avisitoritseems Feb 20 at 6:59

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.