安装 Ubuntu 12.04 后,我尝试使用始终有效且服务器未更改的脚本命令在 Linux 下从 Windows 挂载 samba 共享。
错误如下:
$ mount -t cifs //<host>/<share> /media/<share> -o username=<user>,password=<pass>
mount: block device //<host>/<share> is write-protected, mounting read-only
mount: cannot mount block device //<host>/<share> read-only
$
Run Code Online (Sandbox Code Playgroud)
我已经阅读了很多关于权限的讨论,但不幸的是,这不是问题所在。我在下面提交我自己的答案以供参考,希望这对其他人有所帮助。