repairing grub ed

On Manjaro/Arch 2021

boot into live USB stick

find partitions
lsblk

create system
mkdir a
mount /dev/XROOT a
mount /dev/XEFI a/boot/efi
mount -o bind /dev a/dev
mount -o bind /sys a/sys
mount -o bind /proc a/proc
mount -o bind /sys/firmware/efi/efivars a/sys/firmware/efi/efivars

go into system
chroot a

# test efivars
ls /sys/firmware/efi/efivars

install into /boot/efi/EFI/Manjaro
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Manjaro
update-grub

Categories: Computer