Linuxhotel Wiki

Wie ging das nochmal?

Benutzer-Werkzeuge

Webseiten-Werkzeuge


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 /mnt/misc/test; date
tail -n 1 /proc/mounts
Dokumentation

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: 2024/05/02 14:47 von ingo_wichmann