I am encountering an issue with mounting CIFS shares on a Linux system from a Windows 10 desktop. Here’s the setup:
On the Windows 10 desktop, 2 folders,one is named 测试
(Chinese characters for “test”). Another is named testshare
(English characters). Both folders are shared with the Everyone group, granting read and write permissions.
Developing a GUI APP that USER can type the local folder name, server IP and shared folder name, as well as the username and password. After users fill in all the blanks, it will execute some scripts like the one below in the background.
sudo mount -t cifs //<server-ip>/测试 /media/share/<local-folder-name> -o username=username,password=password,iocharset=utf8,vers=2.0
I successfully mounted both 2 folders (English and Chinese named from windows PC) to /media/share
on Linux SSD.
But the issue is that after some minutes, normally about 14 mins (tested 3 times), the mounted Chinese name folder will be disconnected and it displays the error in syslog:
CIFS VFS: Free previous auth_key.response = ffffffc23f114100
CIFS VFS: BAD_NETWORK_NAME: \<server-ip>测试
CIFS VFS: BAD_NETWORK_NAME: \<server-ip>测试
.......
The network between Windows PC and Linux is stable.
How do we fix this issue? Any suggestions? Thanks.