NFSMOUNT.CONF(5)
π NFSMOUNT.CONF(5) β the file formats manual glow-up π
okay bestie, buckle up, because we're about to talk about nfsmount.conf, the configuration file for NFS mounts. yes, THE file formats manual. she's a section 5 icon and she's here to let you set options globally, per server, or per mount point. let's get into it π«Ά
β¨ SYNOPSIS β¨
this is the configuration file for NFS mounts, and the whole point of her existence is that she lets options be set globally, per server or per mount point. that's the vibe. that's the whole assignment.
Configuration file for NFS mounts that allows options to be set
globally, per server or per mount point.
πΈ DESCRIPTION πΈ
so the tea is this: the config file is made up of multiple section headers, and then right after each one come the variable assignments that belong to that section. simple. clean. organized. we love a structured queen π
a section header is literally just a string chillin' inside [ and ] brackets. iconic.
a variable assignment is an assignment statement that gives a value to a particular variable using the = operator, like Proto=Tcp. slay.
and which variables can you assign? great question, bestie:
- the whole set of NFS specific mount options listed in
nfs(5) - plus the filesystem-independent mount options listed in
mount(8) - plus three bonus additions:
Sloppy=Trueβ hits exactly the same as the-soption tomountForeground=Trueβ same effect asfgBackground=Trueβ same effect asbg
options in the config file can be written in UPPER, lower, or MiXeD case β she's flexible like that β and they all get shifted to lower case before being passed to the filesystem. no cap.
and now, a lil rule that WILL trip you up if you skip it: boolean mount options that don't need an equals sign must still be given as option=True. you can't just throw the bare option in there, and you also can't do the whole "prepend it with no" thing. nope. instead of no-ing an option, you write its negation as option=False. that's the rule. periodt π
π the three section categories π
sections get broken up into three basic categories: Global options, Server options and Mount Point options. here's the rundown:
[ NFSMount_Global_Options ]β this statically named section defines all the global mount options that can be applied to every single NFS mount. she's the main character, she applies to everyone.[ Server "Server_Name" ]β this section defines all the mount options that should be used on mounts to a particular NFS server. the"Server_Name"string needs to be surrounded by"quotes, and it has to be an exact match (ignoring case, so she's chill about capitalization) of the server name used in the mount command.[ MountPoint "Mount_Point" ]β this section defines all the mount options that should be used on a particular mount point. the"Mount_Point"string needs to be surrounded by"quotes and be an exact match of the mount point used in the mount command. and yes, even though path names are usually case-sensitive, theMount_Pointname is matched insensitive to case. plot twist, but a cute one.
π₯ the order of operations (very important, don't skip) π₯
the sections are processed in the reverse of the order listed above. and any options already seen β whether they showed up in a previous section or on the command line β get ignored when they're seen again. so if you set something twice, the first one wins. that's just how she moves. π
π EXAMPLES π
here are some example lines of how sections and variables are defined in the config file. chef's kiss, honestly.
[ NFSMount_Global_Options ]
Proto=Tcp
the TCP/IPv4 protocol will be used on every NFS mount. every single one. she said all of them.
[ Server "nfsserver.foo.com" ]
rsize=32k
wsize=32k
proto=udp6
a 32k (32768 bytes) block size will be used as the read and write size on all mounts to the 'nfsserver.foo.com' server. and UDP/IPv6 is the protocol to be used. look at her, being all specific and per-server about it β¨
[ MountPoint "/export/home" ]
Background=True
all mounts to the '/export/home' export will be performed in the background (i.e. done asynchronously). multitasking queen behavior π¦
π FILES π
here's where these files live, bestie:
/usr/etc/nfsmount.conf/usr/etc/nfsmount.conf.d/*.conf/etc/nfsmount.conf/etc/nfsmount.conf.d/*.conf
these are the default NFS mount configuration files, and here's the tea: variables set in the later file over-ride those in the earlier file. so the order up there? it matters. keep it in mind. π
π SEE ALSO π
go read those too, iykyk. they're the supporting cast and they ate.
β quick vibe check reminder: if you forget the=True/=Falsething for booleans, or you forget the quotes around yourServer_Name/Mount_Point, or you forget that earlier options win β that's on you, not on her. she's been very clear. π
and that's the whole page, bestie!! this one's from the File Formats Manual, dated 16 December 2020, and she goes by NFSMOUNT.CONF(5) β that's the source, the version, the date, the whole signature. mwah. π
β¨
π¦ where this page comes from
- arch rolling: nfs-utils 3.1.1-1 Β· GPL-2.0-or-later
- centos-stream 10: nfs-utils 1:2.8.3-9.el10 Β· MIT and GPLv2 and GPLv2+ and BSD
- centos-stream 10: nfs-utils-coreos 1:2.8.3-9.el10 Β· MIT and GPLv2 and GPLv2+ and BSD
- centos-stream 10: nfsv4-client-utils 1:2.8.3-9.el10 Β· MIT and GPLv2 and GPLv2+ and BSD
- debian trixie: nfs-common 1:2.8.3-1
- fedora 43: nfs-utils 1:2.8.4-0.fc43 Β· LicenseRef-Callaway-MIT AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-BSD
- fedora 43: nfs-utils 1:2.8.7-6.fc43 Β· LicenseRef-Callaway-MIT AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-BSD
- fedora 43: nfs-utils-coreos 1:2.8.4-0.fc43 Β· LicenseRef-Callaway-MIT AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-BSD
- fedora 43: nfs-utils-coreos 1:2.8.7-6.fc43 Β· LicenseRef-Callaway-MIT AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-BSD
- fedora 43: nfsv4-client-utils 1:2.8.4-0.fc43 Β· LicenseRef-Callaway-MIT AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-BSD
- fedora 43: nfsv4-client-utils 1:2.8.7-6.fc43 Β· LicenseRef-Callaway-MIT AND GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-BSD
- fedora 44: nfs-common-utils 1:2.8.7-0.fc44 Β· GPL-2.0-only AND GPL-2.0-or-later AND BSD-3-Clause AND BSD-2-Clause AND (HPND-export-US-modify AND HPND-sell-variant) AND (GPL-2.0-only WITH Linux-syscall-note OR BSD-3-Clause)
- fedora 44: nfs-common-utils 1:2.8.7-7.fc44 Β· GPL-2.0-only AND GPL-2.0-or-later AND BSD-3-Clause AND BSD-2-Clause AND (HPND-export-US-modify AND HPND-sell-variant) AND (GPL-2.0-only WITH Linux-syscall-note OR BSD-3-Clause)
- nixos 26.05: nfs-utils 2.9.1
- nixpkgs unstable: nfs-utils 3.1.1
- opensuse-leap 16.0: nfs-client 2.8.2-160000.4.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: nfs-client 2.8.2-160000.4.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: nfs-client 2.8.2-160000.4.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: nfs-client 2.8.2-160000.4.1 Β· GPL-2.0-or-later
- ubuntu questing: nfs-common 1:2.8.3-1ubuntu3
- ubuntu resolute: nfs-common 1:2.8.5-1ubuntu1
- ubuntu stonking: nfs-common 1:2.9.1-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms