lpi2:autofs
Einzelnes Verzeichnis automatisch mounten
Paket:
- Debian (ab 10):
autofs
mkfs.ext4 /dev/vg_system/lv_autofs1
- /etc/auto.misc
#Key -Options Location test -fstype=auto,noatime :/dev/vg_system/lv_autofs1
- /etc/auto.master.d/test.autofs
# mount-point Map -Options /misc /etc/auto.misc ---timeout=30,discard
service autofs restart
automount -m mount -t autofs ls /misc/test; date tail -n 1 /proc/mounts
Dokumentation
- man automount
- man 5 autofs
- man 5 auto.master
NFS-Server automatisch mounten
Voraussetzung: NFS v3 Server im Netzwerk vorhanden
/etc/auto.master :
/net -hosts
service autofs restart
Auf Verzeichnis /srv/nfs des NFS-Servers 192.168.122.243 zugreifen:
cd /net/192.168.122.243/srv/nfs
lpi2/autofs.txt · Zuletzt geändert: 2026/05/19 12:12 von ingo_wichmann
