In the last days I configured on my debian system an LVM-LUKS-LVM architecture.
When I wont use the encrypted volumes I have to:
Code: Select all
cryptsetup luksOpen /dev/debian-vg/encrypted estorage
mount -t ext4 /dev/encrypted-vg/encrypted-lv1 /mnt/encrypted1
mount -t ext4 /dev/encrypted-vg/encrypted-lv2 /mnt/encrypted2
...
Code: Select all
umount /mnt/encrypted1
umount /mnt/encrypted2
...
vgchange -a n encrypted-vg
cryptsetup luksClose estorage
I just tried using pam_mount but it seems not work with LVM on LUKS.
Thank you very much!
Ivan