How to stop a network drive disconnecting
We have a problem in our office where network drives disconnect due to inactivity but don't reconnect silently as they should. Instead they say:
Changing deadtime in /etc/smb.conf didn't help.
I have discovered that I can reliably stop the problem occurring if I keep a file open on the server. I guess this stops the automatic disconnection, which avoids the reconnection problem. Microsoft Word will do this for you fine, but it's annoying to have that application running all the time so I've created a simple program that will lock a file for you.
To use it, download DriveLocker.exe and shove it on your network drive. Then add a shortcut to it in your Startup group in Programs. The shortcut must include the name of a file to create and lock as its parameter. e.g. the Target field in the shortcut might read:
"L:\DriveLocker.exe" L:\.DriveLocker_OCB
An error occurred while reconnecting L: to \\server\share.Our server is OS X Tiger (i.e. Samba), and the problem only occurs on machines that are members of the domain, but where the users log in locally.
The local device name is already in use. This connection has not been restored.
Changing deadtime in /etc/smb.conf didn't help.
I have discovered that I can reliably stop the problem occurring if I keep a file open on the server. I guess this stops the automatic disconnection, which avoids the reconnection problem. Microsoft Word will do this for you fine, but it's annoying to have that application running all the time so I've created a simple program that will lock a file for you.
To use it, download DriveLocker.exe and shove it on your network drive. Then add a shortcut to it in your Startup group in Programs. The shortcut must include the name of a file to create and lock as its parameter. e.g. the Target field in the shortcut might read:
"L:\DriveLocker.exe" L:\.DriveLocker_OCB