Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I'm trying to add mount --bind /proc/ /chroot/mysql/proc to /etc/fstab. How can I do this?
mount --bind /proc/ /chroot/mysql/proc
The mount command accepts --bind or -o bind.
In the /etc/fstab file, you can use the following line:
/source /destination 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
Required, but never shown