> -----Message d'origine-----
> De: Horst Simon [mailto:[EMAIL PROTECTED]]
> I changed recently fom RH6.1 to SUSE6.3 and try to get the automount
> going again. No problems to automount floppy and cdrom.
> In RH6.1 I used the amd to soft mount the exported partitions from the
> Solaris hosts. I never had to configure it , because it work straight
> after the install.
> In SuSE 6.3 I try to do the same using autofs. I followed the
> information given in the Automounter HOWTO, but it doesn't work.
> I tried too some changes to the auto.net file from
> information found on
> Deja, but this gave me only the servers names in the /net directory.
> # $Id: auto.master,v 1.2 1997/10/06 21:52:03 hpa Exp $
> /misc /etc/auto.misc
> /net /etc/auto.net
>
> # auto.net file
> * -fstype=autofs,-Dhost=& file:/etc/auto.netsub
>
> # auto.netsub file
> * ${host}:/&
> error messages:
> Feb 25 15:31:29 hsimon automount[394]: attempting to mount entry
> /net/iceman
> Feb 25 15:31:29 hsimon automount[458]: lookup(file): looking up iceman
> Feb 25 15:31:29 hsimon automount[458]: lookup(file): iceman ->
> -fstype=nfs,-Dhost=&^I^Ifile:/etc/auto.netsub^I
> Feb 25 15:31:29 hsimon automount[458]: expanded entry:
> -fstype=nfs,-Dhost=iceman^I^Ifile:/etc/auto.netsub^I
> Feb 25 15:31:29 hsimon automount[458]: parse(sun): gathered options:
> fstype=nfs,-Dhost=iceman
> Feb 25 15:31:29 hsimon automount[458]: parse(sun): core of entry:
> file:/etc/auto.netsub
> Feb 25 15:31:30 hsimon automount[458]: mount(nfs): entry iceman: host
> file: lookup failure
seems like autofs does not accept a host=iceman
while calling a file:/filename submount
why not a -Dprefix=& instead of a -Dhost=&
(I have read this somewhere)
>
> The hostnames are in the hosts file and the shares can be mounted
> manually. Can anyone please tell me what I am doing wrong.
anyway I was'nt able to make it work myself with this kind of map.
note that if all works as documented,
you can only mount
host:/dir
volumes and not
host:/dir/subdir
or further
host:/dir/subdir/subsubdir/subsubsubdir
I've made program map that use
showmount -e to explore mount point hierarchy
and dynamically mount any
/net/host/dir/subdir/subsubdir/and-so-on
/net/host/dir/subdir/subsubdir/and-even-this
/net/host/dir/subdir/and-even/that
It is kindly hosted at:
http://www.paralline.net/projets/autofs_slashnet/index.en.html
quickly written but works.
(also include SMB automount)
there is also a autofs patch done by
Jeremy Fitzhardinge [[EMAIL PROTECTED]]
(Patches are available at http://www.goop.org/~jeremy/autofs.)
that allow tree mount
(map may return a list and a tree is build accordingly)...
He have presented it in this mailing list earlier.
--
Alain Coetmeur, Informatique-CDC DTA
mailto:[EMAIL PROTECTED]