summaryrefslogtreecommitdiffstats
path: root/sys-utils/umount.8
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/umount.8')
-rw-r--r--sys-utils/umount.818
1 files changed, 14 insertions, 4 deletions
diff --git a/sys-utils/umount.8 b/sys-utils/umount.8
index caef3b048..a3793dfb1 100644
--- a/sys-utils/umount.8
+++ b/sys-utils/umount.8
@@ -60,8 +60,11 @@ files. A lazy unmount avoids this problem.
.TP
.BR \-a , " \-\-all"
All of the filesystems described in
-.I /etc/mtab
-are unmounted, except the \fIproc\fR filesystem.
+.I /proc/self/mountinfo
+(or in deprecated /etc/mtab)
+are unmounted, except the proc, devfs, devpts, sysfs, rpc_pipefs and nfsd
+filesystems. This list of the filesystems may be replaced by \fB\-\-types\fR
+umount option.
.TP
.BR \-A , " \-\-all\-targets"
Unmount all mountpoints in the current namespace for the specified filesystem.
@@ -87,7 +90,7 @@ in this case "autoclear" functionality is enabled by default.
.B \-\-fake
Causes everything to be done except for the actual system call or umount helper
execution; this 'fakes' unmounting the filesystem. It can be used to remove
-entries from
+entries from the deprecated
.I /etc/mtab
that were unmounted earlier with the
.B \-n
@@ -194,13 +197,20 @@ a mountpoint that is not defined in \fI/etc/fstab\fR
A \fBhelper=\fItype\fR marker in the mtab file will redirect
all unmount requests
to the \fB/sbin/umount.\fItype\fR helper independently of UID.
+.PP
+Note that \fI/etc/mtab\fR is currently deprecated and helper= and another
+userspace mount options are maintained by libmount.
.SH FILES
.TP
.B /etc/mtab
-table of mounted filesystems
+table of mounted filesystems (deprecated and usually replaced by
+symlink to /proc/mounts)
.TP
.B /etc/fstab
table of known filesystems
+.TP
+.B /proc/self/mountinfo
+table of mounted filesystems generated by kernel.
.SH ENVIRONMENT
.IP LIBMOUNT_FSTAB=<path>
overrides the default location of the fstab file (ignored for suid)