I often find myself installing or reinstalling Grub. Whilst I have already have a gist with all the necessary commands, I thought that it would be worthwhile to document the process for future installations.
Find the device name of the boot partition (e.g. using
lsblk), and replace
<EFI_PARTITION> with it in the commands below.
1. Install packages.
2. Mount boot partition to
3. Install and configure Grub.
There are easier methods but I usually boot up an Arch install disk to repair the bootloader.
Mount the root partition
/ of Arch to
Change root directory. Perform steps 2 and 3 from the installation section.
After rebooting into Arch, I run steps 2 and 3 again to add the entry for Windows Boot Manager (as it doesn’t seem to detect Windows when running the commands from the install disk).
- Mounted the wrong partition
umount <path>to unmount partition
- Mount error, special device does not exist
- Ensure that the name of the device is correct