Automounting
Hi, everybody!
I'm having some problems automounting Windows shares from my Debian
GNU/Linux system running unstable. However, mounting it manually with:
root@bettan:/import $ mount -t smbfs -o username=Johan,password=foobar
//nisse/C /import/nisse
works flawless. So it's not a Windows problem(!) :)
I'm quite new with autofs so I don't know if I'm my setup is right,
although people have reported that this works for them. Anyway this is
what I've done:
root@bettan:/etc $ cat auto.master | sed -e '/^#/d' -e '/^$/d'
/import /etc/auto.nisse
root@bettan:/etc $ cat auto.nisse | sed -e '/^#/d' -e '/^$/d'
nisse -fstype=smbfs,username=johan,password=foobar ://nisse/C
Some other information that might be useful:
root@bettan:~ $ /etc/init.d/autofs status
Configured Mount Points:
------------------------
/usr/sbin/automount --timeout=300 /import file /etc/auto.nisse
Active Mount Points:
--------------------
/usr/sbin/automount --pid-file=/var/run/autofs/_:import.pid
--timeout=300 /import file /etc/auto.nisse
root@bettan:~ $ df -a
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 5573936 975708 4315084 19% /
proc 0 0 0 - /proc
devpts 0 0 0 - /dev/pts
automount(pid219) 0 0 0 - /import
I'm suspecting all this might have something to do with the fact that I'm
trying this from a laptop using PCMCIA, and I don't actually get net
connection until after automount has been started at boot. But doing
/etc/init.d/autofs stop followed by /etc/init.d/autofs start didn't work
either. Neither did changing the order it starts at boot time.
Finaly, this is what I get from syslog:
Jan 29 19:40:52 bettan automount[219]: starting automounter version
4.0.0, path = /import, maptype = file, mapname = /etc/auto.nisse
Jan 29 19:40:52 bettan automount[219]: Map argc = 1
Jan 29 19:40:52 bettan automount[219]: Map argv[0] = /etc/auto.nisse
Jan 29 19:40:52 bettan automount[219]: mount(bind): bind_works = 1
Jan 29 19:40:52 bettan automount[219]: using kernel protocol version 4
Jan 29 19:40:52 bettan automount[219]: using timeout 300 seconds; freq
75 secs
Any ideas?
PS. Please Cc me since I'm not subscribed. Thanks.
Regards,
--
Johan Svedberg, winkle@acc.umu.se, http://www.acc.umu.se/~winkle
Reply to: