LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2013, 03:29 PM   #1
LittleMaster
Member
 
Registered: Jun 2012
Posts: 121
Blog Entries: 1

Rep: Reputation: Disabled
How to auto unmount unused filesystem after a period of inactivity using autofs


Hi,

How to auto unmount unused filesystem after a period of inactivity using autofs in linux
 
Old 10-16-2013, 03:41 PM   #2
jason_not
Member
 
Registered: Aug 2010
Location: Beaverton, Oregon, USA
Distribution: Pfsense, Ubuntu, Centos, Fedora, Redhat, Scientfic, MacOS
Posts: 76

Rep: Reputation: 19
Hello,

I am running ubuntu 11.10. in my version the automount command (aka the running daemon) has two ways:
1) if the timeout is set to zero, then they will never unmount. in ubuntu, this value is set in /etc/defaults/autofs.
2) sending a USR1 signal to the running automount daemon will unmount all unused filesystem and keep running. (forced expire)
3) sending a TERM signal to the running automount daemon will unmount all unused filesystems and if there are no more, shutdown.

Bear in mind, if you have an unused shell prompt whose current working directory (cwd) is in one of those auto-mounted filesystems, it will not be unmounted: the file system will be "busy".

--jason
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to auto-close the terminal after a certain period of inactivity LXer Syndicated Linux News 0 06-11-2013 07:22 PM
Blank Screen after short period of inactivity SweetLou Debian 6 12-13-2006 08:45 PM
Centos - console hangs after inactivity period yuri_d Red Hat 3 09-15-2006 07:52 PM
How do I automatically logout after a period of inactivity? AshleyK Linux - Security 4 12-31-2004 10:47 PM
Log entry during period of inactivity Gavin Linux - General 1 01-14-2002 01:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration