Auto-Mount Daemon (amd)

Something that makes NFS mounts even more convenient is the auto-mount daemon, amd. This daemon allows you to mount NFS shares (and other filesystem types, as a matter of fact) dynamically, simply by working in the directory in which the share would be mounted, without ever having to bother with mount commands.

FreeBSD provides a basic way to set up amd. Simply add the following line to /etc/rc.conf:

amd_enable="YES"

When the system is booted with this option, amd runs with the options specified in the amd_flags setting, which are such that anything in the /host or /net directories—both of which are created automatically by amd—will auto-mount by name. You can also start it in the same way as it would be at boot time ...

Get FreeBSD® 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.