On Mon, 2008-03-03 at 20:18 +0900, Ian Kent wrote: > On Sun, 2008-03-02 at 23:17 -0500, chris barry wrote: > > I've googled, but have not found an answer to this seemingly simple > > question. > > > > I'm automounting /foo from box1 on box2. /foo has no files, just other > > directories, one of which is bar. > > No you're not. > > You're mounting individual directories from box2. > Things like, /foo/bar, /foo/baz, etc, are mounted individually, as > requests to access them come in. > > > > > box2 $ cd /foo > > box2 $ ls > > box2 $ (nothing shows up) > > box2 $ cd bar > > box2 $ cd .. > > box2 $ ls > > bar > > box2 $ > > > > > > Q: how do I get all of the directories under /foo to show up after it's > > automounted? > > > > /etc/auto.master > > /foo /etc/auto.foo --timeout=60 > > > > /etc/auto.foo > > (all on one line) > > * / > > -fstype=nfs,rsize=32768,wsize=32768,tcp,rw,bg,hard,intr,noacl,nocto,async > > 10.20.30.40:/foo/& > > How would autofs know what these directories are, to create them, from > that map, * doesn't really say much and, even though this map has an ip > address in the location others may not?
I though '*' said everything ;) > > Ian > So, the problem is auto.foo. I don't want it to make individual mounts to every dir in /foo, I just want it to mount /foo when someone accesses /foo/whatever. I'm assuming it should look like: (all on one line) /foo / -fstype=nfs,rsize=32768,wsize=32768,tcp,rw,bg,hard,intr,noacl,nocto,async 10.20.30.40:/foo/ I like the fact that /foo is disconnected automatically, so I don't want to use fstab. Thanks, -C _______________________________________________ autofs mailing list [email protected] http://linux.kernel.org/mailman/listinfo/autofs
