Automount nfs set up problem

Peng Yu pengyu.ut at
Wed Jul 21 20:12:40 UTC 2010

On Wed, Jul 21, 2010 at 11:08 AM, Tom H <tomh0665 at> wrote:
> On Wed, Jul 21, 2010 at 11:46 AM, Peng Yu <pengyu.ut at> wrote:
>> I'm following the following webpage.
>> 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
>> *
>> , where I adapted the line from /etc/fstab.
>>    /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?
> sudo service autofs start
> or
> sudo start autofs

I was silly not to see that I should have used sudo. Thank you!

I have another simple question below.

I have the following lines in my /etc/fstab. I want migrate them to autofs.    /data   nfs     rw      0       0
yyy.yyy.yyy.yyy:/pearson/data    /pearson/data   nfs     rw      0
zzz.zzz.zzz.zzz:/storage    /storage   nfs     rw      0

Should I create a different file say /etc/auto.something and add the
following line to /etc/auto.master,

/     /etc/auto.something

where in auto.something, I have the following lines?

pearson/data   yyy.yyy.yyy.yyy:/pearson/data
storage      zzz.zzz.zzz.zzz:/storage

Would you please let me know where this is correct? Or what is the
correct way if it is incorrect?


More information about the ubuntu-users mailing list