summaryrefslogtreecommitdiffstats
path: root/en-US/GRUB-reinstalling.xml
blob: d5ab1b8122a218b9e623869408751fbf6ab84660 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % BOOK_ENTITIES SYSTEM "Fedora_Multiboot_Guide.ent">
%BOOK_ENTITIES;

]>

<section id="GRUB-reinstalling">
  <title>Reinstalling GRUB</title>
  <para>
    This section describes the process for reinstalling the GRUB bootloader and recreating the configuration. Unlike legacy GRUB, which required users to manually create entries, GRUB2 will scan the system for bootable systems and automatically create the menu configuration.  There are a number of reasons to reinstall GRUB:
    <simplelist>
      <member>
        The boot menu does not include an available operating systems.
      </member>
      <member>
        The bootloader has been overwritten during installation of Windows or another operating system.
      </member>
      <member>
        You have chosen not to use <application>anaconda</application> to install grub.
      </member>
    </simplelist>
  </para>
    <section id="GRUB-reinstalling-mkconfig">
      <title>Refreshing GRUB configuration</title>
      <para>
        To recreate the GRUB configuration from a booted system, use the <command>grub2-mkconfig</command> utility. The program will scan your system and create menu entries for what it finds. You should also use <command>grub2-mkconfig</command> after customizing menu entries, a process described in <ulink linkend="GRUB-customizing" />
      </para>
      <para>
        Refresh GRUB configuration on a BIOS system:
        <screen>
          <command>grub2-mkconfig -o /boot/grub2/grub.cfg</command>
        </screen>
      </para>
      <para>
        Refresh GRUB configuration on UEFI systems:
        <screen>
          <command>
            grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
          </command>
        </screen>
      </para>
    </section>
  </section>