recreation of corrupted EFI system partition

utku

New Member
Joined
Jun 23, 2022
Messages
3
Reaction score
0
Credits
36
Hello mates,

For those who can help, I will add detailed information below, but in summary, I have unfortunately corrupted the EFI System Partition of my laptop. What are my chances of fixing it?

Here I am attaching the picture of the score layout that is still available at the moment:
The 100MB area in this picture above seems to be flagged as bios_grub, but this is not true. I tried to format that part by doing Flag like this, it didn't accept. Normally, the Flag part is blank.

Windows 10 is installed on C Drive. The linux installed in the last partition (#6) was unusable. Because a long time ago, the boot selection screen turned into grub2win and linux was removed from the options, in a way that I did not understand how. Now I wanted to re-install AntiX and ubuntu linux. I wanted to install AntiX on partition 6 by formatting EFI System partition. At this stage, after the EFI is formatted, the linux installation is left unfinished. Now neither windows opens nor linux is opened/installed.

At the moment I am sharing the picture of the current splash screen of the computer:

None of these options above lead anywhere and when I try, the computer restarts and returns to the same screen.

As I understand it, there are normally two options available:
BIOS-MB + MBR or
EFI-MB + GPT

I think my hd has gpt and when I tried to change it to mbr, there was an incompatibility.

In short, how do I open my current windows and how can I install my new AntiX and ubuntu? Is there a way to do this? I would be glad if you help.

Respects,

utku.
 


dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,380
Reaction score
1,008
Credits
8,451
GPT runs under Legacy BIOS and DOS runs UEFI just fine. Not sure how that myth got started.
But if you think about it, most Windows systems with UEFI, have DOS type partitions. (Maybe windows 10 and 11 are different).
If you are installing this all on a single hard drive, then everything will have to be EFI. The reason you will need GPT, is the
size of the drive or the number of partitions you need.

Rebuilding your grub and initramfs are fairly easy, but if your directory structure is hosed, then a rebuild might be easier.

You can try...
sudo update-initramfs

The second command is slightly trickier.
sudo grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg.

Almost every distro has a slightly different path.
I assume Ubuntu is /boot/efi/EFI/ubuntu/grub.cfg
 

Fanboi

Well-Known Member
Joined
Apr 16, 2021
Messages
438
Reaction score
345
Credits
5,343
[...] in summary, I have unfortunately corrupted the EFI System Partition of my laptop. What are my chances of fixing it?
[...]
In short, how do I open my current windows and how can I install my new AntiX and ubuntu? Is there a way to do this?
If you are going to (re)install Ubuntu and AntiX, then you don't need to fix anything. The installers will sort it all out, including Windows, so just run the installs (I suggest installing AntiX last coz it has a great default GRUB menu pre-configured) and when you reboot, it'll magically be fixed.

That said, for edicational purppses, if I were you and had the time, I'd still try to repair it as a learning exercise. It will better your understanding of the system, not just Linux (I learned of a firmware bug in Dell Inspiron 3k-series this way, for example). Anyway, there's my 2cents.
 
OP
U

utku

New Member
Joined
Jun 23, 2022
Messages
3
Reaction score
0
Credits
36
If you are going to (re)install Ubuntu and AntiX, then you don't need to fix anything. The installers will sort it all out, including Windows, so just run the installs (I suggest installing AntiX last coz it has a great default GRUB menu pre-configured) and when you reboot, it'll magically be fixed.

That said, for edicational purppses, if I were you and had the time, I'd still try to repair it as a learning exercise. It will better your understanding of the system, not just Linux (I learned of a firmware bug in Dell Inspiron 3k-series this way, for example). Anyway, there's my 2cents.
well I again installed ubuntu with creating new partitions as below:


Looks like everythin is perfect. After installation, it still opens with that screen and non of the options arrive anywhere:

:(
Any idea?
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Staff online

Members online


Top