linux挂载Windows共享文件夹
利用 mount 命令进行挂载
mount -t cifs -o username=administrator,password=1 //192.168.15.103/share /mnt/share
//192.168.15.103/share 为Windows的共享路径, /mnt/share为Linux挂载路径,添加的时候需要将端口开放。
报错:
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
需要安装:yum install -y cifs-utils
查看磁盘挂载情况:df -h