Solved

linux autfs question

Posted on 2011-03-15
2
472 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

930 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

13 Experts available now in Live!

Get 1:1 Help Now