Recover GRUB Bootloader in Arch Linux

  • Insert and boot your Arch Linux installation media.
  • Select Arch Linux archiso x86_64 UEFI CD.
  • If you want to connect to WiFi then you can connect using # wifi-menu, but it is optional.
  • After that you need to mount the root partition of Arch Installation to /mnt.
  • To check your boot/EFI and root partitions use, # fdisk -l
  • Then mount your root partition to /mnt, # mount /dev/sda4 /mnt
  • chroot using, # arch-chroot /mnt /bin/bash
  • Then you need to mount boot partition, mount it to /boot/efi, # mount /dev/sda2/ /boot/efi
  • You can check if all are mounted using, # lsblk -l
  • Now install GRUB, # grub-install --target=x86_64-efi --efi-directory=<em>/boot/efi</em> --bootloader-id=GRUB
  • Then, generate grub.cfg, # grub-mkconfig -o /boot/grub/grub.cfg
  • Now you are done, # exit, # reboot.