Solved

linux autfs question

Posted on 2011-03-15
2
471 Views
Last Modified: 2012-05-11
I'm trying to setup autofs to mount the directory and not working, but  I have mounted manually and working fine. What am I doing wrong here?

[root@localhost etc]# mount -t nfs 192.168.0.175:/home/auto_home /home
[root@localhost etc]# cd  /home
[root@localhost home]# ls
ghuru


Auto mount setup:

[root@localhost etc]# cat  /etc/auto.master
/misc   /etc/auto.misc
/home   /etc/auto.home
/net    -hosts
+auto.master

[root@localhost etc]# cat  /etc/auto.home
storage         soft,timeo=30,rw        192.168.0.175:/home/auto_home

[root@localhost home]# cat  /etc/nsswitch.conf  |  grep  -i automount
automount:  files nisplus

[root@localhost ~]# /etc/init.d/autofs restart
Stopping automount:                                        [  OK  ]
Starting automount:                                        [  OK  ]
[root@localhost ~]# cd /home/storage
bash: cd: /home/storage: No such file or directory

thanks in advance.
0
Comment
Question by:mokkan
2 Comments
 
LVL 12

Accepted Solution

by:
upanwar earned 500 total points
ID: 35144121
Try this is auto.home.

storage         -fstype=nfs,soft,timeo=30,rw        192.168.0.175:/home/auto_home

and restart the autofs service and check.



0
 

Author Closing Comment

by:mokkan
ID: 35144137
That worked.  thank you.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now