I'm not sure I entirely understand what you're shooting for but a snip from my
auto.homes looks like this:

    myname    -rw,soft,intr    homeserv:/big1/home1/myname
    yourname  -rw,soft,intr    homeserv:/big1/home2/yourname

and results in mounts that looks like this:

    /homes/myname
    /homes/yourname

Is this what you're looking for?

P.S.

the NIS version (ypcat) of auto.homes doesn't have the first field... Just the
mont options and the source server export.

Mr E_T wrote:

> if I use your methodology I would mount the nfs dir to /home/user/dir
> and end up with /home/user/dir/dir
> I do not want the second dir
>
> As I understand it the /home/user/dir is the mount point for autofs and
> then a key dir is specified - dir but this places too many subdirs in the
> chain.
>
> I would like the mount point /home/user/dir to also be the key
>
> as in the nfs dir would be mounted to /home/user/dir as well as the autofs
> dir
>
> so that my key file would look somthing like -
> .       -fstype=nfs,rw          some.host://home/user/dir
>
> some.host is on another machine
>
> currently I mount is as
> mount -t nfs some.host:/home/user/dir /home/user/dir
>
> regs MR_ET
>
>  On Tue, 16 Jan 2001, H. Peter Anvin wrote:
>
> > Mr E_T wrote:
> > >
> > > is it posible to have the mount point and key to be the same directory
> > >
> > > I wish to mount 1 directory onto a single mount point and use the same
> > > mount point as the key
> > >
> > > eg -
> > > I wish to mount some.puter:/home/user/dir as /home/user/dir
> > >
> > > but if I specify /home/user as the mount point the entire directory is
> > > hidden and if /home/user/dir is specified then I get an extra redirection
> > > which upsets configured programs.
> > >
> > > hence I wish to mount a sporadic directory to a fixed point.
> > >
> > > Is this possible using autofs?
> > >
> >
> > I am not sure what you're talking about, but I suspect what you want is
> > bind mounts which are supported with 2.4 kernels, mount 2.10o and autofs
> > 3.1.7.
> >

Reply via email to