I can mount the all the lines above in auto.fs via fstab without issue, and manually like this:
mount 192.168.19.101:/media/databin /mnt
Why does Autofs not perform the task?? It gives no feedback as if not active?? Is there a log i can read?
What must i do to activate Autofs on boot … or by any other means for that matter???
I have done this before … few months back … eazy peazy!!! … Why not now??
*openSUSE Leap 42.1
KDE Plasma 5.4.3, Kernel 4.1.12-1-default
Running that command clearly does something as it takes a second or two to complete … however after running there still is no entry for autofs under /etc/init.d
I thought i might manually add the ‘mount points’ under mnt to see if that does anything as autofs is clearly NOT creating the mount point that is mapped in autofs file.
However, when i try to add a directory under /mnt i get this:
I think that’s because your “auto.nfs” file gives “autofs” complete control over “/mnt”. I use “/nfsmounts” instead of “/mnt” because I want to be able to manually mount in “/mnt”.
Okay … so went through everything again … and when i ran the line ‘systemctl status autofs’, even though i get “Active running” returned … at the end of the output i got a message:
lookup_init:136: lookup(yp): map auto.master: Local domain name not set
…but when i click on the place link in Dolphin i get
The file or folder /mnt/fs-home does not exist.
and as discussed above i cannot create such a folder … apparently it is done by the system … which is not happening??
What might i be missing here???
What I think might be happening here - Since you are using autofs, the share will be ‘auto-mounted’ only when it accessed, so access the share first with
ls /mnt/fs-home
Then it should be available until the time out value (in your case 10 seconds) is reached, whereupon it will be unmounted again.
I don’t normally use Dolphin (the unix shell is my preferred file manager). However, as an experiment, I opened Dolphin.
I first clicked on the autofs directory (the equivalent of your “/mnt”). That showed me a mount point within that directory.
I next clicked on the mount point. Nothing happened. I waited a few seconds and clicked again. This time I saw the contents of the NFS mounted file system.
It looks as if Dolphin is doing a quick test for what’s there, but it is quicker than autofs, so it doesn’t see anything at first.
If I list it from the shell (with “ls”), then “ls” will wait for it to be mounted. It looks as if Dolphin is not doing that wait.
… admittedly it is not operating on /mnt … as has been pointed out that mount point is reserved for autofs … so okay, i will change the autofs mount point from /mnt to /media … see if that works!
… nope! changed auto.master to use /mynfsmount as the auto mount point … manually created it as /mynfsmount … autofs restarted … status checked ,… even rebooted … with same result!!!
Come on guys!! … it must be something very simple and basic that i am missing here !
autofs is running … nfs service is working … why is AUTOFS not responding to on demand mount requests???
… as an afterthought checked the LAN settings … the router, the NFS server and the laptop all reference the same domain of ‘home.gateway’.
What do you mean with no effect? It won’t help with accessing the NFS share, just the domain message you were getting, and in any case will only take effect when autofs is restarted.