Pages

Thursday 20 February 2014

Automount windows SMB shares with Autofs having folders available

I installed Autofs to auto mount windows shares from my NAS. All was described on below links:

https://help.ubuntu.com/community/Autofs

https://wiki.archlinux.org/index.php/autofs


In my case I commented out +auto.master and added this at the end:

/nfs   /etc/auto.nfs --timeout=300 --ghost

The last parameter --ghost is required to have target folders visible.

In auto.nfs I had lines for each individual share:

var -fstype=cifs,rw,username=,password=,uid=1000,iocharset=utf8 ://192.168...../var
tmp -fstype=cifs,rw,username=,password=,iocharset=utf8 ://192.168...../tmp
downloads -fstype=cifs,rw,username=,password=,iocharset=utf8 ://192.168...../Downloads
video -fstype=cifs,rw,username=,password=,iocharset=utf8 ://192.168....../video
music -fstype=cifs,rw,username=,password=,iocharset=utf8 ://192.168....../music
web -fstype=cifs,rw,username=,password=,iocharset=utf8 ://192.168....../web



No comments:

Post a Comment