1 To mount Windows shares at boot-time, you have to do the following:
3 Edit /boot/loader.conf (if it does not exist, create it) by adding the folowing line:
9 This will enable the modules at boot-time, if you don't want to reboot now, do:
17 From now on you will have two ways. You have to edit /etc/nsmb.conf if you would like system-wide mounts and you have to edit ~/.nsmbrc if you want a mount only for the current user. First of all, make smbutil encrypt your password (I entered 'mypass' below):
25 Of course you can use a plaintext password as well, but this is safer (you don't want to give out your Windows password, do you? :-D) Now open one of the aforementioned files and add your Windows server and the credentials:
34 # The server credentials
36 [MYWINSERVER:USERNAME]
38 password=$$16144562c293a
40 Save the file, then open /etc/fstab, and add:
43 //Username@MYWINSERVER/sharedfoldername /mnt/mountpointname smbfs rw,-N
51 # mount /mnt/mountpointname
59 http://sig9.com/articles/samba-automount-freebsd http://lists.freebsd.org/pipermail/freebsd-questions/2005-April/085515.html http://www.cyberciti.biz/faq/configure-a-system-to-automount-a-samba-share-with-etcfstab/