DragonFly BSD


To mount Windows shares at boot-time, you have to do the following:

Edit /boot/loader.conf (if it does not exist, create it) by adding the folowing line:


This will enable the modules at boot-time, if you don't want to reboot now, do:

# kldload smbfs.ko

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):

# smbutil crypt



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:

# The server IP



# The server credentials



Save the file, then open /etc/fstab, and add:

//Username@MYWINSERVER/sharedfoldername /mnt/mountpointname smbfs rw,-N

Try it:

# mount /mnt/mountpointname

Hope this helped.


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/