bind mount in fstab

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

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

4 comments

#1 GrimRC on 02.13.07 at 7:48 pm

useful!

#2 Tunzi on 12.05.08 at 6:07 am

So the basic syntax is:

#Mount dir1 onto dir2
dir1 dir2 none defaults,bind 0 0

Works well, thank you good sir!

#3 Bind - Shared subtrees — Somewhere out there! on 12.14.08 at 7:53 am

[...] subtrees – in depth look at bind [...]

#4 automatyczny mount bind | hilpers on 01.19.09 at 3:32 am

[...] 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 [...]

Leave a Comment