[7ef22cff] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!-- Place this in the general.ent file
|
---|
| 8 | <!ENTITY template-version "">
|
---|
| 9 | -->
|
---|
| 10 |
|
---|
| 11 | <!ENTITY autofs-download-http "http://ftp.kernel.org/pub/linux/daemons/autofs/v4/autofs-&autofs-version;.tar.bz2">
|
---|
| 12 | <!ENTITY autofs-download-ftp "ftp://ftp.kernel.org/pub/linux/daemons/autofs/v4/autofs-&autofs-version;.tar.bz2">
|
---|
| 13 | <!ENTITY autofs-md5sum "f43a09e94c4bd512ec58ac06e9d42c60">
|
---|
| 14 | <!ENTITY autofs-size "122 KB">
|
---|
| 15 | <!ENTITY autofs-buildsize "1.4 MB">
|
---|
| 16 | <!ENTITY autofs-time "0.01 SBU">
|
---|
| 17 | ]>
|
---|
| 18 |
|
---|
| 19 | <sect1 id="autofs" xreflabel="autofs-&autofs-version;">
|
---|
| 20 | <sect1info>
|
---|
| 21 | <othername>$LastChangedBy: randy $</othername>
|
---|
| 22 | <date>$Date: 2004-10-15 13:14:25 -0500 (Fri, 15 Oct 2004) $</date>
|
---|
| 23 | </sect1info>
|
---|
| 24 | <?dbhtml filename="autofs.html"?>
|
---|
| 25 | <title>Automate Mounting of Removable File Systems</title>
|
---|
| 26 |
|
---|
| 27 | <sect2>
|
---|
| 28 | <title>Introduction to <application>autofs</application></title>
|
---|
| 29 |
|
---|
| 30 | <para>The <application>autofs</application> package contains userspace
|
---|
| 31 | tools that work with the kernel to mount and un-mount removable file
|
---|
[5b5a3c2] | 32 | systems. This is useful for allowing users to mount floppies, cdroms and
|
---|
[7ef22cff] | 33 | other removable storage devices without requiring the system
|
---|
| 34 | administrator to mount the devices. This may not be ideal for all
|
---|
| 35 | installations, so be aware of the risks before implementing this feature.</para>
|
---|
| 36 |
|
---|
| 37 | <sect3><title>Package information</title>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem><para>Download (HTTP): <ulink url="&autofs-download-http;"/></para></listitem>
|
---|
| 40 | <listitem><para>Download (FTP): <ulink url="&autofs-download-ftp;"/></para></listitem>
|
---|
[239e8ca] | 41 | <listitem><para>Download MD5 sum: &autofs-md5sum;</para></listitem>
|
---|
[7ef22cff] | 42 | <listitem><para>Download size: &autofs-size;</para></listitem>
|
---|
| 43 | <listitem><para>Estimated disk space required: &autofs-buildsize;</para></listitem>
|
---|
| 44 | <listitem><para>Estimated build time: &autofs-time;</para></listitem></itemizedlist>
|
---|
| 45 | </sect3>
|
---|
| 46 |
|
---|
| 47 | <!-- <sect3><title>Additional downloads</title>
|
---|
| 48 | <itemizedlist spacing="compact">
|
---|
| 49 | <listitem><para>Required Patch: <ulink
|
---|
| 50 | url="&patch-root;/template-&template-version;-patch_name-patch_version.patch"/></para>
|
---|
| 51 | </listitem></itemizedlist>
|
---|
| 52 | </sect3>
|
---|
| 53 |
|
---|
| 54 | <sect3><title><application>template</application> dependencies</title>
|
---|
| 55 | <sect4><title>Required</title>
|
---|
| 56 | <para><xref linkend="BLFS DEPENDENCY"/></para>
|
---|
| 57 | </sect4>
|
---|
| 58 |
|
---|
| 59 | <sect4><title>Optional</title>
|
---|
| 60 | <para><ulink url="http://www.some.url/">EXTERNAL DEPENDENCY</ulink></para>
|
---|
| 61 | </sect4>
|
---|
| 62 | </sect3> -->
|
---|
| 63 |
|
---|
| 64 | </sect2>
|
---|
| 65 |
|
---|
| 66 | <sect2>
|
---|
| 67 | <title>Installation of <application>autofs</application></title>
|
---|
| 68 |
|
---|
| 69 | <para>Install <application>autofs</application> by running the following
|
---|
| 70 | commands:</para>
|
---|
| 71 |
|
---|
| 72 | <para>Verify that kernel support has been compiled in or built as
|
---|
| 73 | modules in the following areas:
|
---|
| 74 | <screen>File systems
|
---|
| 75 | Kernel automounter version 4 support Y or M
|
---|
| 76 | Network File Systems
|
---|
| 77 | NFS file system support Y or M
|
---|
| 78 | SMB file system support Y or M</screen>
|
---|
| 79 | Recompile and install the new kernel, if necessary.</para>
|
---|
| 80 |
|
---|
| 81 | <screen><userinput><command>./configure --prefix=/ --mandir=/usr/share/man &&
|
---|
| 82 | make &&
|
---|
| 83 | make install &&
|
---|
| 84 | rm /etc/rc.d/init.d/autofs</command></userinput></screen>
|
---|
| 85 |
|
---|
| 86 | </sect2>
|
---|
| 87 |
|
---|
| 88 | <sect2>
|
---|
| 89 | <title>Command explanations</title>
|
---|
| 90 |
|
---|
| 91 | <para><command>rm /etc/rc.d/init.d/autofs</command>: This command
|
---|
| 92 | removes the installed script which only works on specific distributions.</para>
|
---|
| 93 |
|
---|
| 94 | </sect2>
|
---|
| 95 |
|
---|
| 96 | <sect2>
|
---|
| 97 | <title>Configuring <application>autofs</application></title>
|
---|
| 98 |
|
---|
| 99 | <sect3><title>Config files</title>
|
---|
| 100 | <para><filename>/etc/sysconfig/autofs.conf</filename>,
|
---|
| 101 | <filename>/etc/auto.master</filename>,
|
---|
| 102 | <filename>/etc/auto.misc</filename>, and
|
---|
| 103 | <filename>/etc/auto.net</filename></para>
|
---|
| 104 | </sect3>
|
---|
| 105 |
|
---|
| 106 | <sect3><title>Configuration Information</title>
|
---|
| 107 |
|
---|
| 108 | <para>The installation process creates <filename>auto.master</filename>,
|
---|
| 109 | <filename>auto.misc</filename> and <filename>auto.net</filename>. You
|
---|
| 110 | will replace the <filename>auto.master</filename> with the following
|
---|
| 111 | commands.
|
---|
| 112 |
|
---|
| 113 | <screen><userinput><command>mv /etc/auto.master /etc/auto.master.bak &&
|
---|
| 114 | cat > /etc/auto.master << "EOF"</command>
|
---|
| 115 | # Begin /etc/auto.master
|
---|
| 116 |
|
---|
| 117 | /media /etc/auto.misc
|
---|
| 118 |
|
---|
| 119 | # End /etc/auto.master
|
---|
| 120 | <command>EOF</command></userinput></screen></para>
|
---|
| 121 |
|
---|
| 122 | <note><para>This file mounts a new media directory over the one created by
|
---|
| 123 | <acronym>LFS</acronym> and will therefore hide any mounts made by the
|
---|
| 124 | <filename>fstab</filename> file into that directory.</para></note>
|
---|
| 125 |
|
---|
| 126 | <para>While this package could be used to mount <acronym>NFS</acronym>
|
---|
| 127 | shares and <acronym>SMB</acronym> shares, that feature is not configured
|
---|
| 128 | in these instructions. <acronym>NFS</acronym> shares are covered on the
|
---|
| 129 | next page.
|
---|
| 130 | </para>
|
---|
| 131 |
|
---|
| 132 | <para>The <filename>auto.misc</filename> must be configured to your
|
---|
| 133 | working hardware. The loaded configuration file should load your cdrom
|
---|
| 134 | if <filename>/dev/cdrom</filename> is active or it can be edited to
|
---|
| 135 | match your device setup and examples for floppies are available in the file
|
---|
| 136 | and easily activated. Documentation for this file is available using the
|
---|
| 137 | <command>man 5 autofs</command> command.</para>
|
---|
| 138 |
|
---|
| 139 | <para>Install the <filename>/etc/rc.d/init.d/autofs</filename> mount
|
---|
| 140 | script and <filename>/etc/sysconfig/autofs.conf</filename> support file
|
---|
| 141 | included with the <xref linkend="intro-important-bootscripts"/>
|
---|
| 142 | package.</para>
|
---|
| 143 |
|
---|
| 144 | <screen><userinput><command>make install-autofs</command></userinput></screen>
|
---|
| 145 |
|
---|
| 146 | <para>The time-out variable is set in
|
---|
| 147 | <filename>/etc/sysconfig/autofs.conf</filename>. The installed file sets
|
---|
| 148 | a default of 60 seconds of inactivity before unmounting the device. A
|
---|
| 149 | much shorter time may be necessary to protect buffer writing to a
|
---|
| 150 | floppy if users tend to remove the media prior to the timeout
|
---|
| 151 | setting.</para>
|
---|
| 152 | </sect3>
|
---|
| 153 |
|
---|
| 154 | </sect2>
|
---|
| 155 |
|
---|
| 156 | <sect2>
|
---|
| 157 | <title>Contents</title>
|
---|
| 158 |
|
---|
| 159 | <para>The <application>autofs</application> package contains
|
---|
| 160 | <command>automount</command> and <filename>autofs</filename> library
|
---|
| 161 | modules.</para>
|
---|
| 162 |
|
---|
| 163 | </sect2>
|
---|
| 164 |
|
---|
| 165 | <sect2><title>Description</title>
|
---|
| 166 |
|
---|
| 167 | <sect3><title>automount</title>
|
---|
| 168 | <para><command>automount</command> is the daemon that performs the
|
---|
| 169 | mounting when a request is made for the device.</para></sect3>
|
---|
| 170 |
|
---|
| 171 | </sect2>
|
---|
| 172 |
|
---|
| 173 | </sect1>
|
---|
| 174 |
|
---|