You are not logged in.

#1 2020-11-11 18:14:57

Dun
Member
Registered: 2014-12-28
Posts: 98

GRUB enters rescue mode after upgrade with LVM on LUKS

After an upgrade and restart GRUB was entering the rescue mode.
I followed some instructions on how to restore it but I seem to be missing something. I would like to restore it to the state where I was prompted for the password to decrypt the LUKS partition.

I don't have an EFI partition. /dev/sda1 was my boot partition and /dev/sda2 is my LUKS partition.
I booted Arch from a stick and used the following commands.

cryptsetup open /dev/sda2 home_sda2
vgchange -ay
lvscan
mkdir /mnt/archlinux
mount /dev/MyVolGroup/root /mnt/archlinux
mount -o bind /proc /mnt/archlinux/proc
mount -o bind /dev /mnt/archlinux/dev
mount -o bind /sys /mnt/archlinux/sys
chroot /mnt/archlinux /bin/bash
mount /dev/sda1 /boot
cryptdevice=UUID=/dev/sda2:cryptlvm root=/dev/MyVolGroup/root
grub-install --target=i386-pc /dev/sda
umount /boot
exit
umount -l /mnt/archlinux/
vgchange -an
cryptsetup close home_sda2

After that GRUB boots into the shell, this time not in rescue mode.

Offline

Board footer

Powered by FluxBB