Recently I think I deleted some important Ubuntu files because of using the wrong flag for sudo rm
commands which may have caused it to delete some key files rendering it unable to boot.
So, I created a live USB of Ubuntu 20.04 LTS
which was the OS on my system in an attempt to repair the damage by "reinstalling Ubuntu while keeping maximum files and software"
However whenever I try to get it to install itself, it gets me this error:-
The partition table format in use on your disk requires you to create a separate partition for boot loader code..... partition should be marked as a "Reserved BIOS boot area" and should be atleast 1Mb.
Ans then gives me the warning not to continue lest I want my system to fail. So I am confused why it is asking me to do such thing as all it has to do is to overwrite whatever partitions were there before. This is how it looks like:-
Device Size Mount Point System
------ ----- ------------ ------
/dev/sda
free space 1Mb
/dev/sda1 (type=fat32) 536Mb /boot/efi
/dev/sda2 (type=ext4) 999665Mb / Ubuntu 20.04 LTS
free space 0Mb
I do not understand how the guides online have shown to do this. I am afraid of further crashing my system or not having it boot at all. Can anyone advise/show me how to create the partition the error requested?
Also, why doesn't it simply overwrite the existing partitions as they already exist? Note that I do not want to Dual boot, only to repair my damaged OS. UPDATE:- I tried booting the live USB in UEFI mode as suggested below, but there another error crops up advising me this:
No EFI System Partition found. This system will likely not be able to boot successfully, and the installation process may fail. Please go back and add an EFI system Partition, or continue at your own risk.