,---- | NOTE: A similar post was accidently posted to gentoo list but was | intended to be posted here `---- Setup: Running Debian jessie-stable
I've never used autofs and am trying to get it setup. Following the debian wiki and an Ubuntu howto. Also this site: http://www.linuxtechi.com/automount-nfs-share-in-linux-using-autofs/ I've installed the pkg: aptitude search ^autofs|grep ^i i autofs - kernel-based automounter for Linux created mount point: mkdir /projects-nfs I've edited /etc/auto.master by adding this line: /projects-nfs /etc/auto.master.d/prj-nfs.autofs --timeout=180 Created the directory `mkdir /etc/auto.master.d' created /etc/auto.master.d/prj-nfs.autofs like so (as suggested in auto.master): d0 --fstype=nfs4,rw,soft,intr 191.168.1.42:/projects/d0 dv --fstype=nfs4,rw,soft,intr 191.168.1.42:/projects/dv Those directories on that host are available. They reside on an solaris (x86) host and set to be available to nfs. They can be mounted manually: mount -t nfs 2x:/projects/dv /nfs/dv Checking /nfs/dv... I find it is mounted. So umounting /nfs/dv And starting autofs with: /etc/init.d/autofs start However when I chk status I get [asterisks added for clarity]: /etc/init.d/autofs status ● autofs.service - LSB: Automounts filesystems on demand Loaded: loaded (/etc/init.d/autofs) Active: active (running) since Sun 2017-01-08 13:40:45 EST; 4s ago Process: 3638 ExecStop=/etc/init.d/autofs stop (code=exited, status=0/SUCCESS) Process: 3671 ExecStart=/etc/init.d/autofs start (code=exited, status=0/SUCCESS) CGroup: /system.slice/autofs.service └─3676 /usr/sbin/automount --pid-file /var/run/autofs.pid Jan 08 13:40:45 d0 systemd[1]: Starting LSB: Automounts filesystems on demand... *** Jan 08 13:40:45 d0 automount[3676]: syntax error in map near [ d0 --fstype=nfs4,rw,soft,intr 191.168.1.42: ] *** Jan 08 13:40:45 d0 automount[3676]: syntax error in map near [ projects ] Jan 08 13:40:45 d0 autofs[3671]: Starting automount.... Jan 08 13:40:45 d0 systemd[1]: Started LSB: Automounts filesystems on demand. No way to tell what the syntax error is. I thought it might be spaces instead of tabs so when back and made sure the whitspaces are tabs. The above sited URL shows the entries for map file are to include: <Mount-Point> <Mount-Options> <Location_of_File System> And gives the example: db_backup -fstype=nfs,rw,soft,intr 192.168.1.21:/db_backup I'm not seeing what the `syntax error' is in my file.