天天看點

CentOS-6.3挂載windows共享檔案

在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:

繼續閱讀