You are not logged in.

#1 2022-09-09 09:39:01

svartkanin
Member
Registered: 2021-11-20
Posts: 10

luks password invalid on boot

On a reboot of my laptop I was prompted for the luks passphrase but after entering it I received the following message

No key available with this passphrase

I have a live usb and booted from there and tried to decrypt the laptop SSD manually with

cryptsetup open /dev/nvme0n1p2 crypt
<enter passphrase>
mount /dev/mapper/crypt /mnt

and that works just fine, so the passphrase is the correct one!

At this point I've also run

arch-chroot /mnt
pacman -Syyu

just to be sure the system is up to date.
I rebooted now and tried again to boot from the laptop SSD but still the same error appears.
Does anyone know how to debug/fix this?

Last edited by svartkanin (2022-09-09 09:39:34)

Offline

#2 2022-09-09 10:26:00

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,657
Website

Re: luks password invalid on boot

From your installed system (chroot or otherwise):

$ localectl
$ cat /etc/vconsole.conf
$ grep ^HOOKS /etc/mkinitcpio.conf

Background: If you use a non-English keyboard layout and have a password containing certain special characters, "y" or "z", you need to load it before the encrypt hook:

$ grep ^HOOKS /etc/mkinitcpio.conf
HOOKS=(base systemd autodetect keyboard sd-vconsole modconf block sd-encrypt filesystems fsck)

or, if you use the default udev setup

HOOKS=(... keyboard keymap ...)

Last edited by schard (2022-09-09 10:32:32)


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#3 2022-09-09 12:02:01

svartkanin
Member
Registered: 2021-11-20
Posts: 10

Re: luks password invalid on boot

Wow I did actually have the wrong locale set :giantfacepalm:

I set it to "us" now and manged to get beyond the luks passphrase, however, now I'm faced with the following issue

Failed to mount /boot

fstab:

# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
# /dev/mapper/luksloop
UUID=782d7662-727d-4fdc-b76e-c0021a1d8e0a   /           ext4        rw,relatime 0 1
# /dev/nvme0n1p1 LABEL=ESP
UUID=75E1-B2A4          /boot       vfat        rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro   0 2

blkid

/dev/nvme0n1p1: LABEL_FATBOOT="ESP" LABEL="ESP" UUID="75E1-B2A4" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI" PARTUUID="1a7705d3-42d6-4754-88e0-c0b9fa716a8d"
/dev/nvme0n1p2: UUID="0ea87187-8db6-40ce-96fc-226cc34f417e" TYPE="crypto_LUKS" PARTLABEL="primary" PARTUUID="ff648914-5801-4b9a-9081-c1e33b083b00"
/dev/mapper/crypt: UUID="782d7662-727d-4fdc-b76e-c0021a1d8e0a" BLOCK_SIZE="4096" TYPE="ext4"

/etc/mkinitcpio.conf

HOOKS=(base udev autodetect keyboard keymap modconf block encrypt filesystems fsck)

Last edited by svartkanin (2022-09-09 13:09:19)

Offline

#4 2022-09-09 13:30:57

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,657
Website

Re: luks password invalid on boot

This is a completely different issue.

Is the directory /boot existent and empty?


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#5 2022-09-09 13:48:24

svartkanin
Member
Registered: 2021-11-20
Posts: 10

Re: luks password invalid on boot

I can mount the boot partition just fine on the liveusb and it also seems to contain all necessary files

Offline

#6 2022-09-09 18:13:38

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,657
Website

Re: luks password invalid on boot

That is not what I was asking.

# umount /boot
$ ls -la /boot

Last edited by schard (2022-09-09 18:13:59)


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

Board footer

Powered by FluxBB