15 Aug 2006 (Tue)

22:31:07 # Life mount -obind and mount --bind. In Linux systems, you can mount a directory to a directory; and this is called bind-mounting. As far as I know, there are two syntaxes available for bind-mounting. One is mount -o bind /XXX /YYY and the other is mount --bind /XXX /YYY. I wondered how these two differ. I've checked the source and its operation, and it seems like they are equivalent. The source is in util-linux mount/mount.c. mount --bind /XXX /YYY is equivalent to mount -o bind -t none /XXX /YYY. Now that I know, I can happily write the entry to /etc/fstab. I was hoping to find a clue to 382977, but no luck so far.

Junichi Uekawa

$Id: dancer-diary.el,v 1.91 2006/06/15 15:14:10 dancer Exp $