Linux samba磁盘的挂载

1、安装文件系统工具包

yum install cifs-utils -y

2、开始挂载windows共享文件到linux

mkdir /data
mount -t cifs -o username="administrator",password="xxxx" //192.168.0.166/samba_file /data

# username : Window帐号
# password : Window密码

3、查看挂载是成功

[root@mq1 data]# df -h |  grep data
//192.168.0.166/samba_file  120G   86G   34G  72% /data
原文地址:https://www.cnblogs.com/ygbh/p/13745532.html