Ubuntu挂载Windows 7共享目录

为什么80%的码农都做不了架构师?>>>   hot3.png

本人直接一直使用elementary OS 0.2,挂载windows远程目录没有发生情况。 最近由于要测试HP Thunderbolt只能在Windows环境,决定既然重新安装操作系统,就把elementary os的工作环境升级到 0.3.(家里面一直在用0.3)

由于之前有安装经验,已经跳过了sogou拼音的问题。

但发现由于存储更换到了Windows 7,发现无法mount目录。 最初提示

mount romote io error

由于Elemantary OS基于Ubuntu14.04,访问Ubuntu日志/var/log/syslog 查看内核错误

kernel: [ 7729.438322] CIFS VFS: cifs_mount failed w/return code = -121

由于直接mount报告错误不完整,安装了cifs-utils

sudo apt-get install -y cifs-utils

安装后,错误提示变成了

mount error(121): Remote I/O error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

通过man查看mount.cifs文档内容 发现如下命令及其有可能是因为自动赋值造成的错误

       vers=
           SMB protocol version. Allowed values are:

           ·   1.0 - The classic CIFS/SMBv1 protocol. This is the default.

           ·   2.0 - The SMBv2.002 protocol. This was initially introduced in Windows Vista Service Pack 1, and Windows Server 2008. Note that the initial release version of Windows Vista spoke a slightly different dialect (2.000)
               that is not supported.

           ·   2.1 - The SMBv2.1 protocol that was introduced in Microsoft Windows 7 and Windows Server 2008R2.

           ·   3.0 - The SMBv3.0 protocol that was introduced in Microsoft Windows 8 and Windows Server 2012.

           Note too that while this option governs the protocol version used, not all features of each version are available.

随即修改了vers=2.1,命令正常通过

转载于:https://my.oschina.net/hava/blog/496259

你可能感兴趣的:(Ubuntu挂载Windows 7共享目录)