Heya everyone!
I've accidentally run mkfs.fat -F 32 on an existing EFI system partition despite the warning issued here and now I can't boot into my Arch Linux Installation. Pasted below:
Warning: Only format the EFI system partition if you created it during the partitioning step. If there already was an EFI system partition on disk beforehand, reformatting it can destroy the boot loaders of other installed operating systems.
In particular, the BIOS on my motherboard doesn't detect the OS on my hard drive anymore (Linux Boot Manager of my HDD is not there anymore) and just skips to the next entry in the boot menu.
The rest of the partitions (/, /home, and swap partitions) are intact.
Full context as to why this error happened:
I was trying to clone my old HDD with my Arch Linux Installation to my new NVME using dd. I've regained the uniqueness of my partitions using:
tune2fs /dev/sdXY -U random # For ext4
mkswap -U random /dev/sdXY # For swap
EXCEPT I didn't do something similar for my boot partition (i.e., for the vfat fat32 partition) and thus my UUID for my new boot partition stayed the same. This meant that there were now two partitions with the same UUID. Naturally, in a race condition between an HDD and an NVME, the OS mounted the NVME's boot partition instead of my old HDD partition. All other partitions were mounted correctly on the same HDD, but the boot partition was mounted on the NVME.
I didn't like this very much and wanted to change my boot partition back to my old HDD boot partition, but got confused in reading instructions and ran mkfs.fat -F 32 on the NVME's boot partition, which is exactly what the warning in the ArchWiki warned against.
After booting into an Arch Live ISO and mounting the necessary partitions on my HDD, I've tried to run bootctl install and even tried to install grub, but to no avail.
I appreciate any help you smart guys can offer!