AUTOFS(4)
π AUTOFS(4) β bestie edition β¨
okay so this page lives in the Kernel Interfaces Manual and it's literally about autofs β the automounter filesystem π. strap in, we're getting into it.
πΈ NAME πΈ
autofs β the automounter filesystem, no cap β¨
π¦ SYNOPSIS π¦
so to compile this driver into the kernel (iykyk, the built-in way), you drop this line into the kernel configuration file:
options AUTOFS
or, alternatively β if you'd rather load the driver as a module at boot time β put this line into loader.conf(5):
autofs_load="YES"
π‘ pick your fighter: baked-in or module. both slay.
β¨ DESCRIPTION β¨
okay so the autofs driver is the kernel component of the automounter infrastructure β it's giving main character energy on the kernel side π
.
its whole job? pass mount requests to the automountd(8) daemon, and pause the processes that are trying to access the automounted filesystem until the mount is completed. literally holding the line so everything works out π«Ά.
and it's mounted by automount(8). periodt.
π OPTIONS π
these options are available when mounting autofs file systems:
master_optionsβ mount options for all filesystems specified in the map entry. like a group chat setting that applies to everyone π§master_prefixβ filesystem mountpoint prefix. the lil name-tag at the front π
π SYSCTL VARIABLES π
the following variables are available as both sysctl(8) variables and loader(8) tunables β so you can tweak them at runtime or at boot, whichever vibes with you:
vfs.autofs.debugβ verbosity level for log messages from theautofsdriver. set it to0to disable logging, or1to warn about potential problems. larger values enable debugging output. defaults to1β¨vfs.autofs.interruptibleβ set to1to allow mount requests to be interrupted by signal. defaults to1π«Άvfs.autofs.retry_delayβ number of seconds before retrying mount requests. defaults to1β±οΈvfs.autofs.retry_attemptsβ number of attempts before failing mount. defaults to3πvfs.autofs.cacheβ number of seconds to wait before reinvokingautomountd(8)for any given file or directory. defaults to600πvfs.autofs.timeoutβ number of seconds to wait forautomountd(8)to handle the mount request. defaults to30πΈvfs.autofs.mount_on_statβ set to1to trigger mount onstat(2)on mountpoint. defaults to0β
π EXAMPLES π
to unmount all mounted autofs filesystems (bye bestie π):
umount -At autofs
to mount autofs filesystems specified in auto_master(5):
automount
π₯ SEE ALSO π₯
auto_master(5), automount(8), automountd(8), autounmountd(8)
π HISTORY π
the autofs driver first appeared in FreeBSD 10.1. vintage but make it iconic β¨
π§ AUTHORS π§
the autofs was developed by Edward Tomasz Napierala <trasz@FreeBSD.org> under sponsorship from the FreeBSD Foundation. we love a sponsored king π
Debian Β· December 2, 2017 Β· mwah, that's the whole page bestie β go mount something cute π π
π¦ where this page comes from
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2014 The FreeBSD Foundation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms