Grub

From XennisWiki
Jump to: navigation, search

GNU GRUB (short for GNU GRand Unified Bootloader) is a boot loader package from the GNU Project. GRUB is the reference implementation of the Free Software Foundation's Multiboot Specification, which provides a user the choice to boot one of multiple operating systems installed on a computer or select a specific kernel configuration available on a particular operating system's partitions. (Wikipedia)

Installation

Further information: GRUB

BIOS systems

Install the required package

  • Arch Linux: pacman -S grub

Install the boot loader

grup-install --target=i386-pc /dev/sda

Optional: Copy the local (in this case en for English)

cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo

Next generate the configuration file.

UEFI systems

Install the required package

  • Arch Linux: pacman -S grub efibootmgr

Required steps

Configuration

Generate (or update) the configuration file

Optional: Install the os-prober package. Otherweise grub-mkconfig won't search for other installed systems:

  • Arch Linux: pacman -S os-prober

Generate (or update) the configuration file (on Debian system a shortcut is update-grub)

grub-mkconfig -o /boot/grub/grub.cfg

Change timeout

Open the /etc/default/grub file and set for instance GRUB_TIMEOUT=5 for a timeout after 5 seconds. Next generate the configuration file.

Tips

List other operating systems

os-prober

Problems and errors

Windows Loader or other Linux OS not detected

Solution

Install os-prober and update the configuration.

External links