Samba (CIFS) 挂载错误 (9):文件描述符错误

Rus*_*nov 10 linux windows mount samba cifs

我使用 mount.cifs 从我的主工作站 PC(使用 Fedora 29 工作站)到我母亲的笔记本电脑(Windows 7 HP)网络共享成功连接了几次,但不久之后我就无法做到这一点。

例如,使用 Nautilus,连接到 smb://192.168.0.2/Data 要求提供凭据(尽管它应该已经为此共享永久存储),即使您输入正确的用户名和密码,它也只会提示如何再次登录。

使用 mount -t cifs 过去也成功但不再成功,因为它返回如下错误:

[ruslan@sakuya ~]$ sudo mount -t cifs //192.168.0.2/Data .mount/samba -o username=ruslan,password=[mypassword],domain=WORKGROUP,iocharset=utf8,rw,file_mode=0777,dir_mode=0777
mount error(9): Bad file descriptor
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
[ruslan@sakuya ~]$ sudo mount -t cifs //PATCHOULI/Data .mount/samba -o username=ruslan,password=[mypassword],domain=WORKGROUP,iocharset=utf8,rw,file_mode=0777,dir_mode=0777
mount error(9): Bad file descriptor
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
[ruslan@sakuya ~]$ sudo mount -t cifs //192.168.0.2/Data .mount/samba
Password for ruslan@//192.168.0.2/Data:  **********
mount error(9): Bad file descriptor
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
[ruslan@sakuya ~]$ sudo mount -t cifs //PATCHOULI/Data .mount/samba
Password for ruslan@//PATCHOULI/Data:  **********
mount error(9): Bad file descriptor
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Run Code Online (Sandbox Code Playgroud)

dmesg 对它的帮助也不是很大:

[ 4342.451104] No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
[ 4342.455203] Status code returned 0xc0000008 STATUS_INVALID_HANDLE
[ 4342.455217] CIFS VFS: Send error in SessSetup = -9
[ 4342.455237] CIFS VFS: cifs_mount failed w/return code = -9
Run Code Online (Sandbox Code Playgroud)

指定 PC 名称和/或删除任何或所有选项在任何情况下都没有帮助。

Rus*_*nov 10

编辑:社区中有人注意到修复该问题的官方更新已经发布;此链接提供了解决方案:

微软发布了更新KB4487345来解决这个问题:

此更新解决了以下问题:安装 2019 年 1 月 8 日的安全更新后,属于本地“管理员”组的本地用户可能无法远程访问 Windows 7 SP1 和 Windows Server 2008 R2 计算机上的共享。这不会影响本地“管理员”组中的域帐户。

因此,通过双击 msu 文件下载并安装更新。


归档时间:

查看次数:

4455 次

最近记录:

6 年,10 月 前