I'm trying to add mount --bind /proc/ /chroot/mysql/proc to /etc/fstab. How can I do this?
Asked
Active
Viewed 2.8e+01k times
4 Answers
123
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
Zoredache
- 133,737
5
In Addition to rely on an always existing drive, if you would use this entry to mount an external drive, the boot would fail while the drive is not connected.
In Addtion to the solve this, there is a known boot options for this ;)
nofailignores non existing mount points and continues regardless
/media/3tb-vol1/Private/ /srv/Private none bind,nofail
i would also suggest to see this as Reference What is the difference between nobootwait and nofail in fstab from Linux & Unix SE
djdomi
- 2,287
-1
The mount command accepts --bind or -o bind.
You have /path/other/usr and you want that will be /usr
In the /etc/fstab file, you can use the following line:
/usr /path/other/usr none defaults,bind 0 0
lolotux
- 9