我使用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)
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
指定PC名称和/或删除任何或所有选项都无济于事。
1
这个Windows 7系统最近有更新吗?serverfault.com/q/948263/78437
—
Duenni
是的,我在托盘中看到了“系统更新”图标,但没有进一步挖掘。非常感谢您的提示,我将阅读讨论内容,并在必要时删除那些更新。
—
Ruslan Nigmatyanov