在Linux系统下将一个Windows分区挂在到mnt目录下,方便其他程序调用。
mount.cifs "//192.168.1.6/share/Tech/Data Collection/RS/Project_SERA" /mnt/share -o user=username%password,iocharset=utf8
"//192.168.1.6/share/Tech/Data Collection/RS/Project_SERA": 目标路径
如果目录里面有空格,那么就必须用双引号讲完整的路径括起来
/mnt/share: 本地路径
-o(是小写字母): option,后面跟着选项;
user=username%password,iocharset=utf8: 完整的windows域用户名密码