linux 挂载错误解决mount: cannot mount block device

[root@centos5 ~]# iptables -F INPUT
[root@centos5 ~]# iptables -F OUTPUT
[root@centos5 ~]# setenforce 0
[root@centos5 ~]# mount -t cifs //192.168.1.119/sharefile /var -o username=user%123
mount: block device //192.168.1.119/sharefile is write-protected, mounting read-only
mount: cannot mount block device //192.168.1.119/sharefile read-only

[root@centos5 ~]# mount.cifs //192.168.1.119/sharefile /var -o username=user%123

-bash: mount.cifs: command not found



解决:

[root@centos5 ~]# yum -y install cifs*

[root@centos5 ~]# mount -t cifs //192.168.1.119/sharefile /var -o username=user%123    搞定


你可能感兴趣的:(linux运维)