Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • If /proc/self/mountinfo can contain lines like 2 1 8:1 /a /b rw - ext4 /dev/sda1 rw,errors=remount-ro, then Linux most certainly does keep some information about bind mounts. Commented Feb 28, 2017 at 20:59
  • 1
    No. Look at my second example. It keeps the information which filesystem was mounted and which path relative to the filesystem root was mounted. So for mount --bind /home/melab /mnt the resulting line might look like any of the following depending on which of /home and /home/melab is a mountpoint: 3 1 8:1 /home/melab /mnt rw - ext4 /dev/sda1 rw, 3 1 8:2 /melab /mnt rw - ext4 /dev/sda2 rw, 3 1 8:3 / /mnt rw - ext4 /dev/sda3 rw Commented Feb 28, 2017 at 21:11
  • It's true that something different to / in the fourth column often indicates a bind mount. But it also might be a Btrfs subvolume. Commented Feb 28, 2017 at 21:36
  • Is /dev/sda3 supposed to be mounted at /home/melab? Commented Mar 3, 2017 at 2:00
  • Yes. In my example I used /dev/sda1 as /, /dev/sda2 as /home and /dev/sda3 as /home/melab Commented Mar 3, 2017 at 13:09