From 5603aee05b2d603ec59bfde47d07c076d43df00c Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 1 Mar 2023 13:11:42 +0100 Subject: [PATCH] mount: (man) add note about options order Fixes: https://github.com/util-linux/util-linux/issues/2087 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 5948d33896..39332e55c5 100644 --- a/sys-utils/mount.8.adoc +++ b/sys-utils/mount.8.adoc @@ -370,6 +370,8 @@ Use the specified mount options. The _opts_ argument is a comma-separated list. + *mount LABEL=mydisk -o noatime,nodev,nosuid* + +Note that the order of the options matters, as the last option wins if there are conflicting ones. The options from the command line also overwrite options from fstab by default. ++ For more details, see the *FILESYSTEM-INDEPENDENT MOUNT OPTIONS* and *FILESYSTEM-SPECIFIC MOUNT OPTIONS* sections. *--onlyonce*:: -- 2.47.3