1. Goal
Mount shares on demand instead of keeping resources permanently mounted when they are only needed occasionally.
2. Files and components involved
/etc/auto.master
/etc/auto.nfs
/etc/rc.d/rc.autofs
3. Operational flow
vi /etc/auto.master
create mappa in /etc/auto.nfs
chmod +x /etc/rc.d/rc.autofs
/etc/rc.d/rc.autofs start
4. Operational verification
automount -m
ls /mnt/nfs/dati
mount
grep /mnt/nfs
5. Practical notes
Before touching disks, mounts, and filesystems, note the UUIDs, current outputs, and the latest valid backup available.
When you work on storage and filesystems, the rule stays the same: first identify the right device, then modify, and finally verify.
Quick checklist
[ ] Backup or copy of the existing configuration completed
[ ] Files and commands updated as expected
[ ] Local test completed successfully
[ ] Logs or final output verified
[ ] Rollback procedure documented