From 7872e91f8d5543bc8d9a088d119c8a485ce2f9e4 Mon Sep 17 00:00:00 2001 From: Jordan Lambrecht Date: Wed, 31 Jul 2024 13:44:09 -0500 Subject: [PATCH] automount: add page (#13328) Co-authored-by: spageektti --- pages/osx/automount.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pages/osx/automount.md diff --git a/pages/osx/automount.md b/pages/osx/automount.md new file mode 100644 index 000000000..7683b0a63 --- /dev/null +++ b/pages/osx/automount.md @@ -0,0 +1,17 @@ +# automount + +> Read the `/etc/auto_master` file and mount `autofs` on the appropriate mount points to trigger the on-demand mounting of directories. Essentially, it's a way to manually initiate the system's automounting process. +> Note: You'll most likely need to run with `sudo` if you don't have the necessary permissions. +> More information: . + +- Run automount, flush the cache(`-c`) beforehand, and be verbose(`-v`) about it (most common use): + +`automount -cv` + +- Automatically unmount after 5 minutes (300 seconds) of inactivity: + +`automount -t 300` + +- Unmount anything previously mounted by automount and/or defined in `/etc/auto_master`: + +`automount -u`