• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 481
  • Last Modified:

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 /home
[root@localhost etc]# cd  /home
[root@localhost home]# ls

Auto mount setup:

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

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

[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.
1 Solution
Try this is auto.home.

storage         -fstype=nfs,soft,timeo=30,rw

and restart the autofs service and check.

mokkanAuthor Commented:
That worked.  thank you.

Featured Post

Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

Tackle projects and never again get stuck behind a technical roadblock.
Join Now