Some Linux Nerd Asked: 2014-07-17 15:06:09 +0800 CST2014-07-17 15:06:09 +0800 CST 2014-07-17 15:06:09 +0800 CST How do I do 'mount --bind' in /etc/fstab? 772 I'm trying to add mount --bind /proc/ /chroot/mysql/proc to /etc/fstab. How can I do this? unix 2 Answers Voted Best Answer Matheus 2014-07-17T15:18:39+08:002014-07-17T15:18:39+08:00 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 Zoredache 2014-07-17T15:16:29+08:002014-07-17T15:16:29+08:00 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
The
mount
command accepts--bind
or-o bind
.In the
/etc/fstab
file, you can use the following line: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.