I'm trying to automount a sambashare as CIFS, as documented here: https://help.ubuntu.com/community/Autofs#CIFS
This seems so simple, I'm running out of things to google. It's probably something very obvious. Let me speak in commands:
sudo apt-get install autofs
sudo nano /etc/auto.master.d/myserver.autofs
files -fstype=cifs,rw ://server/files
sudo automount -f -v
Starting automounter version 5.0.7, master map /etc/auto.master
using kernel protocol version 5.02
syntax error in map near [ files -fstype=cifs,rw : ]
no mounts in table
I didn't do a whole lot, but I still did something wrong. How do I get this working?
edit @Jos
updated myserver.autofs:
/media/server/files -fstype=cifs,rw ://server/files
Output from sudo automount -f -v:
Starting automounter version 5.0.7, master map /etc/auto.master
using kernel protocol version 5.02
:
/
/
/
file map /etc/-fstype=cifs not found
mounted indirect on /media/server/files with timeout 300, freq 75 seconds
statemachine:1363: got unexpected signal 28!
Now we have a directory in /media! But it's empty.