autofs doesnt mount my Windows Share (Ubuntu 16.04 LTS)
Hello,
I'm trying to mount a windows share folder from a Win10 PC in my network to a directory in my linux server. If I do Code:
mount -t cifs -o username=guest,password=guest,vers=3.0 //192.168.1.107/ulark mnt/ulark So i tried autofs My auto.master: Code:
# Code:
ulark -fstype=cifs,rw,username=guest,password=guest,file_mode=0777,dir_mode=0777,vers=3.0 ://192.168.1.107/ulark |
Quote:
See for examples instructions at https://help.ubuntu.com/community/NFSv4Howto, in the NFSv4 Client paragraph. Regarding your AutoFS problem, I don't have a solution, but if I were you I would be looking for AutoFS log files in Ubuntu. Perhaps in the systemd journal? |
Forgot to mention, that previously i tried _netdev.
My fstab mounting line: Code:
//192.168.1.107/ulark /mnt/ulark cifs _netdev,username=guest,password=guest,vers=3.0 0 0 Google searches said that _netdev only works for nfs, not cifs. (I think they differ, no?) Sorry if I miss out on something obvious, mostly started looking up mounting 4 days ago, so i don't fully understand the principle of how it works. |
I don't see anything obviously wrong with your configuration files. The share will not mount until you access the /mnt/ulark directory.
Did you start / enable autofs? sudo service autofs start sudo update-rc.d autofs defaults |
All times are GMT -5. The time now is 03:09 AM. |