From: Karel Zak Date: Tue, 16 Nov 2021 09:48:32 +0000 (+0100) Subject: mount: (adoc) add hint about /proc and /sys to --all description X-Git-Tag: v2.38-rc1~162 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3e0190173a1fd8231579fe3062c24a1d6335b718;p=thirdparty%2Futil-linux.git mount: (adoc) add hint about /proc and /sys to --all description Addresses: https://github.com/util-linux/util-linux/issues/1492 Signed-off-by: Karel Zak --- diff --git a/sys-utils/mount.8.adoc b/sys-utils/mount.8.adoc index 8637f74dd9..c3c2e0dcf0 100644 --- a/sys-utils/mount.8.adoc +++ b/sys-utils/mount.8.adoc @@ -301,6 +301,8 @@ Command-line options available for the *mount* command are: *-a*, *--all*:: Mount all filesystems (of the given types) mentioned in _fstab_ (except for those whose line contains the *noauto* keyword). The filesystems are mounted following their order in _fstab_. The *mount* command compares filesystem source, target (and fs root for bind mount or btrfs) to detect already mounted filesystems. The kernel table with already mounted filesystems is cached during *mount --all*. This means that all duplicated _fstab_ entries will be mounted. + +The correct functionality depends on /proc (to detect already mounted filesystems) and on /sys (to evaluate filesystem tags like UUID= or LABEL=). It's strongly recommended to mount /proc and /sys filesystems before *mount -a* is executed on system boot. ++ The option *--all* is possible to use for remount operation too. In this case all filters (*-t* and *-O*) are applied to the table of already mounted filesystems. + Since version 2.35 is possible to use the command line option *-o* to alter mount options from _fstab_ (see also *--options-mode*).