You are not logged in.

#1 2016-10-10 12:15:12

radagast8
Member
Registered: 2016-10-09
Posts: 6

[part-solved] LVM on luks GRUB issues

hello!

I have recently gone through the steps described in the installation manual, all fine except GRUB. i used the lvm on luks appendice.

my setup is as follows:
/dev/sda1 - /boot - 256M ext4
/dev/sda2 - luks partition containing lvm - 220G
/dev/sda3 - /boot/efi (added afterwards, oops!) - 256M vfat

lvm is as follows:
lvm - /dev/mapper/vol - 220G
/root - /dev/mapper/vol-root - 64G btrfs
/home - /dev/mapper/vol-home 100%FREE xfs
/swap - /dev/mapper/vol-swap - 16G

in the appendice it mentions giving the bootloader the line: (i have used the uuid but for simplicity's sake here i will use device names)

cryptdevice=/dev/sda2:lvm

for GRUB, it seems i need to put this in the /etc/defaults/grub file inside GRUB_CMDLINE_LINUX="..."

I have done this, and when i run grub-install, it goes through with no errors.

so i boot up, i am greeted by a lovely grub boot splash displaying arch linux, it shows "running version 231", then i am met with the following error:

error: cannot find /dev/mapper/vol-root etc etc.

how do i get the bootloader to prompt for a password to unlock the /dev/sda2 volume before trying to boot anyway?

--update--

i realised that i forgot to add the encrypt and lvm2 tags to the initcpio.conf file, after doing this i am met with the same error, but in the fallback shell i am able to run the command cryptsetup ... command to decrypt the disk, and i am able to boot without the live cd!! hoorah!!

now, any idea on how to get grub to prompt me for the password?

Thank you very much!

Last edited by radagast8 (2016-10-10 19:24:31)

Offline

#2 2016-10-10 19:24:44

radagast8
Member
Registered: 2016-10-09
Posts: 6

Re: [part-solved] LVM on luks GRUB issues

bump

Offline

#3 2016-10-10 20:27:24

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,612

Re: [part-solved] LVM on luks GRUB issues


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2016-10-10 21:02:56

radagast8
Member
Registered: 2016-10-09
Posts: 6

Re: [part-solved] LVM on luks GRUB issues

thank you mate, i will bear it in mind. i love your signature quotes by the way!

Offline

#5 2016-10-10 21:09:19

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,612

Re: [part-solved] LVM on luks GRUB issues

Thanks.   BTW, I don't use LVM so I've no idea how to start.  There is nothing wrong with bringing attention back to a thread, we just ask that, rather than bumping, you provide more information -- what you have tried, what you have read -- asking if there is any more information that might be useful, etc...   Something to try to move the thread off of top dead center rather than just an empty post. 

Oh, and welcome to Atch Linux smile


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB