在windows2003创建一个共享文件,centos6.3要挂载这个共享文件,结果报以下错误;
[root@server02 ~]# mount -t cifs -o username=administrator //192.168.2.204/web /test
mount: block device //192.168.2.204/web is write-protected, mounting read-only
mount: cannot mount block device //192.168.2.204/web read-only
以前在centos5.6用相同的方法是可以挂载的。后来发现缺少个安装包,用yum安装cifs这个软件包就OK了。
[root@server02 ~]# yum install cifs*
Installed:
cifs-utils.x86_64 0:4.8.1-19.el6
Dependency Installed:
keyutils.x86_64 0:1.4-4.el6
Dependency Updated:
libtalloc.x86_64 0:2.0.7-2.el6
Complete!
在用相同的命令挂载就可以了。
[root@server02 ~]# mount -t cifs -o username=administrator //192.168.2.204/web /tmp/
Password: