From be33a6786b82dc456be347d2b366661100101793 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 22 Oct 2025 10:36:32 +0200 Subject: [PATCH] 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 --- sys-utils/mount.8.adoc | 2 ++ 1 file changed, 2 insertions(+) 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*:: -- 2.47.3