Score:0

Issue with refreshing Mapped Network Drives at client side on Windows 10 when hot-swapped on Linux server (SMB)

jp flag

I have a Linux NAS server (Ubuntu 20.04 w/ Samba version 4.13.14-Ubuntu). It has 16 slots that do have automounting scripts which allow hot-swapping - it is a feature I need as I have to plug different HDDs to copy data on clients. From server side it works flawlessly, it is the client I do have a problem. When I am swapping a drive it does not refresh automatically on Windows Enterprise 10 20H2 - it only does when I click on it in Windows Explorer once it remounts on Linux side. Otherwise, Windows dose not see that drive is swapped.

The question is what can I do, has someone face such issue?

Things I have tried:

  1. In Registry Editor navigate to and select: HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters From the Edit menu, click new, then DWORD (32-bit) Value Name the new DWORD DirectoryCacheLifetime Leave the default value of zero unchanged. Reboot the machine.
  2. I have also changed smb username and password to be the same as Windows username and password.
  3. On Linux side I have edited home/etc/samba/smb.conf and added: oplocks = no
  4. I have enabled all Samba related stuff on Windows at "Turn Windows features on or off"
  5. https://docs.microsoft.com/en-us/troubleshoot/windows-client/networking/mapped-network-drive-fail-reconnect also did not help.

I am running out of ideas :D

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.