红联Linux门户
Linux帮助

Ubuntu挂载Windows 7共享目录

发布时间:2015-12-27 15:54:35来源:linux网站作者:抢小孩糖吃

本人直接一直使用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,命令正常通过。


在Linux下挂载Windows系统共享目录:http://www.linuxdiyf.com/linux/13230.html

Ubuntu开机自动挂载windows和Linux盘符:http://www.linuxdiyf.com/linux/6867.html

Fedora 17/Linux如何通过samba挂载Windows共享:http://www.linuxdiyf.com/linux/2395.html

在Linux下访问Windows共享目录的配置方法:http://www.linuxdiyf.com/linux/10562.html

Ubuntu虚拟机如何共享Win7下的默认共享目录:http://www.linuxdiyf.com/linux/8096.html