Linuxhotel Wiki

Wie ging das nochmal?

Benutzer-Werkzeuge

Webseiten-Werkzeuge


lpi2:autofs

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen gezeigt.

Link zu der Vergleichsansicht

Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung
Nächste Überarbeitung
Vorherige Überarbeitung
lpi2:autofs [2024/05/02 14:11]
ingo_wichmann
lpi2:autofs [2024/05/02 14:47] (aktuell)
ingo_wichmann [Einzelnes Verzeichnis automatisch mounten]
Zeile 1: Zeile 1:
 ====== Einzelnes Verzeichnis automatisch mounten ====== ====== Einzelnes Verzeichnis automatisch mounten ======
 Paket: ​ Paket: ​
-  * ''​autofs'' ​Debian (ab 11)+  * Debian (ab 10): ''​autofs''​
  
   mkfs.ext4 /​dev/​vg_system/​lv_autofs1   mkfs.ext4 /​dev/​vg_system/​lv_autofs1
  
 <file text /​etc/​auto.misc>​ <file text /​etc/​auto.misc>​
-#KEY    -OPTIONS ​            ​LOCATION+#Key    -Options ​            ​Location
 test    -fstype=auto,​noatime :/​dev/​vg_system/​lv_autofs1 test    -fstype=auto,​noatime :/​dev/​vg_system/​lv_autofs1
 </​file>​ </​file>​
Zeile 12: Zeile 12:
 <file text /​etc/​auto.master.d/​test.autofs>​ <file text /​etc/​auto.master.d/​test.autofs>​
 # mount-point ​  ​Map ​           -Options # mount-point ​  ​Map ​           -Options
-/misc       ​/​etc/​auto.misc ---timeout=30,​discard+/misc           ​/​etc/​auto.misc ---timeout=30,​discard
 </​file>​ </​file>​
  
   service autofs restart   service autofs restart
  
-  ​cd /​misc/​test +  ​automount -m 
-  ​df -.+  mount -t autofs 
 +  ls /mnt/misc/test; date 
 +  ​tail -n 1 /​proc/​mounts 
 + 
 +== Dokumentation == 
 +  * https://​wiki.ubuntuusers.de/​Autofs/​ 
 +  * man automount 
 +  * man 5 autofs 
 +  * man 5 auto.master
  
 ====== NFS-Server automatisch mounten ====== ====== NFS-Server automatisch mounten ======
lpi2/autofs.1714659106.txt.gz · Zuletzt geändert: 2024/05/02 14:11 von ingo_wichmann