RedHat EX200 Question Answer
Configure AutoFS to automount two NFS shares under /automount.
See the solution below in Explanation.
Solution:
dnf install -y autofs
mkdir -p /automount
echo "/automount /etc/auto.automount --timeout=30" > > /etc/auto.master
echo "public -ro,sync nfs.lab.example.com:/public" > > /etc/auto.automount
echo "private -rw,sync nfs.lab.example.com:/private" > > /etc/auto.automount
systemctl enable --now autofs
Detailed Explanation:
/etc/auto.master defines the main AutoFS map.
/etc/auto.automount defines the indirect map entries.
public will mount read-only.
private will mount read-write.
AutoFS mounts on access rather than permanently at boot.
TESTED 17 May 2026
Copyright © 2014-2026 ACE4Sure. All Rights Reserved