如何在 (k)ubuntu 13.04 中挂载 cifs 共享?

Spa*_*awk 9 mount samba cifs smb 13.04

在 (k)ubuntu 12.10 中,我可以安装一个 cifs 驱动器(来自我的 Apple Airport Extreme)

sudo mount -t cifs -o user=foobar,password=foobar,rw,hard,nosetuids,noperm //192.168.1.2/Drive ~/mnt/mount_point
Run Code Online (Sandbox Code Playgroud)

在我今天升级到 13.04 后,这不再有效。我现在得到错误

mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Run Code Online (Sandbox Code Playgroud)

我已经cifs-utils安装了,安装smbnetfs没有帮助。如何在 (k)ubuntu 13.04 中挂载 cifs 卷?

Wil*_*uda 9

我在尝试安装 Apple Time Capsule 卷时遇到了同样的问题。

我通过向sec=ntlm/etc/fstab添加一个选项来解决。

对于您的命令,请使用

sudo mount -t cifs -o user=foobar,password=foobar,rw,hard,nosetuids,noperm,sec=ntlm //192.168.1.2/Drive ~/mnt/mount_point
Run Code Online (Sandbox Code Playgroud)

请参阅有关根更改的更详细说明:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=81bcd8b795229c70d7244898efe282846e3b14ce

不确定这是否是最佳解决方案,因为我想我正在降低安全性。