1. Execute the following command on Linux:
[[email protected] ~]# mount-t cifs -o username=shenhb,password=111111,iocharset=gb2312// 192.168.4.211/book/opt/xdata
Mount://192.168.2.193/xshare write protection, will be mounted as read-only
Mount: Cannot mount//192.168.2.193/xshare in read-only mode
[Email protected] ~]#
View read and write properties for this file on Windows
If you delete a shared folder on Windows, return the error above;
2, in my own Win10 family edition, as long as through the following ways to share folders,
Can be mounted directly with the following command
[Email protected] ~]# mount-t cifs-o username=shenhb,password=111111,iocharset=gb2312//192.168.4.211/cnblog/opt/ Blog
[Email protected] ~]#
3, mount the error, enter the /var/log/ directory
[Email protected] log]# DMESG | tail
[1081636.387748] selinux:initialized (Dev cifs, type CIFS), uses genfs_contexts
[1081703.840696] cifs:unknown mount option "name=SHENHB"
[1082181.268033] cifs:unknown mount option "NAME=SHENHB"
[1083317.917733] cifs:unknown mount option "Name=administrator"
[1083352.414715] cifs:unknown mount option "Name=administrator"
[1083363.541997] CIFS vfs:malformed UNC in Devname.
[1083388.012203] cifs:unknown mount option "Name=administrator"
[1083941.242988] CIFS vfs:malformed UNC in Devname.
[1084528.124106] CIFS vfs:malformed UNC in Devname.
[1084543.261517] cifs:unknown mount option "passwd=cfund#111"
The specified parameter name is wrong, it should be username
?
?
?
?
Linux mounts Windows shared directory through CIFS