From: Karel Zak Date: Mon, 14 Jun 2010 10:47:17 +0000 (+0200) Subject: mount: add notes about -o remount,ro,bind to mount.8 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67490655b4a8d7d3fb2e5a796676b5536ca2310c;p=util-linux mount: add notes about -o remount,ro,bind to mount.8 Signed-off-by: Karel Zak --- diff --git a/mount/mount.8 b/mount/mount.8 index 093001b8..e9f29629 100644 --- a/mount/mount.8 +++ b/mount/mount.8 @@ -359,6 +359,21 @@ changed by a separate remount command, for example: .I newdir .RE +Note that behavior of the remount operation depends on the /etc/mtab file. The +first command stores the 'bind' flag to the /etc/mtab file and the second +command reads the flag from the file. If you have a system without the +/etc/mtab file or if you explicitly define source and target for the remount +command (then mount(8) does not read /etc/mtab), then you have to use bind flag +(or option) for the remount command too. For example: + +.RS +.br +.B mount --bind +.I olddir newdir +.br +.B mount -o remount,ro,bind +.I olddir newdir +.RE .RE .B The move operation.