I have some NFS4 shares mounted via autofs.
E.g. /mnt/autofs/MyPictures
When I navigate in this directory, e.g., going to /mnt/autofs/MyPictures/2017-01/partyWithHugh, after some time, Nautilus shows again the root folder (/mnt/autofs/MyPictures).
Why is that and how can I prevent this?
$ nautilus --version
GNOME nautilus 3.26.0
$ less /etc/auto.master
+auto.master
/mnt/autofs /etc/auto.nfs --ghost
$ less /etc/auto.nfs
MyPictures -fstype=nfs4,rw,soft,intr,async,noatime 192.168.0.107:/MyPictures
auto.masteradd the option-t 0to the line/mnt/autofs; this will disable expiration of the mount. Or change to some othervalue (in seconds; seeman auto.master. And you should move the line+auto.masterto the end of the file (well, it really doesn't matter, as you won't use NIS, do you?). – ridgy Dec 31 '17 at 13:03auto.masterentry is the expiration timeout, what means that after having being idle for that seconds (i.e., no access to the mounted share) there is an automaticunmount. This has nothing to do with the availability of the server; if the server dies before theexpiration timeout, the attempt to access the share will as well hang the program. To avoid this (as far as possible), you might have to use appropriate NFS options inauto.nfs. The _ expiration timeout_ is just used to save ressources (network and server) if the mount is no longer used. – ridgy Jan 03 '18 at 11:51ln -s /mnt/autofs/MyPictures/ .. If you access that from Nautilus, the automount should take place and not fall back (well, this is just my experience). – ridgy Jan 03 '18 at 11:57soft,intr,async,noatime). – kerner1000 Jan 03 '18 at 13:08