Linux mount Windows

Windows 下数据文件共享

  • 创建共享账号

Linux mount Windows

Linux mount Windows

  • 共享数据文件夹【存放数据的目录】

Linux mount Windows
Linux mount Windows

  • 共享文件夹权限配置

Linux mount Windows

Linux 下通过 mount 实现挂载

  • 创建挂载点
mkdir /test
  • 挂载 Windows 共享目录
mount -t cifs -o   username=mount,password='Gsld1234!' //10.136.73.63/yum /test/

Linux mount Windows

  • 可能出现的挂载问题
mount: block device //192.168.1.103/share/yasi is write-protected, mounting read-only  
mount: cannot mount block device //192.168.1.103/share/yasi read-only  

【原因】

需要安装cifs-utils

【解决】

安装cifs-utils
下载地址
然后重新执行就可以了

mount -t cifs -o   username=mount,password='Gsld1234!' //10.136.73.63/yum /test/
mount error(115): Operation now in progress

【解决】
关闭windows防火墙