Mailinglist Archive: opensuse-bugs (5927 mails)
|< Previous||Next >|
[Bug 671276] New: pam_mount leaves stuff in /dev/mapper and does not unmount encrypted partitions
- From: bugzilla_noreply@xxxxxxxxxx
- Date: Fri, 11 Feb 2011 13:23:49 +0000
- Message-id: <firstname.lastname@example.org/>
Summary: pam_mount leaves stuff in /dev/mapper and does not
unmount encrypted partitions
Product: openSUSE 11.4
Version: RC 1
OS/Version: SuSE Other
Priority: P5 - None
Found By: ---
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b11) Gecko/20110203
I am using a home partition that is encrypted with LUKS. A passphrase is used
to authenticate and the volume is
automaticaly mounted at login through pam_mount.
After upgrading fom oS 11.3 to oS 11.4 RC1 this does not work correct anymore.
The first login works, but when I logout and then try to login, pam_mount
prints only some error logs and does not mount
the volume again.
The reason is that the partition is not unmounted from device mapper. The
mountpoint (/dev/mapper/_dev_sda3 -> /home) is
cleaned from mtab, but _dev_sda3 is still present in /dev/mapper.
When I close the LUKS volume manually with
cryptsetup luksClose _dev_sda3
/dev/mapper is clean and I can use pam_mount again... Till the next logout.
When I mount it manually with mount.crypt and than try to unmount it with
umount.crypt, umount.crypt tells me, that it
is not mounted - but it is.
#~ mount.crypt /dev/sda3 /home
#~ umount.crypt /home
/home is not mounted (according to cmtab)
After mount.crypt /var/run/cmtab contains the information. But after using
umount.crypt cmtab is empty.
The mountpoint still is in /etc/mtab and the partition ist still correctly
I can unmount it completely manual by using umount and cryptsetup.
Steps to Reproduce:
1. Having a LUKS formatted and encryptet partition /dev/sda3, want to mount it
2. mount.crypt /dev/sda3 /home
3. Entering password, all works, partition is mounted.
4. umount.crypt /home prints /home is not mounted (according to cmtab)
Partition gets not unmounted or is still under /dev/mapper as _dev_sda3.
Partition should be unmounted completely, from /home and from
This setup was created manually in openSUSE 11.3, without YaST, and worked
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
|< Previous||Next >|