Accessing Shared Files on a Windows System (the smbfs Filesystem)

SMB file sharing can work both ways. Samba allows you to set up your FreeBSD machine as an SMB server only, but there is a way to set it up as a client and mount a remote SMB share like any other volume FreeBSD can read. This involves the use of the SMBFS filesystem, which is not built into the kernel by default, but can be added through a kernel module or compiled into a custom kernel.

The SMBFS implementation in FreeBSD includes an smbfs.ko kernel module in /modules and a mount_smbfs tool in /sbin that works like all the other mount_* tools you saw in Chapter 12, “The FreeBSD Filesystem.” The best documentation for SMBFS is found in the man mount_smbfs page.

To mount an SMB ...

Get FreeBSD6 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.