Hi all. I’ve been working on this for 3 days now and getting nowhere. I’ve been pointed in the direction of the wiki to the grub restore page and to this link about chroot-ing into an encrypted partition. I’ve also scoured the web and found some other things I found. I came up with a game plan and it didn’t work. Below is that plan in three sections: 1. my system structure. 2. my command attack list I cobbled together from multiple sources. And 3. my terminal session including errors. I’m sure I’m making some rookie mistake somewhere, but I can’t see it. Hopefully one of you kind souls can help me out.
SECTION 1
[manjaro@manjaro ~]$ lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
loop0
squash 4.0 0 100% /run/miso/
loop1
squash 4.0 0 100% /run/miso/
loop2
squash 4.0 0 100% /run/miso/
loop3
squash 4.0 0 100% /run/miso/
sda
├─sda1
│ vfat FAT32
├─sda2
│ crypto 1
└─sda3
crypto 1
sdb iso966 Jolie MANJARO_XFCE_2003
│ 2020-06-06-07-11-25-00
├─sdb1
│ iso966 Jolie MANJARO_XFCE_2003
│ 2020-06-06-07-11-25-00 0 100% /run/miso/
└─sdb2
vfat FAT12 MISO_EFI
08E4-9928
sr0
SECTION 2
su
cryptsetup open --type luks /dev/sda2 crypto
mount /dev/mapper/crypto /mnt
mount /dev/sda1 /mnt/boot
cd /mnt
mount -t proc proc /mnt/proc
mount -t sysfs sys /mnt/sys
mount -o bind /dev /mnt/dev
mount -t devpts pts /mnt/dev/pts/
chroot /mnt
sudo mount /dev/sda1 /boot/efi
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
FAIL EFI variables are not supported on this system.
exit
sudo modprobe efivarfs
chroot /mnt
mount -t efivarfs efivarfs /sys/firmware/efi/efivars
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
sudo update-grub
SECTION 3
[manjaro@manjaro ~]$ su
[manjaro manjaro]# cryptsetup open --type luks /dev/sda2 crypto
Enter passphrase for /dev/sda2:
[manjaro manjaro]# mount /dev/mapper/crypto /mnt
[manjaro manjaro]# mount /dev/sda1 /mnt/boot
[manjaro manjaro]# cd /mnt
[manjaro mnt]# mount -t proc proc /mnt/proc
[manjaro mnt]# mount -t sysfs /mnt/sys
mount: /mnt/sys: can’t find in /etc/fstab.
[manjaro mnt]# mount -t sysfs sys /mnt/sys
[manjaro mnt]# mount -o bind /dev /mnt/dev
[manjaro mnt]# mount -t devpts pts /mnt/dev/pts/
[manjaro mnt]# chroot /mnt
[manjaro /]# sudo mount /dev/sda1 /boot/efi
[manjaro /]# sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
Installing for x86_64-efi platform.
EFI variables are not supported on this system.
EFI variables are not supported on this system.
grub-install: error: efibootmgr failed to register the boot entry: No such file or directory.
[manjaro /]# exit
exit
[manjaro mnt]# sudo modprobe efivarfs
[manjaro mnt]# chroot /mnt
[manjaro /]# mount -t efivarfs efivarfs /sys/firmware/efi/efivars
[manjaro /]# sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
Installing for x86_64-efi platform.
Installation finished. No error reported.
[manjaro /]# sudo update-grub
Generating grub configuration file …
Found theme: /usr/share/grub/themes/manjaro/theme.txt
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
Adding boot menu entry for UEFI Firmware Settings …
done
[manjaro /]# exit
[manjaro mnt]#
Thanks for taking the time to look this over, and for patience.