Page MenuHomeFreeBSD

D3980.id9787.diff
No OneTemporary

D3980.id9787.diff

Index: en_US.ISO8859-1/books/handbook/disks/chapter.xml
===================================================================
--- en_US.ISO8859-1/books/handbook/disks/chapter.xml
+++ en_US.ISO8859-1/books/handbook/disks/chapter.xml
@@ -508,6 +508,66 @@
da0: <STECH Simple Drive 1.04> s/n WD-WXE508CAN263 detached
(da0:umass-sim0:0:0:0): Periph destroyed</screen>
</sect2>
+ <sect2>
+ <title>Automounting Removable Media</title>
+
+ <note>
+ <para>The <literal>-media</literal> &man.autofs.5; map is
+ supported starting with &os;&nbsp;10.2-RELEASE.</para>
+ </note>
+
+ <para><acronym>USB</acronym> devices can be automatically
+ mounted by uncommenting this line in
+ <filename>/etc/auto_master</filename>:</para>
+ <screen>/media -media -nosuid</screen>
+
+ <para>Second step is to add the following lines to
+ <filename>/etc/devd.conf</filename>; default configuration
+ file contains them, but in the comments section:</para>
+ <screen># Discard autofs caches, useful for the -media special map.
+notify 100 {
+ match "system" "GEOM";
+ match "subsystem" "DEV";
+ action "/usr/sbin/automount -c";
+};
+</screen>
+
+ <para>Reload the configuration if &man.autofs.5;
+ and &man.devd.8; are already running:</para>
+ <screen>&prompt.root; <userinput>service automount reload</userinput>
+&prompt.root; <userinput>service devd reload</userinput></screen>
+
+ <para>&man.autofs.5; and &man.devd.8; can be enabled at boot
+ time by adding these lines to
+ <filename>/etc/rc.conf</filename>:</para>
+
+ <programlisting>autofs_enable="YES"
+devd_enable="YES"</programlisting>
+
+ <para>Start the services immediately with:</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>Each file system that can be automatically mounted appears
+ as a directory in <filename>/media/</filename>. The directory
+ is named after the file system label. If the label is
+ missing, the directory is named after the device node.</para>
+
+ <para>The file system is transparently mounted on the first
+ access, and unmounted after a period of inactivity.
+ Automounted drives can also be unmounted manually:</para>
+
+ <screen>&prompt.root; <userinput>automount -fu</userinput></screen>
+
+ <para>This mechanism is typically used for memory cards and
+ <acronym>USB</acronym> memory sticks. It can be used with
+ any block device, including optical drives or
+ <acronym>iSCSI</acronym> <acronym>LUN</acronym>s.</para>
+ </sect2>
</sect1>
<sect1 xml:id="creating-cds">

File Metadata

Mime Type
text/plain
Expires
Tue, May 19, 8:15 AM (19 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33302032
Default Alt Text
D3980.id9787.diff (2 KB)

Event Timeline