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.