mount_smbfs -I {ip} -E UTF-8:UTF-8 //{user}@{servername}/Share/ /mnt/Disk/File
-E cs1:cs2 分别指定本地字符集和服务器字符集,可以解决中文乱码问题。
-L zh_CN.UTF-8 指定本地语言环境,一般用不到,都是自动获取。
-f 777 -d 777 指定挂载后文件和目录的权限。
umount -f /mnt/Disk/File 卸载映射的文件夹。
常见使用格式:mount_smbfs -f 750 -d 750 -M ${USERNAME}:${GROUP} -O ${USERNAME}:${GROUP} -u ${USERNAME} -g ${GROUP} -N //${USERNAME}@${serv}/${share} /smb/${serv}
资料来源:
https://www.freebsd.org/cgi/man.cgi?mount_smbfs
https://www.ptt.cc/bbs/Linux/M.1436861902.A.A11.html
https://www.bsdforen.de/threads/smb-share-mounten.31502/
https://www.ixsystems.com/community/threads/mount_smbfs-vs-encoding.70250/
https://www.bsdforen.de/threads/smb-share-mounten.31502/
https://www.ixsystems.com/community/threads/mounting-a-smb-share-for-plugins-persistently.69228/