I followed this guide, i.e.
- Open the crypted boot volume
- Mount it to some helper folder (e.g.
/chroot) - Mount the efi partition inside (
/chroot/boot/efi) - Add the additional mounts described, i.e.
mount --bind /proc /chroot/proc
mount --bind /dev /chroot/dev
mount --bind /sys /chroot/sys
- Chroot with `chroot /chroot’
Then I try to fix grub following this guide, shared by @soundofthunder:
- Instead of
chroot /chroot' I usemanjaro-chroot /chroot /bin/bash` - Re-install grub with
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
- Then create the config with:
grub-mkconfig -o /boot/grub/grub.cfg
I end up at boot with message:
ERROR: device 'UUID=3e5e...' not found. Skipping fsck
mount: /new_root: can't find UUID=3ef5....
ERROR: Failed to mount UUID=3ef5...
You are no being dropped to emergency shell.
...
I use
cryptsetup -v luksOpen /dev/<dev> <mapper_name>
for opening the luks.
For completeness, I also share my crypttab and fstab:
# /etc/crypttab: mappings for encrypted partitions.
#
# Each mapped device will be created in /dev/mapper, so your /etc/fstab
# should use the /dev/mapper/<name> paths for encrypted devices.
#
# See crypttab(5) for the supported syntax.
#
# NOTE: You need not list your root (/) partition here, but it must be set up
# beforehand by the initramfs (/etc/mkinitcpio.conf). The same applies
# to encrypted swap, which should be set up with mkinitcpio-openswap
# for resume support.
#
# <name> <device> <password> <options>
#luks-794e3e8d-403e-4dcf-9547-3a021ef2f604 /dev/disk/by-uuid/794e3e8d-403e-4dcf-9547-3a021ef2f604 /crypto_keyfile.bin luks
#luks-7f38ff02-ee3b-42f0-8f2d-ebb9ba67de56 /dev/disk/by-uuid/7f38ff02-ee3b-42f0-8f2d-ebb9ba67de56 /crypto_keyfile.bin luks
#luks-919c4578-3819-48c3-b125-ed4e33881fe7 /dev/disk/by-uuid/919c4578-3819-48c3-b125-ed4e33881fe7 /crypto_keyfile.bin luks
luks-794e3e8d-403e-4dcf-9547-3a021ef2f604 UUID=794e3e8d-403e-4dcf-9547-3a021ef2f604 /crypto_keyfile.bin luks
luks-7f38ff02-ee3b-42f0-8f2d-ebb9ba67de56 UUID=7f38ff02-ee3b-42f0-8f2d-ebb9ba67de56 /crypto_keyfile.bin luks
luks-919c4578-3819-48c3-b125-ed4e33881fe7 UUID=919c4578-3819-48c3-b125-ed4e33881fe7 /crypto_keyfile.bin luks
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=CD10-10B9 /boot/efi vfat umask=0077 0 2
/dev/mapper/luks-794e3e8d-403e-4dcf-9547-3a021ef2f604 / ext4 defaults,noatime 0 1
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
/swapfile none swap defaults 0 0
/etc/fstab (END)