LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 11-29-2021, 05:13 AM   #1
pinguino12
LQ Newbie
 
Registered: Aug 2020
Posts: 9

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


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.
 
Old 11-29-2021, 08:10 PM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,368

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
post the following of the arch installation.
/etc/mkinitcpio.conf
lsblk -f
grub.cfg
 
1 members found this post helpful.
Old 12-01-2021, 02:22 AM   #3
pinguino12
LQ Newbie
 
Registered: Aug 2020
Posts: 9

Original Poster
Rep: Reputation: Disabled
I re-did my steps to obtain those 3 files for you, and to my surprise, my system seems to be working now. I can only guess that maybe I was missing a dependency or made a careless typo. A bit anti-climatic, I know. In any case, thank you so much for reaching out to help!
 
Old 12-01-2021, 02:58 AM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,368

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
No problem
 
  


Reply

Tags
arch linux, grub, luks, lvm2, nvme



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Uefi and full disk encryption with lvm on luks with luks keyfile lancsuk Slackware 2 04-02-2021 02:43 PM
courier-imap (running on arch linux) using mailx (also on arch linux pc) 'imap error: mailbox does not exist, or is not subscribed to' lilmike Linux - Server 1 11-10-2016 02:43 AM
[SOLVED] Slackware64 14.2 with RAID+LUKS+LVM asks me twice decryption password at boot dmslack Slackware 9 07-22-2016 01:39 AM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
After reboot, mount says "special device *LVM* does not exist" mahmoodn Linux - Server 5 04-27-2013 08:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 01:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration