Note: You probably don't want smbfs. See notes below.
- Compile a kernel ensuring that the following are defined:
- file-system SMBFS
- pseudo-device nsmb
- Install the new kernel and reboot.
- cd /dev
- sh MAKEDEV nsmb
- 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.
- Observe the share is mounted on /mnt.
- 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
...as well as... HKLM\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters\requiresecuritysignature
...to 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)