Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Mount at login of LVM on LUKS on LVM

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
krono86
Posts: 7
Joined: 2018-03-13 10:46

Mount at login of LVM on LUKS on LVM

#1 Post by krono86 »

Hello!
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
...
When I want to close the encrypted volumes

Code: Select all

umount /mnt/encrypted1
umount /mnt/encrypted2
...
vgchange -a n encrypted-vg
cryptsetup luksClose estorage
All works fine, but I would like to mount the volumes at the user login.
I just tried using pam_mount but it seems not work with LVM on LUKS.
Thank you very much!

Ivan

krono86
Posts: 7
Joined: 2018-03-13 10:46

Re: Mount at login of LVM on LUKS on LVM

#2 Post by krono86 »

UP!

rolf3945
Posts: 7
Joined: 2009-06-11 19:29

Re: Mount at login of LVM on LUKS on LVM

#3 Post by rolf3945 »

Why LVM-luks-LVM? Is that really required?

Put the commands into a script that is called during user login. Password request will remain an issue.

Regards, rolf

krono86
Posts: 7
Joined: 2018-03-13 10:46

Re: Mount at login of LVM on LUKS on LVM

#4 Post by krono86 »

Could I manage the password using pam auth?
Thanks for reply.

Ivan

Post Reply