Note: You probably don't want smbfs. See notes below.

  1. Compile a kernel ensuring that the following are defined:
    • file-system SMBFS
    • pseudo-device nsmb
  2. Install the new kernel and reboot.
  3. cd /dev
  4. sh MAKEDEV nsmb
  5. Check out the mount_smbfs man page for reference on a command to use.  Here's what I've used successfully:
    • mount_smbfs -I [Server IP] -W [domain] //[user]@[servername]/[Share Name] /mnt
    • The domain and servername do not necessarily need to be fully qualified.
  6. Observe the share is mounted on /mnt.
  7. umount /mnt to unmount the share.

I have found that on the server side it is necessary to set: HKLM\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters\enablesecuritysignature well as... HKLM\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters\requiresecuritysignature 0 in order to even connect.  Once the mount is made successfully though, I encounter "permission denied" errors attempting to create new files.  I have not resolved this issue at the current time.  It may be time for an SMBFS code overhaul though, as I also experience NetBSD kernel panics doing a directory listing on an smbfs filesystem mount point after it has been unmounted.

David Ross 07:54, January 12, 2010 (UTC)