無法在 Ubuntu 18.04 中掛載共享 Windows 伺服器驅動器
我正在嘗試將位於 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
刪除
version=
並使其Read/Write
訪問所有人解決了我的問題。