From c22fc04127506c4c22db2cd87706f53448e9af64 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 21 Jan 2019 11:56:27 +0100 Subject: mount: (man) add note about --all to remount desc Signed-off-by: Karel Zak --- sys-utils/mount.8 | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'sys-utils/mount.8') diff --git a/sys-utils/mount.8 b/sys-utils/mount.8 index 6ef589050..73d816c30 100644 --- a/sys-utils/mount.8 +++ b/sys-utils/mount.8 @@ -1218,6 +1218,18 @@ After this call, mount reads fstab and merges these options with the options from the command line (\fB\-o\fR). If no mountpoint is found in fstab, then a remount with unspecified source is allowed. +.sp +mount(8) allows to use \fB\-\-all\fR to remount all already mounted filesystems +which match a specified filter (\fB\-O\fR and \fB\-t\fR). For example: +.sp +.in +4 +.B "mount \-\-all \-o remount,ro -t vfat" +.in +.sp +remounts all already mounted vfat filesystems in read-only mode. The each of the +filesystems is remounted by "mount \-o remount,ro /dir" semantic. It means the +mount command reads fstab or mtab and merges these options with the options +from the command line. .TP .B ro Mount the filesystem read-only. -- cgit v1.2.3-55-g7522