![无法在 Ubuntu 18.04 中挂载共享 Windows Server 驱动器](https://linux22.com/image/205693/%E6%97%A0%E6%B3%95%E5%9C%A8%20Ubuntu%2018.04%20%E4%B8%AD%E6%8C%82%E8%BD%BD%E5%85%B1%E4%BA%AB%20Windows%20Server%20%E9%A9%B1%E5%8A%A8%E5%99%A8.png)
我正在尝试将位于 2019 Windows 服务器(192.168.1.180)上的共享驱动器安装到我的 Linux 计算机(Ubuntu 18.04)上。我已经更新了 fstab,如下所示,并为挂载创建了一个新目录 (/mnt/remotebackupswintest)。共享驱动器仅允许某些用户,但我能够 ping 通该设备。我还可以使用适当的凭据映射 Windows 计算机上的驱动器;但是,我想我可能做错了什么。我不太熟悉 Linux,所以可能会出现错误。不确定我是否缺少域名或其他域名选项在我的 fstab 或 mount cmd 中,但非常感谢任何帮助。非常感谢大家。
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation`
UUID=0b903abc-2db7-4b0d-a7e2-b04a2a6e9f34 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=369D-A7AB /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
UUID=8cdd9989-b101-4504-ae59-e6b9d1ccba7b /mnt/sdb ext4 defaults 0 2
UUID=5674cc07-064a-44e9-82c6-01a501cd8fba /mnt/sdc ext4 defaults 0 2
//192.168.1.180/glservertest /mnt/remotebackupswintest cifs vers=1.0,user=user_1
我运行以下命令:
root@glserver:/# sudo mount.cifs //192.168.1.180/glservertest /mnt/remotebackupswintest user=user_1, -o version=1.0
我收到此错误:
mount error(22): Invalid argument Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
日志信息如下:
May 10 11:05:54 localhost kernel: [2847286.234589] CIFS: Unknown mount option "version=1.0"
注意:Windows 服务器已安装 SMB 1.0/CIFS。
编辑:只是尝试vers=
而不是version=
,它产生了以下错误:
May 10 14:37:24 localhost kernel: [2859976.122955] CIFS VFS: Send error in SessSetup = -13
May 10 14:37:24 localhost kernel: [2859976.122999] CIFS VFS: cifs_mount failed w/return code = -13
编辑2:我拿走了vers=
但现在我得到了Device or resource busy
使用的命令:root@glserver:/# sudo mount.cifs //192.168.1.180/glservertest /mnt/remotebackupswintest -o user=user_1
错误:May 10 15:55:27 localhost kernel: [2864659.611981] 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.
May 10 15:55:27 localhost kernel: [2864659.614555] CIFS VFS: ioctl error in smb2_get_dfs_refer rc=-5
答案1
删除version=
并使其可供Read/Write
所有人访问解决了我的问题。