Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I can't make autofs mount network samba shares...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
cgmd
Veteran
Veteran


Joined: 17 Feb 2005
Posts: 1585
Location: Louisiana

PostPosted: Sat Apr 14, 2007 12:53 am    Post subject: I can't make autofs mount network samba shares... Reply with quote

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
Back to top
View user's profile Send private message
cgmd
Veteran
Veteran


Joined: 17 Feb 2005
Posts: 1585
Location: Louisiana

PostPosted: Sun Apr 15, 2007 3:26 pm    Post subject: Reply with quote

This is a more fundamental problem...

Reposting in Kernel & Hardware.
_________________
"Primum non nocere" ---Galen
Back to top
View user's profile Send private message
EWestbrook
n00b
n00b


Joined: 18 Jun 2007
Posts: 6

PostPosted: Fri Jun 22, 2007 3:40 pm    Post subject: Where? Reply with quote

I am having this same symptom. Where did you repost exactly (link pls)? I'd like to follow up.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum