From: Karel Zak Date: Wed, 22 Oct 2025 08:36:32 +0000 (+0200) Subject: mount: improve --all documentation regarding swap areas X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be33a6786b82dc456be347d2b366661100101793;p=thirdparty%2Futil-linux.git mount: improve --all documentation regarding swap areas The --all option description did not mention that swap entries in fstab are silently ignored. Add a note clarifying this behavior and pointing users to swapon --all for enabling swap devices and files. Signed-off-by: Karel Zak --- diff --git a/sys-utils/mount.8.adoc b/sys-utils/mount.8.adoc index eeb6e25fb..0279767f7 100644 --- a/sys-utils/mount.8.adoc +++ b/sys-utils/mount.8.adoc @@ -315,6 +315,8 @@ The option *--all* is possible to use for remount operation too. In this case al + Since version 2.35 it is possible to use the command line option *-o* to alter mount options from _fstab_ (see also *--options-mode*). + +Note that swap entries in _fstab_ are silently ignored by *mount -a*. Use *swapon -a* to enable swap devices and files. See *swapon*(8). ++ Note that it is a bad practice to use *mount -a* for _fstab_ checking. The recommended solution is *findmnt --verify*. *--beneath*::