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,57 @@
da0: <STECH Simple Drive 1.04> s/n WD-WXE508CAN263 detached
(da0:umass-sim0:0:0:0): Periph destroyed
+
+ Automounting removable media
+
+
+ The &man.autofs.5; automount facility is supported
+ starting with &os; 10.1-RELEASE.
+
+
+ To automatically mount the USB device,
+ uncomment the following line in /etc/auto_master:
+ /media -media -nosuid
+
+ Second step is to add the following lines to /etc/devd.conf;
+ default configuration file contains them, but in the comments section:
+ # Discard autofs caches, useful for the -media special map.
+notify 100 {
+ match "system" "GEOM";
+ match "subsystem" "DEV";
+ action "/usr/sbin/automount -c";
+};
+
+
+ If autofs and devd are already running, one must reload their
+ configuration by using:
+ &prompt.root; service automount reload
+&prompt.root; service devd reload
+
+ To enable &man.autofs.5; and &man.devd.8; at boot time, add those lines to
+ /etc/rc.conf:
+
+ autofs_enable="YES"
+devd_enable="YES"
+
+ Then &man.autofs.5; and &man.devd.8; can be started by running:
+
+ &prompt.root; service automount start
+&prompt.root; service automountd start
+&prompt.root; service autounmountd start
+&prompt.root; service devd start
+
+ Each file system that can be automatically mounted will appear as a directory
+ in /media, named after the filesystem label, or, if the label
+ is missing, after the device node. It will be transparently mounted on first access,
+ and unmounted after some period of inactivity. Automounted drives can also be unmounted
+ by hand by using:
+ &prompt.root; automount -fu
+
+ This mechanism works for any block devices - not just USB sticks, but also
+ optical drives or iSCSI LUNs.
+
+