Networking Forums

Networking Forums > Computer Networking > Linux Networking > Need Workaround for Samba/WinXP madness

Reply
Thread Tools Display Modes

Need Workaround for Samba/WinXP madness

 
 
Norm Dresner
Guest
Posts: n/a

 
      03-13-2005, 08:21 PM
Actually it's only one specific WinXP system on the network but it's
maddening because it's not only mine but also my personal e-mail computer as
well.

Anyway, in the heterogeneous network consisting of several Linux boxes with
various system versions, a few SGI IRIX machines, and PCs with four
different versions of Windows, there's one that's driving me crazy. If I
mount a shared folder with smbclient from this PC -- and only this PC --
then everything works perfectly for a while, but if I simply let the
connection sit idle for a period of time -- probably several 10's of minutes
[though I've never done a formal experiment], then the WinXP machine seems
to have forgotten about the connection but the Linux box hasn't and any
process that attempts to reference this connections hangs. The only way
I've found to recover from this is to reboot the Linux machine. I have no
problems at all with other WinXP, nor Win2K, WinME, or Win98 PCs. While
each PC has a fairly unique software load, I've set up the two WinXP
machines myself and (I think) the networking complement is more or less "the
same".

As long as I remember to connect, do whatever I need to, and disconnect,
then everything and everyone is happy. But if I forget -- maybe once every
few days -- then I need to reboot my Linux box. Since I don't think it's
worth spending a lot of time to debug this problem, I'd want a workaround
that would automatically unmount the WinXP share after a set period of
inactivity. I guess a second choice would be to disconnect it a fixed
length of time after connecting, perhaps 5-10 minutes or so. I could
probably do this with a script file that mounted the share, did an
appropriate sleep, and then unmounted it. I'd need all sorts of checking
like killing this if I remember to manually disconnect or if I'm doing a
very long transfer or even if I go to reconnect.

Since the option to disconnect after a fixed period of inactivity is so much
more appealing, I'd really like to find some way to implement it, but I'd
also like to limit the amount of time I spend on this annoyance.

Suggestions, hints, URLs and even sincere expressions of sympathy are
welcome.

TIA
Norm

 
Reply With Quote
 
 
 
 
Malke
Guest
Posts: n/a

 
      03-14-2005, 12:55 PM
Norm Dresner wrote:

> Actually it's only one specific WinXP system on the network but it's
> maddening because it's not only mine but also my personal e-mail
> computer as well.
>
> Anyway, in the heterogeneous network consisting of several Linux boxes
> with various system versions, a few SGI IRIX machines, and PCs with
> four
> different versions of Windows, there's one that's driving me crazy.
> If I mount a shared folder with smbclient from this PC -- and only
> this PC -- then everything works perfectly for a while, but if I
> simply let the connection sit idle for a period of time -- probably
> several 10's of minutes
> [though I've never done a formal experiment], then the WinXP machine
> [seems
> to have forgotten about the connection but the Linux box hasn't and
> any
> process that attempts to reference this connections hangs. The only
> way
> I've found to recover from this is to reboot the Linux machine. I
> have no
> problems at all with other WinXP, nor Win2K, WinME, or Win98 PCs.
> While each PC has a fairly unique software load, I've set up the two
> WinXP machines myself and (I think) the networking complement is more
> or less "the same".
>
> As long as I remember to connect, do whatever I need to, and
> disconnect,
> then everything and everyone is happy. But if I forget -- maybe once
> every
> few days -- then I need to reboot my Linux box. Since I don't think
> it's worth spending a lot of time to debug this problem, I'd want a
> workaround that would automatically unmount the WinXP share after a
> set period of
> inactivity. I guess a second choice would be to disconnect it a fixed
> length of time after connecting, perhaps 5-10 minutes or so. I could
> probably do this with a script file that mounted the share, did an
> appropriate sleep, and then unmounted it. I'd need all sorts of
> checking like killing this if I remember to manually disconnect or if
> I'm doing a very long transfer or even if I go to reconnect.
>
> Since the option to disconnect after a fixed period of inactivity is
> so much more appealing, I'd really like to find some way to implement
> it, but I'd also like to limit the amount of time I spend on this
> annoyance.
>
> Suggestions, hints, URLs and even sincere expressions of sympathy are
> welcome.
>
> TIA
> Norm


Look at the network adapter's Properties from Device Manager on that XP
box. Click on the Power Management tab and make sure that the box to
allow Windows to turn off the device when not in use is *not* checked.

Malke
--
"I have a cunning plan..."
 
Reply With Quote
 
Norm Dresner
Guest
Posts: n/a

 
      03-14-2005, 05:41 PM
"Malke" <(E-Mail Removed)> wrote in message
news:Nu2dnWITHeh2CqjfRVn-(E-Mail Removed)...
> Norm Dresner wrote:
>
> > Actually it's only one specific WinXP system on the network but it's
> > maddening because it's not only mine but also my personal e-mail
> > computer as well.
> >
> > Anyway, in the heterogeneous network consisting of several Linux boxes
> > with various system versions, a few SGI IRIX machines, and PCs with
> > four
> > different versions of Windows, there's one that's driving me crazy.
> > If I mount a shared folder with smbclient from this PC -- and only
> > this PC -- then everything works perfectly for a while, but if I
> > simply let the connection sit idle for a period of time -- probably
> > several 10's of minutes
> > [though I've never done a formal experiment], then the WinXP machine
> > [seems
> > to have forgotten about the connection but the Linux box hasn't and
> > any
> > process that attempts to reference this connections hangs. The only
> > way
> > I've found to recover from this is to reboot the Linux machine. I
> > have no
> > problems at all with other WinXP, nor Win2K, WinME, or Win98 PCs.
> > While each PC has a fairly unique software load, I've set up the two
> > WinXP machines myself and (I think) the networking complement is more
> > or less "the same".
> >
> > As long as I remember to connect, do whatever I need to, and
> > disconnect,
> > then everything and everyone is happy. But if I forget -- maybe once
> > every
> > few days -- then I need to reboot my Linux box. Since I don't think
> > it's worth spending a lot of time to debug this problem, I'd want a
> > workaround that would automatically unmount the WinXP share after a
> > set period of
> > inactivity. I guess a second choice would be to disconnect it a fixed
> > length of time after connecting, perhaps 5-10 minutes or so. I could
> > probably do this with a script file that mounted the share, did an
> > appropriate sleep, and then unmounted it. I'd need all sorts of
> > checking like killing this if I remember to manually disconnect or if
> > I'm doing a very long transfer or even if I go to reconnect.
> >
> > Since the option to disconnect after a fixed period of inactivity is
> > so much more appealing, I'd really like to find some way to implement
> > it, but I'd also like to limit the amount of time I spend on this
> > annoyance.
> >
> > Suggestions, hints, URLs and even sincere expressions of sympathy are
> > welcome.
> >
> > TIA
> > Norm

>
> Look at the network adapter's Properties from Device Manager on that XP
> box. Click on the Power Management tab and make sure that the box to
> allow Windows to turn off the device when not in use is *not* checked.
>
> Malke


I've never seen that option before but it was, in fact, checked. I admit
that I don't see how that might affect this problem since any new accesses
to the computer via the local network seem to work just fine from other
boxes, but I have unchecked it and I will try and see if it makes a
difference.

thanks
Norm

 
Reply With Quote
 
Norm Dresner
Guest
Posts: n/a

 
      03-14-2005, 08:34 PM
"Norm Dresner" <(E-Mail Removed)> wrote in message
news:3VkZd.135792$(E-Mail Removed)...
> "Malke" <(E-Mail Removed)> wrote in message
> news:Nu2dnWITHeh2CqjfRVn-(E-Mail Removed)...
> > Norm Dresner wrote:
> >
> > > Actually it's only one specific WinXP system on the network but it's
> > > maddening because it's not only mine but also my personal e-mail
> > > computer as well.
> > >
> > > Anyway, in the heterogeneous network consisting of several Linux boxes
> > > with various system versions, a few SGI IRIX machines, and PCs with
> > > four
> > > different versions of Windows, there's one that's driving me crazy.
> > > If I mount a shared folder with smbclient from this PC -- and only
> > > this PC -- then everything works perfectly for a while, but if I
> > > simply let the connection sit idle for a period of time -- probably
> > > several 10's of minutes
> > > [though I've never done a formal experiment], then the WinXP machine
> > > [seems
> > > to have forgotten about the connection but the Linux box hasn't and
> > > any
> > > process that attempts to reference this connections hangs. The only
> > > way
> > > I've found to recover from this is to reboot the Linux machine. I
> > > have no
> > > problems at all with other WinXP, nor Win2K, WinME, or Win98 PCs.
> > > While each PC has a fairly unique software load, I've set up the two
> > > WinXP machines myself and (I think) the networking complement is more
> > > or less "the same".
> > >
> > > As long as I remember to connect, do whatever I need to, and
> > > disconnect,
> > > then everything and everyone is happy. But if I forget -- maybe once
> > > every
> > > few days -- then I need to reboot my Linux box. Since I don't think
> > > it's worth spending a lot of time to debug this problem, I'd want a
> > > workaround that would automatically unmount the WinXP share after a
> > > set period of
> > > inactivity. I guess a second choice would be to disconnect it a fixed
> > > length of time after connecting, perhaps 5-10 minutes or so. I could
> > > probably do this with a script file that mounted the share, did an
> > > appropriate sleep, and then unmounted it. I'd need all sorts of
> > > checking like killing this if I remember to manually disconnect or if
> > > I'm doing a very long transfer or even if I go to reconnect.
> > >
> > > Since the option to disconnect after a fixed period of inactivity is
> > > so much more appealing, I'd really like to find some way to implement
> > > it, but I'd also like to limit the amount of time I spend on this
> > > annoyance.
> > >
> > > Suggestions, hints, URLs and even sincere expressions of sympathy are
> > > welcome.
> > >
> > > TIA
> > > Norm

> >
> > Look at the network adapter's Properties from Device Manager on that XP
> > box. Click on the Power Management tab and make sure that the box to
> > allow Windows to turn off the device when not in use is *not* checked.
> >
> > Malke

>
> I've never seen that option before but it was, in fact, checked. I admit
> that I don't see how that might affect this problem since any new accesses
> to the computer via the local network seem to work just fine from other
> boxes, but I have unchecked it and I will try and see if it makes a
> difference.
>
> thanks
> Norm
>


Okay, I unchecked the option and have rebooted. I made the connection from
Linux to WinXP and let it sit idle for a little under 2 hours. The Linux
shell in which I tried to execute 'ls' of the share is "hung", simply doing
nothing, not accumulating any CPU time, etc.

I guess that doesn't solve the problem.

Norm

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba - FC3 - Can't access shared printers on WinXP phillipedison1891@gmail.com Linux Networking 0 02-06-2006 01:07 PM
Samba problem with a WinXP Home box Larry Gagnon Linux Networking 0 02-13-2005 04:21 PM
Help Printing from WinXP to Fedora via SAMBA USMC Sniper Linux Networking 4 01-18-2005 01:34 AM
Help printing from WinXP to Linux via Samba...PLEASE :) USMC Sniper Linux Networking 7 02-01-2004 06:09 PM
Printing to Samba-shared printer from WinXP Dave Weaver Linux Networking 4 12-30-2003 05:33 PM



1 2 3 4 5 6 7 8 9 10 11