From 67490655b4a8d7d3fb2e5a796676b5536ca2310c Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 14 Jun 2010 12:47:17 +0200 Subject: [PATCH] mount: add notes about -o remount,ro,bind to mount.8 Signed-off-by: Karel Zak --- mount/mount.8 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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. -- 2.39.5