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
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
i see the two volume groups.
i guess the problem is, that during bootup
is only run once, and that before the encrypted luks container is opened.
i think i have to run
again before i can mount /dev/mapper/hdd-home. where can i do this? or does anybody have another solution?
Last edited by dukeluke (2012-11-26 11:15:25)
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.
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.