1、安装Ubuntu支持smbfs的包
2、创建一个目录,用于挂载Windows共享目录
3、将Windows共享目录mount到/mnt/smb目录
4、卸载Windows共享目录
sudo apt-get install smbfs
2、创建一个目录,用于挂载Windows共享目录
sudo mkdir /mnt/smb
3、将Windows共享目录mount到/mnt/smb目录
sudo mount -t smbfs -o username=guest //192.168.10.34/tools /mnt/smb
其中username 为windows共享目录的访问用户
4、卸载Windows共享目录
sudo umount /mnt/smb
现在有个问题就是 mount了window上的文件夹后,其他用户没有写文件的权限,这样:
mount
-t smbfs -o username=guest,dir_mode=0777 //192.168.10.34/tools /mnt/smb