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_h ome /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_h ome
[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.
[root@localhost etc]# mount -t nfs 192.168.0.175:/home/auto_h
[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_h
[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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER