[Samba] Automounting

Noel Kelly nkelly at citrusnetworks.net
Tue Jan 28 21:16:54 GMT 2003


Hi,

'autofs status' gives me:

[root at medulla /root]# /etc/init.d/autofs status
Configured Mount Points:
------------------------
/usr/sbin/automount --timeout 60 /misc file /etc/auto.misc
/usr/sbin/automount --timeout 60 /ukfax file /etc/auto.ukfax
/usr/sbin/automount --timeout 60 /cortex file /etc/auto.cortex

Active Mount Points:
--------------------
/usr/sbin/automount --timeout 60 /misc file /etc/auto.misc
/usr/sbin/automount --timeout 60 /ukfax file /etc/auto.ukfax
/usr/sbin/automount --timeout 60 /cortex file /etc/auto.cortex
[root at medulla /root]#

and 'df' gives me:

[root at medulla /root]# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda6              3937220   2395084   1342132  65% /
/dev/sda1                54416      3853     47754   8% /boot
/dev/sdb1             35515412   8040072  25671244  24% /novanet
[root at medulla /root]#

The automount points are not listed.....


HTH,
Noel




-----Original Message-----
From: 'Johan Svedberg' [mailto:winkle at acc.umu.se]
Sent: 28 January 2003 19:56
To: Noel Kelly
Subject: Re: [Samba] Automounting


* 030128 20:04 Noel Kelly <nkelly at citrusnetworks.net>:
>> -----Original Message-----
>> From: Johan Svedberg [mailto:winkle at acc.umu.se]
>> Sent: 28 January 2003 18:03
>> To: samba at lists.samba.org
>> Subject: [Samba] Automounting
>>
>>
>> Hi, all!
>>
>> I'm having some problems automounting Windows shares from my Debian
>> GNU/Linux system. However, doing it manually with
>>
>>     mount -t smbfs -o username=Johan,password=foobar //nisse/C
>>     /var/autofs/nisse/
>>
>> works flawless.
>>
>> I'm totaly new with autofs so I don't know if I'm my setup is right, but
>> this is what I've done;
>>
>> /etc/auto.master:
>>
>>     /var/autofs/nisse       /etc/auto.nisse
>>
>> /etc/auto.nisse:
>>
>>     nisse   -fstype=smbfs,username=Johan,password=foobar    ://nisse/C
>>
>> I don't know if it's useful but this is what I see in syslog:
>>
>>     Jan 28 18:17:30 bettan automount[218]: starting automounter version
>>     4.0.0, path = /var/autofs/nisse, maptype = file, mapname =
>>     /etc/auto.nisse
>>     Jan 28 18:17:30 bettan automount[218]: Map argc = 1
>>     Jan 28 18:17:30 bettan automount[218]: Map argv[0] = /etc/auto.nisse
>>     Jan 28 18:17:30 bettan automount[218]: mount(bind): bind_works = 1
>>
>> What am I missing here? :)

> Your automount setup looks fine to me.  I was comparing it to my working
one
> here and cannot see any difference except I use IP addresses in my target
> share names:

Another difference is that you are using a lower timeout.

> [root at medulla /root]# cat /etc/auto.master
> # $Id: auto.master,v 1.2 1997/10/06 21:52:03 hpa Exp $
> # Sample auto.master file
> # Format of this file:
> # mountpoint map options
> # For details of the format look at autofs(8).
> /ukfax  /etc/auto.ukfax         --timeout=60
> /cortex /etc/auto.cortex        --timeout=60

[...]

> If I then do an 'ls /cortex/docs' the share is automounted and I see the
> dir-isting from the NT server.  You are triggering the automount by
> attempting access on the mount point?

Yes, but df shows that it doesn't even get mounted (when I use autofs).

I'm suspecting that it might have something to do with that the PCMCIA
gets reset:ed by cardctl (and then goes active again) after the autofs
has been run:ed. But issueing /etc/init.d/autofs stop and then start
wont work either.

Tell me, what output does '/etc/init.d/autofs status' give you?

Mine shows:

    Configured Mount Points:
    ------------------------
    /usr/sbin/automount --timeout=300 /var/autofs/nisse file /etc/auto.nisse

    Active Mount Points:
    --------------------
    /usr/sbin/automount --pid-file=/var/run/autofs/_:var_:autofs_:nisse.pid
    --timeout=300 /var/autofs/nisse file /etc/auto.nisse

Gah, this is driving me nuts since it works so nice doing it from the
commandline...

PS. Don't forget to Cc me since I'm not subscribed.

Regards,

-- 
Johan Svedberg, winkle at acc.umu.se, http://www.acc.umu.se/~winkle


More information about the samba mailing list