Recently I accidentally formatted boot partition (sda1,512MB) as fat32 on ubuntu 16.04 computer. I haven't turned off my computer yet so I can still use it.
I tried to use boot-repair tool to recover my boot partition but it failed. The error message is:
GPT detected. Please create a BIOS-Boot partition (>1MB, unformatted filesystem, bios_grub flag). This can be performed via tools such as Gparted. Then try again.
The BootInfo is here: https://paste2.org/WntgO8Xa
I tried to use the Gparted to format the sda1 as unformatted also setup the bios_grub flag. After I done that, the format of sda1 shown in the Gparted is unknow and I am still getting the same error from boot repair.
Anyone have idea how to fix that without reinstalling the whole system?