[lug] Automated USB Drive Backup

Charles Hutchinson chutchin at geekboi.org
Fri Oct 26 19:47:06 MDT 2007


karl horlen wrote:
>> Perhaps autofs would be appropriate here?  It does
>> have a timeout option 
>> that will unmount a volume when it has not been
>> accessed in a set time 
>> period.  For my NFS shares I have it set to unmount
>> after 2 minutes.
> 
> Where do you set that timeout?  Does it apply to a USB
> drive or just NFS?
> 

I am pretty sure it works for all of the systems that autofs can handle. 
  It is set in the /etc/auto.master file where you define which config 
files handle which type of mount and where they get mounted.

For my NFS maps I have the following line in my /etc/auto.master

/net	/etc/auto.net	--timeout=120

This tells autofs to mount nfs volumes under the /net directory and 
disconnect them after 120 seconds.  The NFS options are set in the 
/etc/auto.net file.

Charlie



More information about the LUG mailing list