Is there an update-grub equivalent for Fedora?

I just added my other physical drive with Windows 10 on it to my laptop. How do I get grub to update the EFI boot options to see the Windows OS on reboot? I want to be able to select the boot OS from the GRUB menu on my EFI laptop.

For reference update-grub is a script in Ubuntu which does many things, but for this purpose it would find the new Windows OS partition and add it to the GRUB menu entry to select on boot.

I think this will be useful: GRUB 2 - Fedora Project Wiki

1 Like

I initially saw this but was unsure of the exact steps I would need to do without breaking my current GRUB boot and rendering my laptop unbootable. In other words I lack the confidence to try this out.

Create a GRUB 2 configuration
The file /boot/efi/EFI/fedora/grub.cfg exists, so I think I can skip this step.

Create a boot menu entry

TL;DR: This should happen automatically. If it doesn’t, read on.

Again I think I can skip this.

Adding Other operating systems to the GRUB 2 menu

grub2-mkconfig will add entries for other operating systems it can find.

It mentions grub2-mkconfig but not what is needed to call it. This is the part where I am unclear, do I call it like:
$ sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

Then is it a simple reboot and all is working?

Yes, looks good! Before you reboot see if the output of mkconfig is plausible.

You could run

os-prober

before and check whether your Win install is recognized.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.