14.04 CIFS 安裝 windows 8 共享「輸入輸出」錯誤

14.04 CIFS 安裝 windows 8 共享「輸入輸出」錯誤

我已經嘗試了以下數百種組合。

mount -t cifs //alpha/raid_1 /media/alpha/raid_1 -v -o rw,_netdev,username=data,password=data,domain=alpha,gid=users,iocharset=utf8,file_mode=0777,dir_mode=0777,sec=ntlm
mount.cifs kernel mount options: ip=10.0.0.107,unc=\\alpha\raid_1,iocharset=utf8,file_mode=0777,dir_mode=0777,sec=ntlm,gid=100,user=data,,domain=alpha,pass=********
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

伺服器是Windows 8.1。我已向用戶“數據”和“每個人”授予測試的完全共享和安全權限。我已編輯本機安全性原則以傳送 lm 和 ntlm 回應,並且沒有最低會話安全性。

SMB客戶端測試;

root@lubuntu-ws:~# smbclient -U data -L alpha -D
Enter data's password: 
Domain=[ALPHA] OS=[Windows 8.1 9600] Server=[Windows 8.1 6.3]

    Sharename       Type      Comment
    ---------       ----      -------
    ADMIN$          Disk      Remote Admin
    C               Disk      
    C$              Disk      Default share
    D               Disk      
    D$              Disk      Default share
    E               Disk      
    E$              Disk      Default share
    IPC$            IPC       Remote IPC
    print$          Disk      Printer Drivers
    raid_1          Disk      
    raid_2          Disk      
    Users           Disk      
Domain=[ALPHA] OS=[Windows 8.1 9600] Server=[Windows 8.1 6.3]

    Server               Comment
    ---------            -------

    Workgroup            Master
    ---------            -------

內核詳細資料;

Linux lubuntu-ws 3.13.0-53-generic #89-Ubuntu SMP Wed May 20 10:34:28 UTC 2015 i686 i686 i686 GNU/Linux

我很確定這是一個錯誤,但似乎找不到其他人遇到同樣的問題。

還有其他建議嗎?

答案1

當我嘗試從 Ubuntu 14.04.2 LTS 主機(核心 3.13.0-53-generic - 可能有點過時)存取公共共享時,我剛剛在 Windows 8.1 主機(Asus TF100TA)上遇到了相同的問題。

我的解決方案:將 SMB 版本從 1.0 (Windows 9x) 升級到 2.0 (Vista)。

root@thor:/mnt# mount -t cifs -o guest,vers=2.0 \\192.168.1.115\cam /mnt/network

「vers」的可能值(來自線上說明頁面):

vers= SMB 協定版本。允許的值為:

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

2.1 不適合我,但 2.0 適合。只需使用不同版本進行測試即可。

相關內容