Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to make autofs unmount unused filesystems?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
peter4
Guru
Guru


Joined: 19 Jul 2005
Posts: 359
Location: Wroclaw, Poland

PostPosted: Mon Jul 18, 2011 5:00 pm    Post subject: How to make autofs unmount unused filesystems? Reply with quote

Hi,

I've been using autofs for some time and I've had it set up so that it would unmount unused filesystems after 30 seconds of inactivity. It used to work, but recently I noticed that they are not getting unmounted any more. I'm guessing there was some configuration format change, but I can't find any info on that. My configuration files:

auto.master:
Code:

#                                                                                                                                                           
# Sample auto.master file                                                                                                                                   
# This is an automounter map and it has the following format                                                                                               
# key [ -mount-options-separated-by-comma ] location                                                                                                       
# For details of the format look at autofs(5).                                                                                                             
#                                                                                                                                                           
/mnt/auto       /etc/autofs/auto.misc   --timeout=30 --ghost                                                                                               
#                                                                                                                                                           
# NOTE: mounts done from a hosts map will be mounted with the                                                                                               
#       "nosuid" and "nodev" options unless the "suid" and "dev"                                                                                           
#       options are explicitly given.                                                                                                                       
#                                                                                                                                                           
#/net   -hosts                                                                                                                                             
#                                                                                                                                                           
# Include central master map if it can be found using                                                                                                       
# nsswitch sources.                                                                                                                                         
#                                                                                                                                                           
# Note that if there are entries for /net or /misc (as                                                                                                     
# above) in the included master map any keys that are the                                                                                                   
# same will not be seen as the first read key seen takes                                                                                                   
# precedence.                                                                                                                                               
#                                                                                                                                                           
+auto.master       

auto.misc:
Code:
windows         -fstype=ntfs-3g,exec    UUID=407200DF7200DC12                                                                                               
megamagazyn     -fstype=ntfs-3g,exec    LABEL=megamagazyn 
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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