Hello. I have a dual boot system. Windows 10 installed first, then Fedora. UEFI GPT partitions. I let Fedora installer create the partitions for me, just made sure it used btrfs. Everything has been working perfectly for years now. This morning, my grub boot menu dissapeared. The machine just boots directly to windows. I’ve printed this article and followed the steps in the Restoring the bootloader using the Live disk section. I don’t use LUKS encryption. My boot partition should be /dev/sda5 and my root /dev/sda6. When I mounted the /dev/sda1 to /mnt/boot/efi, I verified that this efi partition had a fedora folder with a lot of files inside, so nothing seems to be missing there. Before the dnf reinstall command, I had to run this additional step: mount none -t devpts /dev/pts, otherwise it will throw pts errors on the following command. When I executed the grub2-mkconfig command, I have noticed that grub found the Windows boot, but it says nothing about fedora. I did run the final command in the guide (sync && exit) and rebooted the computer, I have entered the UEFI. I detects all of my hardware, but the boot option only detects the Windows bootloader. It gives me no other choice. I’m pretty sure it recognized the Fedora bootloader before. Now it will only boot to windows. I should add that I did no changes to my computer at all, this happened this morning out of the sudden. As far as I know, secure boot is disabled. How can I fix my Fedora boot?
Added windows
Added f40
Did you by chance upgrade windows to win11? or some other major windows update?
This sounds like windows overwrote the grub boot loader settings and now will only boot into windows.
An option that I would try first would be to boot into the bios setup menu and see if you are able to select fedora to boot first. The boot order may solve the issue. If not then the manual method with a grub update in the chroot environment is the next suggestion.
To do the chroot option you probably will need to use a live install media to boot from usb and manually mount the fedora system then use a chroot environment to update grub so the fedora boot loader takes control again.
I’m really sorry if I wasn’t clear enough in my post. I didn’t change anything in the computer. In fact, I didn’t boot into windows for like a good 2 or 3 months now. As stated in the main post, the only option I see in the UEFI BIOS is PNY (my SSD boot disk) and it says Windows boot manager right next to it. I’m pretty sure my bios recognized the Fedora boot manager some time before.
I have followed the mentioned article (every single step), including booting from usb flash drive (ventoy with only the fedora iso in it). As it is also stated in the post, the chrooted environment says it detected the windows boot loader, but it didn’t say anything about Fedora. My EFI partition seems to have all the files in there, so why my system doesn’t pick them up at boot time?
Fixed my system following this post, using efibootmgr. Thanks!
Well, today this happened again. The bios displays some info, then it boots only to windows. It seems it needs a new battery
Inexpensive and easy to replace on most systems.