Article 5KT7V Does Windows disable SMB when it resumes from sleep?

Does Windows disable SMB when it resumes from sleep?

by
Lestrad
from LinuxQuestions.org on (#5KT7V)
I have a shared directory on my Windows 7 (SP1) box that is mounted on my (Arch) Linux box at boot. Everything works fine until the Windows box goes to sleep and then wakes up. But once it does the share becomes inaccessible on the Linux box with a "cannot access <dir>: Host is down" message. mountshows the share as mounted.

The Windows box is running SMB version 1 and the "autodisconnect" property of LanmanServer is set to -1.

If I try to connect with smbclient -L <hostname> I get a list of all the shares on the Windows box, followed by "SMB1 disabled -- no workgroup available". But as I mentioned, the share mounts and is accessible until the Windows host has gone to sleep and then resumed. So Windows seems to be disabling SMB1 when it resumes. The Windows Event Viewer shows the following error, which may be related:

Code: The IP address lease xx.xx.xx.xx for the Network Card with network address 0x00FFB02D99CA has been denied by the DHCP server xx.x.xxx.xxx (The DHCP Server sent a DHCPNACK message).On the Linux side, if I unmount the share and run mount -av, I get:

Code:mount.cifs kernel mount options: ip=192.168.0.32,unc=\\xxx.xxx.x.xx\<dir>,vers=2.0,user=Dad,pass=********
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)dmesg shows the following error, presumably from when I tried to remount the share after losing the connection:

Code: CIFS: Attempting to mount //xxx.xxx.x.xx/<dir>
CIFS: VFS: cifs_mount failed w/return code = -2
Is there a way to configure SMB on the Windows side to avoid losing the connection to the share when the Windows box goes to sleep?

I'd be happy to provide any information anyone might need.

TIA for any help.latest?d=yIl2AUoC8zA latest?i=S1jV2j15WjM:gS-KuXSVYvA:F7zBnMy latest?i=S1jV2j15WjM:gS-KuXSVYvA:V_sGLiP latest?d=qj6IDK7rITs latest?i=S1jV2j15WjM:gS-KuXSVYvA:gIN9vFwS1jV2j15WjM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments