I'm trying to add mount --bind /proc/ /chroot/mysql/proc to /etc/fstab. How can I do this?

  • See the third paragraph of the section "The third field" in man fstab: "An entry swap denotes a file or partition to be used for swapping, cf. swapon(8). An entry ignore causes the line to be ignored. This is useful to show disk partitions which are currently unused. An entry none is useful for bind or move mounts." See also the previous section in man fstab, "The second field" that also mentions the use of "none". – Jonathan Ben-Avraham Aug 7 '16 at 5:30

The mount command accepts --bind or -o bind.

In the /etc/fstab file, you can use the following line:

/proc /chroot/mysql/proc none defaults,bind 0 0

If I had a volume mounted at /media/3tb-vol1/Private/, and I wanted to bind it to /srv/Private I have a /etc/fstab like this.

/media/3tb-vol1/Private/ /srv/Private        none    bind

I probably should have thought about this harder. While I don't see how to bind the filesystem, I can turn

mount -t proc ro /chroot/mysql/proc/


proc /chroot/mysql/proc proc ro 1 0

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.