cgmd Veteran
Joined: 17 Feb 2005 Posts: 1585 Location: Louisiana
|
Posted: Sat Apr 14, 2007 12:53 am Post subject: I can't make autofs mount network samba shares... |
|
|
Hi...
I'm on a local network with gentoo on my laptop as well as a machine for data storage (//dataserver/data). All networked machines can mount (//dataserver/data), using the following line in /etc/fstab: Code: |
//dataserver/data /home/DataServ smbfs exec,dev,suid,credentials=/etc/conf.d/dataserv-pw,uid=cgmd,gid=users 0 0 |
For my laptop, I use the noauto option in fstab, but I can manually mount //dataserver/data, as necessary: Code: |
mount -t smbfs //dataserver/data /home/DataServ/ -o username=cgmd,password=mypasswd |
I want to have the laptop automount //dataserver/data, when needed, rather than have a manual (and continuous) mount. The Automount HOWTO seems to offer a perfect solution. My problem is getting it to work...
I have tried several different configurations, and currently have for /etc/autofs/auto.master: Code: |
/mnt/auto /etc/autofs/auto.auto --timeout=30 --ghost |
In /etc/autofs/auto.auto I have: Code: |
data -fstype=smbfs,credentials=/etc/smb.auth ://dataserver/data
|
When I start autofs, its demon starts as expected: Code: |
* Starting automounter ...
/mnt/auto [ ok ]
|
And the directory /mnt/auto/ is created, but it is empty.
/var/log/messages shows: Code: |
Apr 14 11:48:34 localhost automount[23743]: lookup(program): lookup for data failed
Apr 14 11:48:34 localhost automount[23743]: failed to mount /mnt/auto/data |
The following are my mounted devices: Code: |
cgmd # mount
/dev/sda3 on / type ext3 (rw,noatime)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
udev on /dev type tmpfs (rw,nosuid)
devpts on /dev/pts type devpts (rw,nosuid,noexec)
/dev/sda1 on /boot type ext2 (rw,noatime)
/dev/sda6 on /home type ext3 (rw,noatime)
/dev/sda5 on /usr/portage type xfs (rw,noatime,logbufs=8)
shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)
usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
automount(pid11241) on /mnt/auto type autofs (rw,fd=4,pgrp=11241,minproto=2,maxproto=4)
|
I have attempted a multitude of different configs for /etc/autofs/auto.auto, but nothing seems to work.
Would someone more familiar with this process please give me some pointers??
Thanks! _________________ "Primum non nocere" ---Galen
Last edited by cgmd on Sun Apr 15, 2007 3:30 pm; edited 2 times in total |
|