You are not logged in.
I've made encrypted installations of arch before but now I was facing issues. When reboot it appears.
ERROR: device '/dev/mapper/crypt/' 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 ]#
Here's my HOOKS on /etc/mkinitcpio.conf:
HOOKS=(base udev autodetect keyboard keymap modconf block encrypt filesystems fsck)
And /etc/default/grub:
GRUB_DEFAULT=0
GRUB_TIMEOUT=1
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"
GRUB_CMDLINE_LINUX="cryptdevice=UUID=ae53f7ef-739d-4748-99ce-5529980355ad:crypt root=/dev/mapper/crypt"
It is not a lvm on luks or viceversa (I said this because there are similar posts but using lvm) . It contains a /boot/efi partition and the root which is encrypted.
Offline
From the rescue prompt does /dev/disk/by-uuid/ae53f7ef-739d-4748-99ce-5529980355ad exist if not does the device node for the root storage device exist in /dev?
Offline
Yes. I typed blkid and It showed the uuid of /dev/sda2 (/dev/mapper/crypt) and because of curiosity I put /dev/disk/by-uuid/ae53f7ef-739d-4748-99ce-5529980355ad and the output was sh: /dev/disk/by-uuid/ae53f7ef-739d-4748-99ce-5529980355ad: Permission denied,
Last edited by 5h5egrtsetetg (2021-10-30 18:58:54)
Offline
What if you try mounting /dev/mapper/crypt from the rescue shell?
mount /dev/mapper/crypt /new_root
Offline
It worked but solved half of the problem. I did open /dev/mapper/crypt using cryptsetup then I used the command that you gave me and then exit.
After that I could login with my password and enter to the base install, now the thing is each time I reboot it shows the same issue so Is there a way to save the config or something like that?
Offline
I have a hunch that the initramfs you are booting from is missing the encrypt hook. Double check that your boot partition is mounted correctly and then rebuild the initramfs
# mkinitcpio -p linux
If that doesn't solve the issue then post the output of the above command plus
$ lsblk -o NAME,MOUNTPOINTS,UUID
and the contents of /boot/grub/grub.cfg (or wherever your grub config is)
Last edited by Piri (2021-10-31 13:15:20)
Offline