ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Dubrovskiy Viacheslav <slava@tangramltd.com>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] mount -o bind
Date: Wed, 25 Jul 2012 09:28:10 +0300
Message-ID: <500F91FA.6010401@tangramltd.com> (raw)
In-Reply-To: <500F8B74.2090103@rambler.ru>

[-- Attachment #1: Type: text/plain, Size: 1239 bytes --]

25.07.2012 09:00, Kharitonov A. Dmitry написал:
> А когда у нас опция bind перестала работать?
>
> [user@eeedima ~ 09:50:58]$ mkdir ~/tmp1 ~/tmp2
> [user@eeedima ~ 09:53:52]$ sudo mount -o bind ~/tmp1 ~/tmp2
> [user@eeedima ~ 09:54:24]$ mount
> ---8<---
> /dev/sde1 on /home type ext4
> (rw,nosuid,relatime,user_xattr,acl,barrier=1,data=ordered,discard)
> ---8<---
> /dev/sde1 on /home/user/tmp2 type ext4
> (rw,nosuid,relatime,user_xattr,acl,barrier=1,data=ordered,discard)
> [user@eeedima ~ 09:54:31]$ ls tmp2
> [user@eeedima ~ 09:58:22]$
>
> т. е. по факту даже ничего не монтируется
У меня работает.
А если mount от имени root?
[slava@dubrline ~]$ sudo mount | grep tmp2
/dev/sda4 on /home/slava/tmp2 type ext3
(rw,nosuid,relatime,errors=continue,commit=5,barrier=1,data=writeback)
[slava@dubrline ~]$ cd tmp1/
[slava@dubrline tmp1]$ ls
[slava@dubrline tmp1]$ touch test
[slava@dubrline tmp1]$ cd ../tmp2/
[slava@dubrline tmp2]$ ll
итого 16
drwxr-xr-x   2 slava slava  4096 Июл 25 09:24 ./
-rw-r--r--   1 slava slava     0 Июл 25 09:24 test
drwx------ 117 slava slava 12288 Июл 25 09:23 ../


-- 
WBR,
Dubrovskiy Viacheslav


[-- Attachment #2: Криптографическая подпись S/MIME --]
[-- Type: application/pkcs7-signature, Size: 4912 bytes --]

      parent reply	other threads:[~2012-07-25  6:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-25  6:00 Kharitonov A. Dmitry
2012-07-25  6:12 ` Grigory Milev
2012-07-25  6:19   ` REAL
2012-07-25  6:23   ` Kharitonov A. Dmitry
2012-07-25  6:30     ` Dmitriy Kruglikov
2012-07-25  6:35       ` REAL
2012-07-25  6:36         ` Dmitriy Kruglikov
2012-07-25  6:59           ` Kharitonov A. Dmitry
2012-07-25  6:30     ` REAL
2012-07-25  6:19 ` Dmitriy Kruglikov
2012-07-25  6:28 ` Dubrovskiy Viacheslav [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=500F91FA.6010401@tangramltd.com \
    --to=slava@tangramltd.com \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git