今天在centos6.x上搭建了一个samba服务器,但是在挂载其共享目录时出现:
<code> [root@www samba]# mount -t cifs //192.168.2.101/share /mnt/share -o username=user mount: block device //192.168.2.101/share is write-protected, mounting read-only mount: cannot mount block device //192.168.2.101/share read-only </code>
经过网上搜索发现原来是未安装cifs-utils包。
<code> [root@www samba]# yum install -y cifs-utils </code>
安装完后挂载:
<code> [root@www samba]# mount -t cifs //192.168.2.101/share /mnt/share -o username=user Password: [root@www samba]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 18G 2.8G 14G 17% / tmpfs 504M 0 504M 0% /dev/shm /dev/sda1 283M 26M 242M 10% /boot //192.168.2.101/share 18G 2.8G 14G 17% /mnt/share </code>