Article 5SF68 GRUB says 'device does not exist' instead of prompting decryption for LVM on LUKS (Arch Linux install on SSD)

GRUB says 'device does not exist' instead of prompting decryption for LVM on LUKS (Arch Linux install on SSD)

by
pinguino12
from LinuxQuestions.org on (#5SF68)
Hello, I'm installing Arch Linux with LVM on LUKS encryption on my new laptop. The setup is similar to the one described in https://wiki.archlinux.org/title/Dm-...em#LVM_on_LUKS, with the only differences being that my EFI partition comes before the LUKS one, and I'm not using a separate home partition inside the LVM. I have gotten my setup working on another laptop & desktop using both UEFI and BIOS, but never tried it on an SSD until now. My new laptop uses an SSD (/dev/nvme0n1) and the setup doesn't seem to work on here even when I try to set everything up as I would normally (albeit using /dev/nvme0n1 instead of /dev/sda).

After setting up my OS as described in the Arch Wiki page, I reboot into the new system and get this error:

device /dev/vg0/root not found. Skipping fsck.
mount: /new_root: special device /dev/vg0/root does net exist

This leads me to believe the encrypt hook in my mkinitcpio is not working properly, because GRUB would be correct in being unable to find /dev/vg0/root if it hasn't decrypted /dev/nvme0n1p2 yet. Normally it would expect it to ask me for the password to do so, as it does on my other comptuers, but it does no such thing. I also tried adding the "allow-discards" option in my GRUB config in GRUB_CMDLINE_LINUX line, as I heard this may help with SSDs, but this did not change the situation.

Does anyone know what may be causing GRUB to skip / have trouble regarding the encrypt hook in my mkinitcpio.conf? Thank you in advance for any help you can provide, and please let me know what system info I should post if needed.latest?d=yIl2AUoC8zA latest?i=AbQEQhe6imc:tIls4P3nFzU:F7zBnMy latest?i=AbQEQhe6imc:tIls4P3nFzU:V_sGLiP latest?d=qj6IDK7rITs latest?i=AbQEQhe6imc:tIls4P3nFzU:gIN9vFw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments