While installing a new SSD to my Ubuntu server I have made the grave mistake of formatting a partition on the wrong drive. I’ve accidentally formatted the ESP partition of my HDD that contains the OS. This has lead to Ubuntu not booting at all anymore and the PC just telling me
reboot and select proper boot device.
I’ve googled all around, find posts telling me to use the Ubuntu Live usb and select “Rescue a broken system”, but those posts are all very old and neither the Ubuntu server nor normal image show me that option. I’m writing the images with Rufus as GPT so I’m able to boot the usb through UEFI. Another post mentioned selecting “reinstall ubuntu” after selecting “install ubuntu” but I don’t have that option.
I’ve tried boot repair both through Ubuntu live usb and as standalone live usb, but it returns 3 commands of which the last one fails. After I click continue it tells me grub is still present and to try again. I googled that too and they recommended editing the last command, but that didn’t work either.
Could someone point me in the right direction and tell me if this is even possible? It’s 5 am and I’ve been at this for 4 hours straight trying to get my server back up and running, hope my explanation is clear enough.