编辑/etc/fstab文件
在其中添加
#mount -t smbfs -o username=linux,password=passwd //192.168.121.121/share /mnt/share
//192.168.121.122/share /mnt/share /smbfs username=linux,password=passwd 0 0
Linux开机自动挂载局域网windows共享文件夹
原文:http://blog.csdn.net/svap1/article/details/44783175