Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to figure out how to add "mount --bind /proc/ /chroot/mysql/proc" to /etc/fstab, but how can I to do this?

share|improve this question

3 Answers 3

up vote 9 down vote accepted

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
share|improve this answer

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

share|improve this answer
    
Thanks, thats exactly what I was looking for! –  Some Linux Nerd Jul 16 at 23:24

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/

into

proc /chroot/mysql/proc proc ro 1 0
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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