summaryrefslogtreecommitdiff
path: root/mount
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2010-06-14 12:47:17 +0200
committerKarel Zak <kzak@redhat.com>2010-06-14 12:47:17 +0200
commit67490655b4a8d7d3fb2e5a796676b5536ca2310c (patch)
treed3f7de2ca01757ff1dc408668b7219d5583a2519 /mount
parente67690f35a79ecf36dc6f03aab95965e4dd9939d (diff)
downloadutil-linux-old-67490655b4a8d7d3fb2e5a796676b5536ca2310c.tar.gz
mount: add notes about -o remount,ro,bind to mount.8
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount')
-rw-r--r--mount/mount.815
1 files changed, 15 insertions, 0 deletions
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.