nfsmount.conf(5) — Linux manual page


NFSMOUNT.CONF(5)           File Formats Manual          NFSMOUNT.CONF(5)

NAME         top

       nfsmount.conf - Configuration file for NFS mounts

SYNOPSIS         top

       Configuration file for NFS mounts that allows options to be set
       globally, per server or per mount point.

DESCRIPTION         top

       The configuration file is made up of multiple section headers
       followed by variable assignments associated with that section.  A
       section header is defined by a string enclosed by [ and ]
       brackets.  Variable assignments are assignment statements that
       assign values to particular variables using the = operator, as in
       Proto=Tcp.  The variables that can be assigned are the set of NFS
       specific mount options listed in nfs(5) together with the
       filesystem-independant mount options listed in mount(8) and three
       additions: Sloppy=True has the same effect as the -s option to
       mount, and Foreground=True and Background=True have the same
       effect as bg and fg.

       Options in the config file may be given in upper, lower, or mixed
       case and will be shifted to lower case before being passed to the

       Boolean mount options which do not need an equals sign must be
       given as "option=True".  Instead of preceeding such an option
       with "no" its negation must be given as "option=False".

       Sections are broken up into three basic categories: Global
       options, Server options and Mount Point options.

       [ NFSMount_Global_Options ] - This statically named section
              defines all of the global mount options that can be
              applied to every NFS mount.

       [ Server "Server_Name" ] - This section defines all the mount
              options that should be used on mounts to a particular NFS
              server. The "Server_Name" strings needs to be surrounded
              by '"' and be an exact match (ignoring case) 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 '"' and
              be an exact match of the mount point used in the mount
              command.  Though path names are usually case-sensitive,
              the Mount_Point name is matched insensitive to case.

       The sections are processed in the reverse of the order listed
       above, and any options already seen, either in a previous section
       or on the command line, will be ignored when seen again.

EXAMPLES         top

       These are some example lines of how sections and variables are
       defined in the configuration file.

       [ NFSMount_Global_Options ]

              The TCP/IPv4 protocol will be used on every NFS mount.

       [ Server "" ]

              A 32k (32768 bytes) block size will be used as the read
              and write size on all mounts to the ''
              server.  UDP/IPv6 is the protocol to be used.

       [ MountPoint "/export/home" ]

              All mounts to the '/export/home' export will be performed
              in the background (i.e. done asynchronously).

FILES         top


              Default NFS mount configuration files, variables set in
              the later file over-ride those in the earlier file.

SEE ALSO         top

       nfs(5), mount(8),

COLOPHON         top

       This page is part of the nfs-utils (NFS utilities) project.
       Information about the project can be found at 
       ⟨⟩.  If you have a
       bug report for this manual page, see
       ⟨⟩.  This page was
       obtained from the project's upstream Git repository
       ⟨git://⟩ on
       2023-12-22.  (At that time, the date of the most recent commit
       that was found in the repository was 2023-12-05.)  If you
       discover any rendering problems in this HTML version of the page,
       or you believe there is a better or more up-to-date source for
       the page, or you have corrections or improvements to the
       information in this COLOPHON (which is not part of the original
       manual page), send a mail to

                            16 December 2020            NFSMOUNT.CONF(5)

Pages that refer to this page: nfs(5)nfs.conf(5)nfs.systemd(7)mount.nfs(8)