Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #176465
| From | Reco <recoverym4n@gmail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: autofs config |
| Date | 2017-01-08 20:30 +0100 |
| Message-ID | <sXrkd-2cp-3@gated-at.bofh.it> (permalink) |
| References | <sXr0R-240-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi. On Sun, 08 Jan 2017 13:37:32 -0500 Harry Putnam <reader@newsguy.com> wrote: > I've edited /etc/auto.master by adding this line: > > /projects-nfs /etc/auto.master.d/prj-nfs.autofs --timeout=180 And it gone haywire from here. Autofs has a concept of master map ( auto.master(5) ) which can contain lines referring to either direct or indirect maps ( autofs(5) ). /etc/auto.master.d is intended for extending master map, and the files inside it should contain master map entries, not indirect ones like you did below. > 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 Note that it be simplified to: * --fstype=nfs4,rw,soft,intr 191.168.1.42:/projects/& Also please note that they give you /etc/auto.net just for your case (i.e. mounting nfs). > *** 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 ] So, what you need to do instead is: # /etc/auto.master /projects-nfs /etc/auto.nfs --timeout=180 # /etc/auto.nfs d0 --fstype=nfs4,rw,soft,intr 191.168.1.42:/projects/d0 dv --fstype=nfs4,rw,soft,intr 191.168.1.42:/projects/dv And since you're using Debian stable you might consider ditch autofs altogether as well and use systemd automounting as described in [1]. Reco [1] http://blog.tomecek.net/post/automount-with-systemd/
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
autofs config Harry Putnam <reader@newsguy.com> - 2017-01-08 20:10 +0100
Re: autofs config Reco <recoverym4n@gmail.com> - 2017-01-08 20:30 +0100
Re: autofs config Sven Hartge <sven@svenhartge.de> - 2017-01-08 21:30 +0100
Re: autofs config Harry Putnam <reader@newsguy.com> - 2017-01-09 14:20 +0100
Re: autofs config Reco <recoverym4n@gmail.com> - 2017-01-09 20:00 +0100
Re: autofs config Harry Putnam <reader@newsguy.com> - 2017-01-10 00:50 +0100
Re: autofs config Reco <recoverym4n@gmail.com> - 2017-01-10 10:40 +0100
Re: autofs config Harry Putnam <reader@newsguy.com> - 2017-01-10 16:20 +0100
Re: autofs config Reco <recoverym4n@gmail.com> - 2017-01-10 16:40 +0100
Re: autofs config Harry Putnam <reader@newsguy.com> - 2017-01-10 19:00 +0100
Re: autofs config Reco <recoverym4n@gmail.com> - 2017-01-10 19:40 +0100
Re: autofs config Harry Putnam <reader@newsguy.com> - 2017-01-11 01:40 +0100
Re: autofs config [SOLVED] Reco <recoverym4n@gmail.com> - 2017-01-11 07:50 +0100
csiph-web