You are not logged in.

#1 2012-11-25 12:30:55

dukeluke
Member
Registered: 2012-11-24
Posts: 3

[SOLVED] Arch installation on unecrypted SSD, home on encrypted HDD

hey!

i have problem with my arch installation.
arch is installed on an unencrypted ssd, and i want to put home to an encrypted hdd, containing lvm.
what works so far:
i added the encrypted hdd to my crypttab file:

crypt-hdd      UUID=91004be1-6ed4-4169-874c-458c0a8eb0b8 none luks

i get prompted for the luks password on bootup, so far, so good.

but when i add an fstab entry

/dev/mapper/hdd-home	/home	ext4	rw,relatime,data=ordered	0 2

it's not able to mount the lvm logical volume hdd-home. when i run

vgscan

after a failed mount, i only see my ssd volume group.

but when i delete the line in fstab, i can boot normally, and if i run

vgscan

i see the two volume groups.

i guess the problem is, that during bootup

vgscan

and

vgchange -ay

is only run once, and that before the encrypted luks container is opened.

i think i have to run

vgchange -ay

again before i can mount /dev/mapper/hdd-home. where can i do this? or does anybody have another solution?

kr, dukeluke

Last edited by dukeluke (2012-11-26 11:15:25)

Offline

#2 2012-11-25 21:07:55

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,429

Re: [SOLVED] Arch installation on unecrypted SSD, home on encrypted HDD

There is a special service, that might do what you want: https://wiki.archlinux.org/index.php/Systemd#LVM

If that does not solve it, please state again how the lvm and crypthome on your hdd partition are setup.

Offline

#3 2012-11-26 11:14:20

dukeluke
Member
Registered: 2012-11-24
Posts: 3

Re: [SOLVED] Arch installation on unecrypted SSD, home on encrypted HDD

hey strike0!

thank you very much, it was exactly what i have been looking for.
so i just ran

systemctl enable lvm-on-crypt

and it worked.

thank you!

Offline

Board footer

Powered by FluxBB