After the 2023-03-31 stable update, I haven’t been able to successfully decrypt my computer - I am able to enter the password and see “Slot 0 unlocked,” but the next screen has this message:
ERROR: device '/dev/mapper/luks-abef77a4-387a-428d-bba5-639b3dedd393' not found.
Skipping fsck.
mount: /new_root: no filesystem type specified.
You are now being dropped into an emergency shell.
sh: can't access tty: job control turned off
[rootfs]#
Over the last ~year and a half, I’ve periodically tried to fix it following the suggestions in this thread but being a beginner with Manjaro, I’m still struggling and looking for some more guided assistance in troubleshooting.
So far what I’ve done is use the live USB and enter chroot:
sudo cryptsetup luksOpen /dev/nvme0n1p2 root
*password*
sudo mount /dev/mapper/root /mnt
sudo manjaro-chroot /mnt /usr/bin/bash
I tried to follow this thread for troubleshooting - I checked /etc/default/grub to make sure GRUB_ENABLE_CRYPTODISK=y was not commented out
GNU nano 7.2 /etc/default/grub
GRUB_DEFAULT=saved
GRUB_TIMEOUT=5
GRUB_TIMEOUT_STYLE=menu
GRUB_DISTRIBUTOR="Manjaro"
GRUB_CMDLINE_LINUX_DEFAULT="quiet cryptdevice=UUID=abef77a4387a428dbba5639b3ded>
GRUB_CMDLINE_LINUX=""
# If you want to enable the save default function, uncomment the following
# line, and set GRUB_DEFAULT to saved.
GRUB_SAVEDEFAULT=true
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="cryptodisk part_gpt part_msdos"
# Uncomment to enable booting from LUKS encrypted devices
GRUB_ENABLE_CRYPTODISK=y
# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console
I also opened /boot/grub/grub.cfg to check that the UUIDs match and commented out the dashes in these 5 sections of the file:
cryptomount -u abef77a4387a428dbba5639b3dedd393
set root='cryptouuid/abef77a4387a428dbba5639b3dedd393'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='cryptouuid/abef77a4387a428dbb>
else
search --no-floppy --fs-uuid --set=root c231a719-de78-47a0-928e-31d8804b83fb
cryptomount -u abef77a4387a428dbba5639b3dedd393
set root='cryptouuid/abef77a4387a428dbba5639b3dedd393'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='cryptouuid/abef77a4387a428dbb>
else
search --no-floppy --fs-uuid --set=root c231a719-de78-47a0-928e-31d8804b83fb
fi
cryptomount -u abef77a4387a428dbba5639b3dedd393
set root='cryptouuid/abef77a4387a428dbba5639b3dedd393'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='cryptouuid/abef77a438>
else
search --no-floppy --fs-uuid --set=root c231a719-de78-47a0-928e-31d88>
fi
linux /boot/vmlinuz-5.15-x86_64 root=/dev/mapper/root ro quiet crypt>
initrd /boot/intel-ucode.img /boot/initramfs-5.15-x86_64.img
cryptomount -u abef77a4387a428dbba5639b3dedd393
set root='cryptouuid/abef77a4387a428dbba5639b3dedd393'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='cryptouuid/ab>
else
search --no-floppy --fs-uuid --set=root c231a719-de78-47a0-92>
fi
linux /boot/vmlinuz-5.15-x86_64 root=/dev/mapper/root ro qui>
initrd /boot/intel-ucode.img /boot/initramfs-5.15-x86_64.img
cryptomount -u abef77a4387a428dbba5639b3dedd393
set root='cryptouuid/abef77a4387a428dbba5639b3dedd393'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='cryptouuid/ab>
else
search --no-floppy --fs-uuid --set=root c231a719-de78-47a0-92>
fi
linux /boot/vmlinuz-5.15-x86_64 root=/dev/mapper/root ro qui>
initrd /boot/initramfs-5.15-x86_64-fallback.img
After making those updates to the grub.cfg file, I try to run sudo update-grub but get this error
[manjaro /]# sudo update-grub
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.15-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.15-x86_64.img
Found initrd fallback image: /boot/initramfs-5.15-x86_64-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
ERROR: mkdir /var/lock/dmraid
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 ...
Root filesystem isn't btrfs
If you think an error has occurred, please file a bug report at "https://github.com/Antynea/grub-btrfs"
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
Here is lsblk -f
[manjaro /]# lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
loop0
loop1
loop2
loop3
sda
`-sda1
sdb
|-sdb1
`-sdb2
nvme0n1
|-nvme0n1p1
`-nvme0n1p2
`-root 509.9G 39% /
nvme1n1
`-nvme1n1p1
Any help troubleshooting would be much appreciated!