STATUS
mount has the following exit status values (the bits can be ORed):
0
success
1
incorrect invocation or permissions
2
system error (out of memory, cannot fork, no more loop devices)
4
internal mount bug
8
user interrupt
16
problems writing or locking /etc/mtab
32
mount failure
64
some mount succeeded
The command mount -a returns 0 (all succeeded), 32 (all failed), or
64 (some failed, some succeeded).
EXTERNAL HELPERS
The syntax of external mount helpers is:
/sbin/mount.suffix spec dir [-sfnv] [-N namespace] [-o options] [-t
type.subtype]
where the suffix is the filesystem type and the -sfnvoN options have the
same meaning as the normal mount options. The -t option is used for
filesystems with subtypes support (for example /sbin/mount.fuse -t
fuse.sshfs).
The command mount does not pass the mount options unbindable,
runbindable, private, rprivate, slave, rslave, shared, rshared, auto,
noauto, comment, x-*, loop, offset and sizelimit to the mount.<suffix>
helpers. All other options are used in a comma-separated list as an
argument to the -o option.
ENVIRONMENT
LIBMOUNT_FORCE_MOUNT2={always|never|auto}
force to use classic mount(2) system call (requires support for new
file descriptors based mount API). The default is auto; in this
case, libmount tries to be smart and use classic mount(2) only for
well-known issues. If the new mount API is unavailable, libmount can
still use traditional mount(2), although LIBMOUNT_FORCE_MOUNT2 is
set to never.
LIBMOUNT_FSTAB=<path>
overrides the default location of the fstab file (ignored for suid)
LIBMOUNT_DEBUG=all
enables libmount debug output
LIBBLKID_DEBUG=all
enables libblkid debug output
LOOPDEV_DEBUG=all
enables loop device setup debug output
FILES
See also "The files /etc/fstab, /etc/mtab and /proc/mounts" section
above.
/etc/fstab
filesystem table
/run/mount
libmount private runtime directory
/etc/mtab
table of mounted filesystems or symlink to /proc/mounts
/etc/mtab~
lock file (unused on systems with mtab symlink)
/etc/mtab.tmp
temporary file (unused on systems