http://jnote.cn/blog/linux/mount-smbfs-cifs.html
新安装ubuntu,习惯性的使用
sudo mount -t cifs -o username='xxxx' //x.x.x.x/share /mnt/
来mount远程的windows目录。
结果系统总是报告目标为只读属性,mount只读失败。
使用
smbclient
-
U
'
adminzhs
'
-
L
//
x
.
x
.
x
.
x
能够正常列出共享目录,分析半天没找到问题所在。
后来无意中发现mount.cifs命令不存在。于是怀疑是不是smbfs没有安装。
执行
apt
-
get
install
smbfs
一切都正常了。
备注一下,远程mount windows分区,有时候还需要考虑加密方式和字符编码问题。
sudo mount -t cifs -o username=’xxxx’,sec=ntlmv2,iocharset=utf8 //x.x.x.x/share /mnt/