Gentoo Archives: gentoo-user

From: Harry Putnam <reader@×××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] autofs config
Date: Sun, 08 Jan 2017 09:18:10
Message-Id: 8660lpewqy.fsf@reader.local.lan
1 I've never used autofs and am trying to get it setup.
2
3 Following the debian wiki and an Ubuntu howto.
4
5 I've installed the pkg:
6
7 aptitude search ^autofs|grep ^i
8 i autofs - kernel-based automounter for Linux
9
10
11 created mount point: mkdir /projects-nfs
12
13 I've edited /etc/auto.master by adding this line:
14
15 /projects-nfs /etc/auto.master.d/prj-nfs.autofs --timeout=180
16
17 Created the directory `mkdir /etc/auto.master.d' and spec'ed in
18 `/etc/auto.master'.
19
20 created /etc/auto.master.d/prj-nfs.autofs like so (as spec'ed in auto.master):
21
22 d0 --fstype=nfs4,rw,soft,intr 191.168.1.42:/projects/d0
23 dv --fstype=nfs4,rw,soft,intr 191.168.1.42:/projects/dv
24
25 Those directories on that host are available.
26
27 They reside a solaris (x86) host and set to be available by nfs.
28
29 They can be mounted manually{to different dir than above}:
30 mount -t nfs 2x:/projects/dv /nfs/dv
31
32 Checking /nfs/dv... I find it is mounted.

Replies

Subject Author
[gentoo-user] Re: autofs config Harry Putnam <reader@×××××××.com>