quick-docs/modules/ROOT/partialsdelete/2delete-proc_adding-other-operating-systems-grub2.adoc

38 lines
1.4 KiB
Text
Raw Normal View History

[[adding-other-operating-systems-grub2]]
2018-01-20 17:59:12 +00:00
= Adding other operating systems to the GRUB2 menu
2017-12-12 16:56:25 +00:00
Normally, *GRUB2* is preset to boot multiple operating systems during the Fedora installation process. If you can, it is advisable to install non-Linux operating systems first. Then, during the installation process, all those operating systems and their locations will be discovered and properly set.
Adding other records into the *GRUB2* menu only means to run `grub2-mkconfig` command to regenerate the configuration files. During this process, all operating systems known to the system will be added into the configuration. By reinstalling *GRUB2*, this configuration will be used for further boots.
2017-12-12 16:56:25 +00:00
.Before you start
* Make sure that the operating systems are on disks, connected to the system.
* You have the `os-prober` package installed.
.Procedure
. Recreate the *GRUB2* configuration file.
2017-12-12 16:56:25 +00:00
+
----
2018-01-20 17:59:12 +00:00
# grub2-mkconfig -o /boot/grub2/grub.cfg
2017-12-12 16:56:25 +00:00
----
. Install *GRUB2*.
* On UEFI systems.
+
----
# dnf reinstall shim-* grub2-efi-* grub2-common
----
* On BIOS systems, specify the disk where the bootloader should be installed.
2017-12-12 16:56:25 +00:00
+
----
2018-01-20 17:59:12 +00:00
# grub2-install /dev/sda
2017-12-12 16:56:25 +00:00
----
.More information
2018-01-20 17:59:12 +00:00
2017-12-12 16:56:25 +00:00
* The `grub2-mkconfig` command will add entries for all operating systems it can find.
2021-02-10 08:21:48 +00:00
* When problems appear, see the link:https://www.gnu.org/software/grub/manual/grub/grub.html#Multi_002dboot-manual-config[GRUB manual] to solve issues with booting secondary operating systems.
2017-12-12 16:56:25 +00:00