Posts: 2
Joined: Sat Jan 20, 2018 9:29 am

File manager preventing autofs unmount

Fri Aug 16, 2019 3:00 am

I set up autofs to mount 2 nfs shares from a network drive. I have specified in master.auto a timeout=10 and --ghost options so that it will show in file manager so that when I click on the directory it will mount the shares. I can get it to successfully mount and unmount after 10 seconds when using command line to cd into the shares. The problem arises when I go to click on the shares in the file manager. It will properly mount the shares but it won't timeout and unmount them automatically. I do not have the same issue using this exact set up on my laptop using nemo file manager. I suspect that pcmanfm is somehow referencing the shares constantly and in turn is not allowing them to reach timeout. Has anyone else experienced this or know how to fix it?

Posts: 3305
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: File manager preventing autofs unmount

Fri Aug 16, 2019 8:29 am

10 secs seems like an awfully short polling frequency.

Perhaps the machine has opened files (e.g. for preview/thumbnail generation) or is running an indexing service to support a desktop search feature?
In this case hopefully the mounts should be allowed to unmount after a while.

“lsof” and “ps” might help discover what’s going on.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

Return to “Troubleshooting”