1NFSMOUNT.CONF(5) File Formats Manual NFSMOUNT.CONF(5)
2
3
4
6 nfsmount.conf - Configuration file for NFS mounts
7
9 Configuration file for NFS mounts that allows options to be set glob‐
10 ally, per server or per mount point.
11
13 The configuration file is made up of multiple section headers followed
14 by variable assignments associated with that section. A section header
15 is defined by a string enclosed by [ and ] brackets. Variable assign‐
16 ments are assignment statements that assign values to particular vari‐
17 ables using the = operator, as in Proto=Tcp. The variables that can be
18 assigned are the set of NFS specific mount options listed in nfs(5)
19 together with the filesystem-independant mount options listed in
20 mount(8) and three additions: Sloppy=True has the same effect as the -s
21 option to mount, and Foreground=True and Background=True have the same
22 effect as bg and fg.
23
24 Options in the config file may be given in upper, lower, or mixed case
25 and will be shifted to lower case before being passed to the filesys‐
26 tem.
27
28 Boolean mount options which do not need an equals sign must be given as
29 "option=True". Instead of preceeding such an option with "no" its
30 negation must be given as "option=False".
31
32 Sections are broken up into three basic categories: Global options,
33 Server options and Mount Point options.
34
35 [ NFSMount_Global_Options ] - This statically named section defines all
36 of the global mount options that can be applied to every NFS
37 mount.
38
39 [ Server "Server_Name" ] - This section defines all the mount options
40 that should be used on mounts to a particular NFS server. The
41 "Server_Name" strings needs to be surrounded by '"' and be an
42 exact match (ignoring case) of the server name used in the mount
43 command.
44
45 [ MountPoint "Mount_Point" ] - This section defines all the mount
46 options that should be used on a particular mount point. The
47 "Mount_Point" string needs to be surrounded by '"' and be an
48 exact match of the mount point used in the mount command.
49 Though path names are usually case-sensitive, the Mount_Point
50 name is matched insensitive to case.
51
52 The sections are processed in the reverse of the order listed above,
53 and any options already seen, either in a previous section or on the
54 command line, will be ignored when seen again.
55
57 These are some example lines of how sections and variables are defined
58 in the configuration file.
59
60 [ NFSMount_Global_Options ]
61 Proto=Tcp
62
63 The TCP/IPv4 protocol will be used on every NFS mount.
64
65 [ Server "nfsserver.foo.com" ]
66 rsize=32k
67 wsize=32k
68 proto=udp6
69
70 A 32k (32768 bytes) block size will be used as the read and
71 write size on all mounts to the 'nfsserver.foo.com' server.
72 UDP/IPv6 is the protocol to be used.
73
74 [ MountPoint "/export/home" ]
75 Background=True
76
77 All mounts to the '/export/home' export will be performed in the
78 background (i.e. done asynchronously).
79
81 /etc/nfsmount.conf
82 Default NFS mount configuration file
83
84 /etc/nfsmount.conf.d
85 When this directory exists and files ending with ".conf"
86 exist, those files will be used to set configuration vari‐
87 ables. These files will override variables set in /etc/nfs‐
88 mount.conf
89
91 nfs(5), mount(8),
92
93
94
95 16 December 2020 NFSMOUNT.CONF(5)