您的位置:首页 > 运维架构 > Linux

CentOS-6.3挂载windows共享文件

2014-04-24 21:01 399 查看
在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:
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: