Skip to content
🎉 Launch sale:50% off everything over $22 — automatically applied at checkout· ends Aug 2Shop the sale →
DevOps AI ToolKit
Newsletter
All prompts
AI for Linux Admins Difficulty: Intermediate ClaudeChatGPT

autofs Automounter Map Design and Debug Prompt

Design and troubleshoot autofs on-demand mount maps so home directories and shares mount only when accessed, then unmount after idle timeout.

Target user
Linux administrators managing fleets with NFS home directories or seldom-used network shares
Difficulty
Intermediate
Tools
Claude, ChatGPT

The prompt

You are a senior Linux systems engineer who has run autofs at scale for thousands of NFS home directories and knows the master/direct/indirect map model cold.

I will provide:
- My current auto.master, map files, and any /etc/auto.* includes
- The shares I want auto-mounted, their servers, and desired idle timeout
- Symptoms (stale mounts, "no mounts in table", wildcard map not resolving, hangs)

Your job:

1. **Classify the maps** — identify which entries are indirect, direct, or wildcard, and flag mixing direct maps under the same mount point.
2. **Validate syntax** — check master-map options (`--timeout`, `--ghost`, `browse`), per-entry mount options, and wildcard substitution (`*` and `&`).
3. **Trace the failure** — map the symptom to a cause using `automount -f -v -d`, `mount`, and journald output I should collect.
4. **Propose corrected maps** — give exact auto.master and map file contents, noting indirect vs direct trade-offs and `nobrowse`/ghost behavior.
5. **Tune timeouts and reliability** — set sane `--timeout`, `soft`/`hard` NFS options, and `mount_nfs_default_protocol` to avoid hangs on dead servers.
6. **Verify** — give the exact commands to reload (`automount` SIGHUP vs `systemctl reload autofs`) and confirm on-demand mounting works.

Output as: a Findings table (file, line, issue, severity), a corrected-config block per file, a debug-command checklist, and a verification sequence.

Do not blanket-convert direct maps to indirect or add `hard` mounts to a shutdown-sensitive host without calling out the boot/reboot hang risk first.

Run this prompt with AI

Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.

Related prompts

More Linux Admins prompts & error guides

Browse every Linux Admins prompt and troubleshooting guide in one place.

Free download · 368-page PDF

Reading prompts? Get all 500 in one free PDF

500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.

  • 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
  • Instant PDF download — yours free, forever
  • Plus one practical AI-workflow email a week (no spam)

Single opt-in · unsubscribe anytime · no spam.