Why autofs is like fresh ground coffee.......it's a fraud.the

Fresh ground coffee is such a fraud - it always smells better than the brewed coffee tastes. Like coffee, the idea of autofs is very attractive - it just doesn’t work, for me at any rate.

I have no difficulty mounting nfs files that originate on a desktop server on either of my laptops, one running opensuse 11.3, one running opensuse 11.4. But I can’t seem to make autofs work. Both laptops have KDE3 desktops, but it made no difference with KDE4 desktops.

Here is the current situation.

On my desktop I export my home directory, /home/rsmits. On my 11.3 laptop, I can mount it with the command
mount 192.168.0.110:/home/rsmits /home/rsmits/Network/Desktop
My exported directory then shows up in /home/rsmits/Network/Desktop. I can read and write to it, no problem.

When I try to follow the directions in the thread How to mount NFS Server with autofs to add autofs, it just doesn’t work - it tells me no such directory exists.

Here is my auto.master file.

Sample auto.master file

This is an automounter map and it has the following format

key -mount-options-separated-by-comma ] location

For details of the format look at autofs(5).

#/misc /etc/auto.misc

NOTE: mounts done from a hosts map will be mounted with the

“nosuid” and “nodev” options unless the “suid” and “dev”

options are explicitly given.

/mnt/DataServer /etc/auto.misc --timeout=10

#/net -hosts

Include central master map if it can be found using

nsswitch sources.

Note that if there are entries for /net or /misc (as

above) in the included master map any keys that are the

same will not be seen as the first read key seen takes

precedence.

+auto.master

Here is my auto.misc file

This is an automounter map and it has the following format

key -mount-options-separated-by-comma ] location

Details may be found in the autofs(5) manpage

cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom

the following entries are samples to pique your imagination

#linux -ro,soft,intr ftp.example.org:/pub/linux
#boot -fstype=ext2 :/dev/hda1
#floppy -fstype=auto :/dev/fd0
#floppy -fstype=ext2 :/dev/fd0
#e2floppy -fstype=ext2 :/dev/fd0
#jaz -fstype=ext2 :/dev/sdc1
#removable -fstype=ext2 :/dev/hdd
Data -fstype=nfs,rw,soft,intr,nosuid,nodev,tcp,retry=10,rsize=32768,wsize=32768 192.168.0.110:/home/rsmits

When I look at Yast, system, system services runlevel, it tells me autofs, nfs and rpcbind are all running.

Nothing ever shows up in /mnt/DataServer as it should.

Please, please, please. To make your posts as readable/understandable as possible do put all computer texts (copied/pasted) between CODE tags: Posting in Code Tags - A Guide

Also, do not say something like “On my desktop I export my home directory, /home/rsmits. On my 11.3 laptop, I can mount it with the command”, but something like: "on the NFS server:

henk@boven:~> cat /etc/exports
/home/wij       beneden.henm.xs4all.nl(rw,sync,no_subtree_check)
henk@boven:~> 

I recommend using a separate file /etc/auto.DataServer rather than your modification to auto.misc. The file /etc/auto.master should contain the line

/mnt/DataServer /etc/auto.DataServer --timeout=10

The file /etc/auto.DataServer would look like


Desktop   -intr,nosuid  192.168.0.110:/home/rsmits

After restarting autofs, you should be able to execute the command

ls /mnt/DataServer/Desktop

and see a list of file.

Hooray!!! At last it works! THANKS ! ever so much for pointing me in the correct direction!

Thanks again, Bob.