Hello there,
I had dual booted fedora 40 along with windows. I wanted to have a fresh start so deleted the current fedora partition. I restarted with the fedora in my pen-drive only to see the old grub with fedora 40 entries. Assuming that the new installation will handle it and refresh the entries, I went ahead only to get an error popup with this message:
The following error occurred while installing the boot loader. The system will not be bootable. Would you like to ignore this and continue with installation?
Failed to set new efi boot target. This is most likely a kernel or firmware bug.
Now when I restart, I see that the grub boot loader has Windows option but not the Fedora 41.
Since last night I saw various posts and tried various things.
- Sorry canât link the post, canât find it. The post mentioned using bcdedit on windows to delete fedora entries and then going into system>EFI and removing the fedora folder.
I noticed that the grub.cfg was not present in either /boot/grub2/ or /boot/efi/EFI/fedora/
-
From this post, I tried reinstalling grub as grub2-common would re-create it but did not.
-
Tried updating grub using
sudo grub2-mkconfig -o /etc/grub2.cfg
but this error was shown:
/usr/sbin/grub2-probe: error: failed to get canonical path of `LiveOS_rootfs'.
Most probably because I am using the fedora through the live usb. Everything would be settled once I restart (right?) but I canât boot into fedora upon restarting.
There were other things although minor. One similar post mentioned that they erased everything and installed fedora and then windows. I am happy with this too. But since the first error mentions this being a firmware error so I am not sure if this wonât be back to haunt me after erasing everything.
I have even tried a different distro although I donât want to. I tried mint but worse things happen as I get stuck in grub terminal upon restart.
How can I fix this? Help in erasing everything would also be nice. I just want to be back to work. My poor laptop canât handle app dev from windows. I need the linux.
Thanks!