Environment
Red Hat Enterprise Linux 6
Issue
How can I configure autofs so my mounts never timeout?
I need persistent mounts, but I can’t set them up in /etc/fstab.
Resolution
Per the man page, automount allows a timeout=0 setting to disable unmounting:
Raw
-t, —timeout
Set the global minimum timeout, in seconds, until directories are unmounted. The default
is 10 minutes. Setting the timeout to zero disables umounts completely.
This setting can be added to /etc/sysconfig/autofs to disable unmounting as well:
Raw
TIMEOUT - set the default mount timeout (default 600).​​

TIMEOUT=0

版权声明:本文为博主原创文章,未经博主允许不得转载。

Linux