I have installed Fedora in Dual boot along with windows however i wanted to be able to boot into the last used OS and so, i installed GRUB Customizer a GUI tool for grub and After Restart fedora was no longer listed on GRUB. I cant get into fedora again and is there anyway to reverse this?
You could use live iso usb, and then chroot
it. Please read this Fedora Magazine. Also don’t forget to mounting /EFI/fedora
to /boot/efi
so when you inside the chroot
, you got /boot/efi/EFI/fedora
directory.
Inside chroot
, run:
# Backup your current grub.cfg file.
mv /boot/efi/EFI/fedora/grub.cfg /boot/efi/EFI/fedora/grub.cfg.bak
mv /boot/grub2/grub.cfg /boot/grub2/grub.cfg.bak
# Reinstall grub
dnf reinstall shim-* grub2-efi-* grub2-common
Exit, chroot
and run efibootmgr -v
and check you have line /File(\EFI\fedora\shimx64.efi)
as bellow.
Boot00XX Fedora HD(1,GPT,<any-gpt-number>)/File(\EFI\fedora\shimx64.efi)
Reboot, and try to booting to your installed Fedora.
1 Like