## Rescue a borked Grub in Arch ### Boot arch install usb - list devices with `lsblk` ### mount root drive - if LUKS: - `cryptsetup luksOpen /dev/sda2 myEncryptedVolume` - `mount /dev/mapper/myEncryptedVolume /mnt` - if BTRFS: - `mount -o subvol=@ /dev/sda2 /mnt` - if LUKS+BTRFS: - `mount -o subvol=@ /dev/mapper/myEncryptedVolume /mnt` - if vanilla: - `mount /dev/sda2 /mnt` ### mount boot drive - `mount /dev/sda1 /mnt/boot` ### Chroot and re-install grub ```bash # chroot to the root partition arch-chroot /mnt # reinstall grub grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB # generate new grub config grub-mkconfig -o /boot/grub/grub.cfg ```