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