After cleaning up old unnecessary disk partitions, my UEFI/hardware will not find my single and only remaining Ubuntu installation, a perfectly working newly upgraded Ubuntu 20.04 on a disk partition /dev/sda5
on disk /dev/sda
; my system will not boot that installed Ubuntu system but only enter that pre-boot BIOS/UEFI settings user interface where it does not seem to recognize any boot option at all.
As I understand it, the more modern way of booting over a UEFI enabled motherboard is to allocate a partition where grub2 will sit alongside proper configuration directing grub2 at my /dev/sda5
installed Ubuntu system. Which is arguably now missing after my cleanup of old partitions.
Space for a new partition for grub2 is not an issue: I have a ~200MB empty and contiguous unallocated disk space in my disk's partition table for that disk. I can also shrink my Ubuntu partition to get more space for a new partition if more is needed.
I have found various conflicting posts and posts answering to a very specific scenario, or to a Microsoft Windows compatibility scenario, on various stackoverflow websites (askubuntu and others) but would like to have a clean, up-to-date, UEFI oriented procedure ― for making a system boot into an existing Ubuntu system via UEFI by recreating a grub2 partition for UEFI from scratch.
In Summary
Looking for a clean scratch approach ― one based purely on a live USB Ubuntu disk and on commands/tools available on the later releases of the Ubuntu distribution, which will accomplish a UEFI compliant partition that will direct the UEFI hardware to successfully load the pre-installed Ubuntu OS partition upon boot!
What should be the cleanest series of steps, from creating a new partition for grub2 for the UEFI hardware to use, to configuring it to point to my /dev/sda5
fully operational Ubuntu?
Disk Information
as much as it matters, according to gparted the disk's partition table type is gpt.
Further Clarification Edit:
I have had no functioning UEFI partition on the same disk at the time of asking. My question assumes that one removes it and builds it from scratch: that you only have an Ubuntu OS partition on the disk and your goal is to "connect it" such that UEFI hardware will become able to boot it.