How can I drop smbmount mounts easily ?

R.C.Pasianot pasianot at cnea.gov.ar
Thu Aug 22 14:12:14 GMT 2002


 Thanks Urban for the detailed answer, though couldn't succeed by 
 following your path. Here's the story if you care to know.

 Got kernel 2.4.19 and applied your patch. Unable to boot, seems
 2.4.19 doesn't like (my) channel bonding. Took my old 2.4.10 and
 applied your 2.4.4 poll patch. Better, but still 2min timeout for
 a harmless df.

 Headed for autofs as Roger suggested. Being a newby to autofs it
 took me a while to figure out the "invisible mount point" bug and
 the symbolic link workarround (why man page is silent on this ???).
 A little oversized solution but works, so for the time being I feel 
 like sticking to autofs.


 Cheers,

 Roberto

On Mon, 19 Aug 2002, Urban Widmark wrote:

> On Fri, 16 Aug 2002, R.C.Pasianot wrote:
> 
> >  Please note I'm not a member, so I apologize if this has been asked
> >  before. May be a good soul can point me into the right direction.
> 
> Lots of times. There is a searchable list archive at:
> http://marc.theaimsgroup.com
> (search the samba list, smb-clients isn't very active)
> 
> I think a google search should find a few answers too ...
> 
> 
> >  Question: Is there an easy way to drop smbmount connections when they
> >            are no more in use ?
> 
> ... but perhaps you didn't find anything since you have the question
> backwards :) Dropping the connection doesn't help because smbfs calls on
> smbmount to reconnect if it is lost. What you want is that smbfs shouldn't
> get stuck.
> 
> >  Details:
> >  I'm running samba 2.0.7 under Linux. Windows users access this sever
> >  and smbmount their Windows discs. At the end of the day some of these
> >  users turn off their machines without smbumounting their discs first.
> 
> Kernel version? Some older versions always tried to send a disconnect 
> message when umounting, and would end up getting stuck waiting for a reply 
> ...
> 
> 2.4.19 is sure to have this fixed, and if you are going to rebuild you may 
> want to apply this patch first:
> 
> http://www.hojdpunkten.ac.se/054/samba/smbfs-2.4.19-pre9-poll.patch
> (also in 2.4.20-pre3)
> 
> It helps smbfs timeout if it doesn't get answers to its requests. And this
> prevents things like df from getting stuck.
> 
> /Urban
> 




More information about the smb-clients mailing list