Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I installed 12.10 64 bit and ported old autofs file to the installation. I found I had to create the auto.master.d directory and change my old autofs file name to auto.autofs so that the automounter would find the file and attempt to map the NFS shared volumes from my file server.
The syslog file reports "syntax error in map" with an indication it does not like the servername:/mountdirectorypart of the map instance. I removed all but one line and played around until I gave up trying different options to get it working. Here is the line I have in my /etc/auto.master.d/auto.autofs file.

tools  -fstype=nfs,nfsvers=3,noatime,tcp,hard,intr,rw,quota,rsize=8192,wsize=8192  myserver.com:/home/my_tools/tools

Here are the error messages.

Feb 22 16:06:36 ywts14 automount[2310]: Starting automounter version 5.0.6, master map /etc/auto.master
Feb 22 16:06:36 ywts14 automount[2310]: using kernel protocol version 5.02
Feb 22 16:06:36 ywts14 automount[2310]: lookup_nss_read_master: reading master file /etc/auto.master
Feb 22 16:06:36 ywts14 automount[2310]: parse_init: parse(sun): init gathered global options: (null)
Feb 22 16:06:36 ywts14 automount[2310]: lookup_read_master: lookup(file): read entry +dir:/etc/auto.master.d
Feb 22 16:06:36 ywts14 automount[2310]: lookup_nss_read_master: reading master dir /etc/auto.master.d
Feb 22 16:06:36 ywts14 automount[2310]: lookup_read_master: lookup(dir): scandir: /etc/auto.master.d
Feb 22 16:06:36 ywts14 automount[2310]: include_file: lookup(dir): include: /etc/auto.master.d/auto.autofs
Feb 22 16:06:36 ywts14 automount[2310]: lookup_nss_read_master: reading master file /etc/auto.master.d/auto.autofs
Feb 22 16:06:36 ywts14 automount[2310]: parse_init: parse(sun): init gathered global options: (null)
Feb 22 16:06:36 ywts14 automount[2310]: lookup_read_master: lookup(file): read entry tools
Feb 22 16:06:36 ywts14 automount[2310]: syntax error in map near [ tools -fstype=nfs,nfsvers=3,noatime,tcp,hard,intr,rw,quota,rsize=8192,wsize=8192  myserver.com: ]
Feb 22 16:06:36 ywts14 automount[2310]: lookup_read_master: lookup(file): read entry net-opt
Feb 22 16:06:36 ywts14 automount[2310]: syntax error in map near [ home ]
Feb 22 16:06:36 ywts14 automount[2310]: lookup_read_master: lookup(file): read entry shared
Feb 22 16:06:36 ywts14 automount[2310]: syntax error in map near [ my_tools ]
Feb 22 16:06:36 ywts14 automount[2310]: lookup_read_master: lookup(file): read entry spinbuild
Feb 22 16:06:36 ywts14 automount[2310]: syntax error in map near [ tools ]
Feb 22 16:06:36 ywts14 automount[2310]: no mounts in table
share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.