不能使用mount.cifs:安装错误(2):没有这样的文件或目录

您所在的位置:网站首页 mount挂载点不存在怎么办 不能使用mount.cifs:安装错误(2):没有这样的文件或目录

不能使用mount.cifs:安装错误(2):没有这样的文件或目录

2023-07-31 14:33| 来源: 网络整理| 查看: 265

如果尝试从较新版本的Windows挂载共享,则可能需要在mount命令中提供vers =选项以强制使用3.0版。我们的文件服务器之一最近升级到了2012R2,那时我的挂载停止工作。将其设置为vers = 3.0可以解决此问题。像大多数Samba / CIFS错误一样,“无此文件或目录”消息也无济于事。

举个例子:

# mount -t cifs //win2012r2/someshare -o cred=/home/foo/.cifs_user, vers=3.0 /mnt/tmp

..我的域名,用户名和密码都包含在.cifs_user文件中。

显然,默认情况下,smbmount使用SMB协议的较新版本,因为它可以正常工作而没有任何问题或任何特殊选项。

请注意,下面的默认协议版本是1.0。

从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.


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3