Update to r47846:
Describe how to use removable media with autofs(5). While here, fix some programlistings. Reviewed by: bcr Differential Revision: https://reviews.freebsd.org/D6327
This commit is contained in:
parent
da8b4c9b4a
commit
189d4b484e
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=48801
1 changed files with 79 additions and 11 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
$FreeBSD$
|
||||
$FreeBSDde: de-docproj/books/handbook/disks/chapter.xml,v 1.187 2012/04/26 19:32:48 bcr Exp $
|
||||
basiert auf: r47064
|
||||
basiert auf: r47846
|
||||
-->
|
||||
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0" xml:id="disks">
|
||||
<info><title>Speichermedien</title>
|
||||
|
@ -368,16 +368,16 @@ super-block backups (for fsck -b #) at:
|
|||
angepassten Kernel müssen die nachstehenden Zeilen in der
|
||||
Kernelkonfigurationsdatei enthalten sein:</para>
|
||||
|
||||
<programlisting>device scbus>>>>>>># SCSI bus (required for ATA/SCSI)
|
||||
device da>>>>>>># Direct Access (disks)
|
||||
device pass>>>>># Passthrough device (direct ATA/SCSI access)
|
||||
device uhci>>>>># provides USB 1.x support
|
||||
device ohci>>>>># provides USB 1.x support
|
||||
device ehci>>>>># provides USB 2.0 support
|
||||
device xhci>>>>># provides USB 3.0 support
|
||||
device usb>>>>>># USB Bus (required)
|
||||
device umass>>>># Disks/Mass storage - Requires scbus and da
|
||||
device cd>>>>>>># needed for CD and DVD burners</programlisting>
|
||||
<programlisting>device scbus # SCSI bus (required for ATA/SCSI)
|
||||
device da # Direct Access (disks)
|
||||
device pass # Passthrough device (direct ATA/SCSI access)
|
||||
device uhci # provides USB 1.x support
|
||||
device ohci # provides USB 1.x support
|
||||
device ehci # provides USB 2.0 support
|
||||
device xhci # provides USB 3.0 support
|
||||
device usb # USB Bus (required)
|
||||
device umass # Disks/Mass storage - Requires scbus and da
|
||||
device cd # needed for CD and DVD burners</programlisting>
|
||||
|
||||
<para>&os; benutzt den &man.umass.4;-Treiber, der das
|
||||
<acronym>SCSI</acronym>-Subsystem verwendet um auf
|
||||
|
@ -538,6 +538,74 @@ da0 at umass-sim0 bus 0 scbus4 target 0 lun 0
|
|||
da0: <STECH Simple Drive 1.04> s/n WD-WXE508CAN263 detached
|
||||
(da0:umass-sim0:0:0:0): Periph destroyed</screen>
|
||||
</sect2>
|
||||
|
||||
<sect2>
|
||||
<title>Automatisches Einhängen von Wechselmedien</title>
|
||||
|
||||
<note>
|
||||
<para>&man.autofs.5; unterstützt das automatische Einhängen
|
||||
von Wechselmedien beginnend mit
|
||||
&os; 10.2-RELEASE.</para>
|
||||
</note>
|
||||
|
||||
<para>Damit <acronym>USB</acronym>-Geräte automatisch
|
||||
eingehängt werden, muss der Kommentar für folgende Zeile in
|
||||
<filename>/etc/auto_master</filename> entfernt werden:</para>
|
||||
|
||||
<screen>/media -media -nosuid</screen>
|
||||
|
||||
<para>Anschließend fügen Sie folgende Zeilen in
|
||||
<filename>/etc/devd.conf</filename> hinzu:</para>
|
||||
|
||||
<screen>notify 100 {
|
||||
match "system" "GEOM";
|
||||
match "subsystem" "DEV";
|
||||
action "/usr/sbin/automount -c";
|
||||
};</screen>
|
||||
|
||||
<para>Falls &man.autofs.5; und &man.devd.8; bereits
|
||||
ausgeführt werden, müssen Sie die Konfiguration neu
|
||||
einlesen:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>service automount reload</userinput>
|
||||
&prompt.root; <userinput>service devd restart</userinput></screen>
|
||||
|
||||
<para>&man.autofs.5; wird beim Booten automatisch gestartet,
|
||||
wenn Sie folgende Zeile in <filename>/etc/rc.conf</filename>
|
||||
hinzufügen:</para>
|
||||
|
||||
<programlisting>autofs_enable="YES"</programlisting>
|
||||
|
||||
<para>Damit &man.autofs.5; funktioniert, muss &man.devd.8;
|
||||
aktiviert sein, was aber in der Voreinstellung der Fall
|
||||
ist.</para>
|
||||
|
||||
<para>Starten Sie jetzt die Dienste:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>service automount start</userinput>
|
||||
&prompt.root; <userinput>service automountd start</userinput>
|
||||
&prompt.root; <userinput>service autounmountd start</userinput>
|
||||
&prompt.root; <userinput>service devd start</userinput></screen>
|
||||
|
||||
<para>Jedes Dateisystem, das automatisch eingehängt werden kann,
|
||||
erscheint als ein Verzeichnis unterhalb von
|
||||
<filename>media</filename>. Das Verzeichnis wird nach dem
|
||||
Dateisystemlabel benannt, bzw. nach dem Gerätenamen, falls
|
||||
kein Label existiert.</para>
|
||||
|
||||
<para>Das Dateisystem wird transparent beim ersten Zugriff in
|
||||
den Verzeichnisbaum eingehängt und auch nach gewisser Zeit der
|
||||
Inaktivität wieder ausgehängt. Laufwerke können auch manuell
|
||||
ausgehängt werden:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>automount -fu</userinput></screen>
|
||||
|
||||
<para>Diese Methode wird in der Regel bei Speicherkarten und
|
||||
<acronym>USB</acronym>-Sticks verwendet. Sie funktioniert
|
||||
aber mit allen Blockgeräten, einschließlich optischen
|
||||
Laufwerken und
|
||||
<acronym>iSCSI</acronym>-<acronym>LUN</acronym>s.</para>
|
||||
</sect2>
|
||||
</sect1>
|
||||
|
||||
<sect1 xml:id="creating-cds">
|
||||
|
|
Loading…
Reference in a new issue