Link to home
Start Free TrialLog in
Avatar of mokkan
mokkan

asked on

linux autfs question

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.
ASKER CERTIFIED SOLUTION
Avatar of upanwar
upanwar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mokkan
mokkan

ASKER

That worked.  thank you.