Automount nfs set up problem

Peng Yu pengyu.ut at gmail.com
Wed Jul 21 15:46:57 UTC 2010


Hi,

I'm following the following webpage.

https://help.ubuntu.com/community/SettingUpNFSHowTo#Automounter

I newly installed autofs

$ sudo apt-get install autofs

I created the directory /autofs. The I added the following line to
/etc/auto.master

/autofs	/etc/auto.home


The edit the file /etc/auto.home by adding the following line.

$ cat /etc/auto.home

*        xxx.xxx.xxx.xxx:/home/&

, where I adapted the line from /etc/fstab.

xxx.xxx.xxx.xxx:/home    /home   nfs     rw      0       0

Then I tried the following command to start it up.

$ sudo /etc/init.d/autofs start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service autofs start

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. service autofs start


#####
Since it asks me to use 'service', then I try the following command.
But it doens't seem to be working.

$ service autofs start
start: Rejected send message, 1 matched rules; type="method_call",
sender=":1.57" (uid=1100 pid=4064 comm="start)
interface="com.ubuntu.Upstart0_6.Job" member="Start" error
name="(unset)" requested_reply=0 destination="com.ubuntu.Upstart"
(uid=0 pid=1 comm="/sbin/init"))

I'm not sure what the problems are. Would you please let me know how
to automount nfs or point me a better webpage?

-- 
Regards,
Peng




More information about the ubuntu-users mailing list