A-A+
挂载samba服务器上的文件失败
samba服务器上文件挂载失败频繁,在输入mount挂载命令的时候提示只读什么的,尝试了在挂载的时候用只读的方式去挂载也是不行,最终发现了,缺少安装cifs包,
-
123# mount -t cifs //192.168.232.19/data /data -o username=ansoftmount: block device //192.168.232.19/data is write-protected, mounting read-onlymount: cannot mount block device //192.168.232.19/data read-only
1
yum install cifs-utils
命令执行结束后再执行mount 命令
1 2 3 4 5 6 7 8 |
# mount -t cifs //192.168.232.19/data /data -o username=ansoft Password: ///输入密码 # df -h -P Filesystem Size Used Avail Use% Mounted on /dev/sda2 97G 2.6G 89G 3% / tmpfs 7.8G 0 7.8G 0% /dev/shm /dev/sda1 194M 30M 155M 17% /boot //192.168.232.19/data 310G 34G 260G 12% /data |