peter4 Guru

Joined: 19 Jul 2005 Posts: 359 Location: Wroclaw, Poland
|
Posted: Mon Jul 18, 2011 5:00 pm Post subject: How to make autofs unmount unused filesystems? |
|
|
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 |
|
|