On Sun, 5 May 2013 15:36:37 +0100
Frank Murphy <frankly3d(a)gmail.com> wrote:
Can a autofs mountpoint be used on the same pc?
man autofs if from 1997, still talks about ~/init*
Box has:
/md0 (boot,/)
/md1 (home)
/md2 (/shareyumcache)
/dev/sdg (swap) [can't see a benefit in raiding swap]
I want to use autofs to mount /md2
into "/var/cache" so the result is:
/var/cache/yum/...
autofs.shareyum
yum (mount options) 127.0.0.1://shareyumcache
would that be correct?
From my config:
/etc/auto.master
/misc /etc/auto.misc --timeout=60 --ghost
/etc/auto.misc
WDC160 -fstype=auto,noatime,nodiratime :/dev/disk/by-label/WDC160
WD500-Canyon -fstype=auto,noatime,nodiratime :/dev/disk/by-label/WD500-Canyon
WD500-MyBook -fstype=auto,noatime,nodiratime :/dev/disk/by-label/WD500-MyBook
Another way (from man mount):
...
The bind mounts.
Since Linux 2.4.0 it is possible to remount part of the file hierarchy some-
where else. The call is
mount --bind olddir newdir
or shortoption
mount -B olddir newdir
or fstab entry is:
/olddir /newdir none bind
...
BR, Bob