I was trying to remove Windows from my dual-boot setup with Fedora. After deleting the Windows partitions, I wanted to remove the Windows entry from the boot manager. However, I accidentally deleted /boot/efi/EFI instead of /boot/efi/EFI/Microsoft.
Now, I’m stuck in the BIOS with no boot options available. I do have a Fedora live USB that I can boot from. I will appreciate any help.
Boot a systemrescued USB and copy your data to external storage as a precaution.
Several tasks may be required and I will mention some important ones.
The EFI partition needs to be rebuilt which will cause the FAT signature to change.
File /etc/fstab will have to be modified to point to the changed FAT serial number.
A chroot jail process will be needed to make your system bootable again.
Unless you have done these steps a number of times, it could be very easy to end up in a bad place. However, after saving valuable data to external storage, it would just take a few minutes to do a clean Fedora install.
I don’t have any important data on my drive that I care about, but as I understand, installing Fedora from usb will fix my bootloader. Is that correct?
Since you removed windows totally and inadvertently destroyed your boot loader. The fact that you are working with an installation of fedora with no need to recover data makes the recovery blindingly simple.
Do a new clean installation and tell it to recover and use the entire disk, wiping out everything already installed.
The alternative (which could be a learning process) would be to boot to the live media, use a chroot process to switch to the installed drive environment, then reinstall all the grub and shim packages which should recover the efi partition data. It is a somewhat complex process for a new user, but can be done.
If you choose the alternative then ask for guidance in the steps to follow.