Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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
Required, but never shown