A good place to look if you want to figure out how to convert a command line mount to a fstab mount is /etc/mtab.
For example:
/dev/sda1 / xfs defaults 0 0
proc /proc proc defaults 0 0
/dev/sda2 none swap sw 0 0
/dev/sda3 /home xfs defaults 0 0
/dev/sda4 /export xfs defaults 0 0#
/home/fastbase/tcl /export/apps/fastbase none defaults,bind 0 0
9 comments ↓
useful!
So the basic syntax is:
#Mount dir1 onto dir2
dir1 dir2 none defaults,bind 0 0
Works well, thank you good sir!
[...] subtrees – in depth look at bind [...]
[...] mount bind Peter May wrote: > Można to jakoś rozwiązać? Może to Cię jakoś naprowadzi : http://stateless.geek.nz/2005/10/26/…ount-in-fstab/ <cytat> A good place to look if you want to figure out how to convert a command line mount [...]
Typed "fstab bind" into firefox and found this gem.
Not only does it answer my question, but also any related questions by simply saying "look at mtab"
Internet is being helpful today.
5.5 years on and still useful.
Thanks
[...] http://stateless.geek.nz/2005/10/26/bind-mount-in-fstab/ Like this:LikeBe the first to like this [...]
nov 2011 – just thank You
Excellent tip. Thank you !
Leave a Comment