top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

umount /mountpoint after x minutes on fedora

0 votes

I have an nfs share mounted in /etc/fstab
server:/share /mountpoint nfs re,auto,lock,inte 00

Is it possible to to have it auto umount /mountpoint,
after x minutes?

looked at man idle, man bash, man umount
Googled: "umount dir after set time"

posted May 14, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

man autofs
-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.

If you don't want to set a global timeout you can specify a different timeout for each mount

man auto.master

-t, --timeout
Set the expire timeout for map entries. This option can be used to override the global default given
either on the command line or in the configuration.

answer May 14, 2013 by anonymous
Similar Questions
+1 vote

I have a lot of problems with the nvidia proprietary driver. However nouveau is very much too slow so that I have to use the nvidia driver. They ask for logverbose option to be set to at least 6 to send bug reports. I see how I can do that for a manual start with startx, how can I do it for all normal starts? I am using F18 with KDE. I do not want to restart the X server manually each time I switch on the computer.

+1 vote

I have installed NVIDIA propriety drivers on Fedora 21. And now I wants to change the display resolution.

How can I do that?

0 votes

I have added a new service which starts a second httpd instance in fedora 19. The pid of the process is stored in /run/http-xxx directory, and my problem is that this directory disappears after each reboot.

How can I stop the system from deleting this folder in /run?

+1 vote

I am migrating from a Fedora 19 to a Fedora 20 host. I used the Fedora 20 live disk to install on the new machine. I have most things transferred over and working, but curiously I don't have any messages or mail log files in /var/log as I do in the F19 host: