How to update GRUB in a dual booting disk?

I want to install Fedora (I want to use GNOME 40) with Ubuntu 20.04 on my disk. I am afraid of updating GRUB directly with update-grub in Ubuntu than in Fedora will break the bootloader. What is the right way to update the bootloader?

My Disk part table:My disk part table

4

1 Answer

Never fear! Debian (and, by extension, Ubuntu), includes os-prober in the default configuration for GRUB. That means that simply calling update-grub will update the GRUB installation, and detect any other installed operating systems. Calling it from Ubuntu shouldn't break the Fedora installation.

Note that, by default, update-grub is also called on every update of the grub package, or of the kernel. Unless you have specifically configured GRUB in an unusual way, you will probably not need to update GRUB (if GRUB is installed from Ubuntu, and not in Fedora).

You only need one GRUB install: you could have two disks, with two installs, but that unneeded. GRUB is good at booting almost any other OS: I have a dual boot windows/Debian machine, and Windows boots without ever realizing it isn't the first thing to start after POST.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like