Last active 3 hours ago

Revision 94ca5b675cda08e9d0316dd4857291f38d0cf046

Arch_tricks.md Raw

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

# 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