How to setup Automount/Autofs

Posted by matt wilkie on Ask Ubuntu See other posts from Ask Ubuntu or by matt wilkie
Published on 2010-11-30T12:38:42Z Indexed on 2010/12/30 16:01 UTC
Read the original article Hit count: 568

Filed under:
|
|

I've followed the ubuntu help docs for setting up NFSv4 on a server running Ubuntu 10.4LTS and now I'm trying to get Autofs (on ubuntu 10.10) to mount the exports, following these instructions. So far it doesn't work.

Where the docs say server -fstype=nfs4 server:/ I'm supposed to replace 'server' with my server's hostname right? If yes, should that be server-foo or server-foo.local?

# Sample /etc/auto.master file
#  --- comments snipped --8<--
+auto.master            # pre-existing
/nfs   /etc/auto.nfs    # added by me

.

# manually created /etc/auto.nfs
ubuntu-server.local   -fstype=nfs4   ubuntu-server.local:/

ls /nfs/ubuntu-server /nfs/ubuntu-server.local shows nothing. What's the next troubleshooting step?

© Ask Ubuntu or respective owner

Related posts about installation

Related posts about automount