How do I do 'mount --bind' in /etc/fstab?
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