understanding mount -o bind

Posted by Ionut on Server Fault See other posts from Server Fault or by Ionut
Published on 2012-12-17T16:49:33Z Indexed on 2012/12/17 17:04 UTC
Read the original article Hit count: 279

Filed under:

Few questions after the following commands:

mount -o bind /new_disk/home/user/ /home/user/

mount -o bind --no-mtab /new_disk/home/user/ /home/user/
  1. What is the difference between the two commands other than " Mount without writing in /etc/mtab. This is necessary for example when /etc is on a read-only filesystem."

  2. What is the difference between mount -o bind and mount --bind ...if there are

  3. Let's suppose i don't know there is a partition mounted using -o bind --no-mtab...where can I find if there is any mound point with bind ? The only way i can detect this is grep user /proc/mounts but in that line there is no info abut bind.

Thank you.

© Server Fault or respective owner

Related posts about linux