Arch Guide

05. Boot setup (GRUB)

Entering the environment

Just like in the previous step, we need to temporarily change our root directory to /mnt by running:
arch-chroot /mnt /bin/bash

Skip this if you didn't exit the environment in the first place!

Installing the GRUB package

To install the GRUB package, run:
pacman -S grub

Installing GRUB to the system

For Legacy BIOS, run:
grub-install /dev/[DISK]

For UEFI, run:
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=Arch
The bootloader ID is the name of the boot entry in your BIOS, you can set it to something else if you'd like.

Changing the boot menu timeout

If you want to change the duration of how long the boot menu is displayed, edit /etc/default/grub and change the line GRUB_TIMEOUT=5 to contain the desired duration in seconds. Setting it to 0 disables it altogether.

Once that's done, run:
grub-mkconfig -o /boot/grub/grub.cfg

Next: Booting the system