-To mount Windows shares at boot-time, you have to do the following:\r
-\r
-Edit /boot/loader.conf (if it does not exist, create it) by adding the folowing line:\r
-\r
- \r
- smbfs_load="YES"\r
-\r
-This will enable the modules at boot-time, if you don't want to reboot now, do:\r
-\r
- \r
-# kldload smbfs.ko\r
-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):\r
-\r
- \r
- # smbutil crypt\r
- Password:\r
-$$16144562c293a\r
-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:\r
-\r
- \r
- # The server IP\r
- [MYWINSERVER]\r
- addr=192.168.10.23\r
- # The server credentials\r
- [MYWINSERVER:USERNAME]\r
-password=$$16144562c293a \r
-Save the file, then open /etc/fstab, and add:\r
-\r
- \r
-//Username@MYWINSERVER/sharedfoldername /mnt/mountpointname smbfs rw,-N\r
-Try it:\r
-\r
- \r
-# mount /mnt/mountpointname\r
-Hope this helped.\r
-\r
-## References: \r
-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/\r
-\r
+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:
+
+ smbfs_load="YES"
+
+
+
+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
+
+ Password:
+
+ $$16144562c293a
+
+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
+
+ [MYWINSERVER]
+
+ addr=192.168.10.23
+
+ # The server credentials
+
+ [MYWINSERVER:USERNAME]
+
+ password=$$16144562c293a
+
+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.
+
+
+
+## References:
+
+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/
+
+
+