?
Solved

linux autfs question

Posted on 2011-03-15
2
Medium Priority
?
480 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
upanwar earned 2000 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

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

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

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

649 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