Basically, I have fedora on a partition. I made another partition and installed windows 10 on it. Now, the grub menu has disappeared and I cannot log into fedora!
Solutions I tried but failed:
I ran this into cmd: bcdedit /set {bootmrg} \EFI\fedora\grubx64.efi
Pretty sure that you have to boot a live ISO to get access and then restore GRUB. Windows is a virus that will take over your computer. When I Googled the title of this thread there was AI info. Donât know if it is correctâŚ
Give Google a try⌠Google the exact title of this thread and you should get something like thisâŚ
Error: failed to get canonical path of âLivesOS_rootfsâ
Also, I tried to mount /boot/efi (which in my case is /dev/sda1) onto the live usb and found out that /boot/efi/EFI/fedora/grubx64.efi actually exists, so I donât know what exactly is wrong with mh device tbh but I HATE windows for what itâs doing
This happened to me with both Windows 10 and 11 on Dell systems. I was able to use Dellâs UEFI to repair the corrupted entries for Fedora by comparing with the other system.
No, the EFI settings belong to the computer (specifically the BIOSâs NVRAM), not to the OS (Live ISO or otherwise). Any OS (live or not) running on that computer should produce the same result.
I havenât seen that error message before though, so thatâs puzzling.
Does sudo efibootmgr do anything different?
Have you definitely booted the live ISO in EFI mode? (i.e. âCompatibility Modeâ or similar in the BIOS settings should be turned off)
My computerâs bios is pretty basic so there arenât any options for âcompatibility modeâ. Also, yes, I have just tried using sudo and had the same error
You could try the guide to reinstall GRUB using the live ISO, though Iâm wondering if this will fail at step 9 if there are problems accessing the EFI variables on your system.
That command is for BTRFS, but the error message says your partition is formatted as ext4.
Two possibilities I can think of:
Is /dev/sda2 the root partition of your Fedora install, or is it actually the /boot partition? Normally a fresh install would have /dev/sda1 as the EFI partition, /dev/sda2 as the boot partition, and /dev/sda3 as root. If so, then modify the command to use /dev/sda3.
If /dev/sda2 really is the root partition, did you format it as EXT4 rather than the default BTRFS during the install? If you donât know, the answer is probably ânoâ. But if itâs âyesâ, the mount it using sudo mount /dev/sda2 /mnt.
Even though the problem has been solved, hereâs a little tip.
Windows always does this with other existing operating systems, so for dual-boot setups, always:
Install Windows.
Then install Linux.
I used to have dual-boot setups for a while and never had any problems with this approach (in terms of installation; this does not refer to Windows itself as a problem).
And hereâs another tip:
Whatever you need Windows for, check out âWinboat.â (winboat.app)
Itâs still version 0.9, but itâs fully functional for my purposes, including USB passthrough if you use Docker instead of Podman (but this is also coming for Podman they say).
And the setup doesnât require any special knowledge; it was super easy to install.