You are not logged in.

#1 2023-05-13 14:32:18

shako
Member
Registered: 2021-11-16
Posts: 50

Encrypted btrfs: /new_root: no filesystem type specified

Hi everyone,

I am attempting an encrypted btrfs Arch Linux installation by following the guide in https://wiki.archlinux.org/title/Dm-cry … _with_swap. Problem is, I seemingly cannot get dmcrypt to decrypt my root partition the second time (with a keyfile embedded in initramfs) to actually boot the system.

To be more clear:
When I power on the machine, I get prompted for the decryption password. Once entered the password, a comforting "Slot 0 opened" appears on screen, and the GRUB menu appears, from which I can select the Arch Linux entry. But then, I get the following error:

ERROR: device '/dev/mapper/cryptroot' 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

Since the error occurs at the "second stage" of booting, I assume the initramfs generation step went fine, and I messed up my GRUB configuration file.

Relevant flags in my /etc/mkinitcpio.conf: https://pastebin.com/b5En3Yf7

And here is my /etc/default/grub: https://pastebin.com/5XtYQah2. My encrypted partition is /dev/nvme0n1p3 and is mapped to /dev/mapper/cryptroot. The UUID which appears in my GRUB configuration file is that of /dev/nvme0n1p3 (both for cryptdevice and cryptkey). I tried with the UUID of /dev/mapper/cryptroot, but it didn't work. I tried appending '--modules="part_gpt part_msdos"' to grub-mkconfig upon generating the configuration file (as suggested in the wiki), but that also didn't work. I went through the instructions provided in the wiki multiple times, and still haven't fixed the issue. May someone give me a hint? smile

Best, shako

Last edited by shako (2023-05-13 14:36:53)

Offline

Board footer

Powered by FluxBB