Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LUKS encyrypted home partition not unmounted on logout
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
sirlark
Guru
Guru


Joined: 25 Oct 2004
Posts: 305
Location: Cape Town, South Africa

PostPosted: Mon Mar 02, 2015 1:04 pm    Post subject: LUKS encyrypted home partition not unmounted on logout Reply with quote

I followed this guide to set up an encrypted partition for my main user's home directory. I've also got encrypted swap. Everything works in so far as I login, provide a password, and can continue normally. But when I log out, and then log in as root on a text console my home partition is still mounted and readable

Code:

root@volundr ~ # mount
...
/dev/mapper/_dev_sdb1 on /home/sirlark type ext4 (rw,helper=crypt)
...
root@volundr ~ # umount /home/sirlark
No vfsmount found while searching for "/home/sirlark" as a container file, or as a mountpoint. (According to the intersection of cmtab (/run/cmtab) with smtabs)
root@volundr ~ # cryptsetup close _dev_sdb1
device-mapper: remove ioctl on _dev_sdb1 failed: Device or resource busy
<repeats numerous times>
Device _dev_sdb1 is still in use.
root@volundr ~ # lsof | grep /home/sirlark


If I login to my normal user via a text console, and logout again, lsof tells me that some gnome-keyring files are still in use, but not if I login via lightdm

Any idea how I could track down what is blocking the unmount?
_________________
Adopt an unanswered post today
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1537
Location: Germany

PostPosted: Mon Mar 02, 2015 2:03 pm    Post subject: Reply with quote

I've seen that in the early days I started with LUKS some years ago but never seen recently.
Have you tried..
Code:
<logout wait="microseconds" hup="yes/no" term="yes/no" kill="yes/no" />

_________________
ppc:PowerBook5,8 15"(1440)-G4/1.67,2G|amd64:HP EliteBook 8560w,i7-2620M,16G|amd64:Acer Z5610 (Core2QuadQ8200),8G|amd64-prefix:OpenSuse
Lila-Theme
Back to top
View user's profile Send private message
sirlark
Guru
Guru


Joined: 25 Oct 2004
Posts: 305
Location: Cape Town, South Africa

PostPosted: Mon Mar 02, 2015 3:39 pm    Post subject: Reply with quote

Yeah, I've tried 500 microseconds, and yes on all. The issue seems to be that it can't find the mount point (even manually)
_________________
Adopt an unanswered post today
Back to top
View user's profile Send private message
sirlark
Guru
Guru


Joined: 25 Oct 2004
Posts: 305
Location: Cape Town, South Africa

PostPosted: Mon Mar 02, 2015 4:48 pm    Post subject: Reply with quote

These two links seem to be relevant

http://forums.debian.net/viewtopic.php?t=77599
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=666891

I'm going to try playing with pam_mount.conf.xml to get it to make an additional call to cryptsetup LuksClose
_________________
Adopt an unanswered post today
Back to top
View user's profile Send private message
sirlark
Guru
Guru


Joined: 25 Oct 2004
Posts: 305
Location: Cape Town, South Africa

PostPosted: Thu Jun 11, 2015 1:57 pm    Post subject: Reply with quote

which doesn't work either :(
_________________
Adopt an unanswered post today
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Fri Jun 12, 2015 7:01 am    Post subject: Reply with quote

ever thought of using sync before unmounting?
Back to top
View user's profile Send private message
b52_
n00b
n00b


Joined: 14 Nov 2003
Posts: 50
Location: Germany

PostPosted: Tue Nov 24, 2015 12:10 am    Post subject: Reply with quote

Did you solve this issue anyhow?

Same problem here. If I su to this user in a shell and logout again, the home folder gets unmounted as expected. But after login and logout with lightdm the home folder stays mounted and I am even as root not able to umount it:
Code:
No vfsmount found while searching for "..." as a container file, or as a mountpoint. (According to the intersection of cmtab (/run/cmtab) with smtabs)

lsof says no open files for this user...
_________________
May the source be with you!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum