Mount CIFS share with autofs
Posted
by
Phanto
on Server Fault
See other posts from Server Fault
or by Phanto
Published on 2011-01-06T21:28:51Z
Indexed on
2011/01/06
21:55 UTC
Read the original article
Hit count: 284
I have a system running RHEL 5.5, and I am trying to mount a Windows share on a server using autofs
. (Due to the network not being ready upon startup, I do not want to utilize fstab
.) I am able to mount the shares manually, but autofs
is just not mounting them.
Here are the files I am working with:
At the end of /etc/auto.master
, I have:
## Mount this test share:
/test /etc/auto.test --timeout=60
In /etc/auto.test
, I have:
test -fstype=cifs,username=testuser,domain=domain.com,password=password ://server/test
I then restart the autofs
service.
However, this does not work. ls
-ing the directory does not return any results. I have followed all these guides on the web, and I either don't understand them, or they.just.don't.work.
Thank You
© Server Fault or respective owner