source: postlfs/config/autofs.xml@ 460c6edb

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 460c6edb was 460c6edb, checked in by Bruce Dubbs <bdubbs@…>, 19 years ago

Updated to autofs-4.1.4

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@4599 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY autofs-patch-dir "http://ftp.kernel.org/pub/linux/daemons/autofs/v4/">
8 <!ENTITY autofs-download-http "http://ftp.kernel.org/pub/linux/daemons/autofs/v4/autofs-&autofs-version;.tar.bz2">
9 <!ENTITY autofs-download-ftp "ftp://ftp.kernel.org/pub/linux/daemons/autofs/v4/autofs-&autofs-version;.tar.bz2">
10 <!ENTITY autofs-md5sum "7e3949114c00665b4636f0c318179657">
11 <!ENTITY autofs-size "168 KB">
12 <!ENTITY autofs-buildsize "2.3 MB">
13 <!ENTITY autofs-time "less than 0.1 SBU">
14]>
15
16<sect1 id="autofs" xreflabel="autofs-&autofs-version;">
17 <?dbhtml filename="autofs.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>Automate Mounting of File Systems</title>
25
26 <indexterm zone="autofs">
27 <primary sortas="a-Autofs">Autofs</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to Autofs</title>
32
33 <para>The <application>autofs</application> package contains userspace
34 tools that work with the kernel to mount and un-mount removable file
35 systems. This is useful for allowing users to mount floppies, cdroms and
36 other removable storage devices without requiring the system
37 administrator to mount the devices. This may not be ideal for all
38 installations, so be aware of the risks before implementing this feature.</para>
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>Download (HTTP): <ulink url="&autofs-download-http;"/></para>
44 </listitem>
45 <listitem>
46 <para>Download (FTP): <ulink url="&autofs-download-ftp;"/></para>
47 </listitem>
48 <listitem>
49 <para>Download MD5 sum: &autofs-md5sum;</para>
50 </listitem>
51 <listitem>
52 <para>Download size: &autofs-size;</para>
53 </listitem>
54 <listitem>
55 <para>Estimated disk space required: &autofs-buildsize;</para>
56 </listitem>
57 <listitem>
58 <para>Estimated build time: &autofs-time;</para>
59 </listitem>
60 </itemizedlist>
61
62 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
63 <itemizedlist spacing="compact">
64 <listitem>
65 <para>Recommended Patch: <ulink
66 url="&autofs-patch-dir;autofs-&autofs-version;-misc-fixes.patch"/></para>
67 </listitem>
68 <listitem>
69 <para>Recommended Patch: <ulink
70 url="&autofs-patch-dir;autofs-&autofs-version;-multi-parse-fix.patch"/></para>
71 </listitem>
72 <listitem>
73 <para>Recommended Patch: <ulink
74 url="&autofs-patch-dir;autofs-&autofs-version;-non-replicated-ping.patch"/></para>
75 </listitem>
76 </itemizedlist>
77
78 </sect2>
79
80 <sect2 role="kernel" id="autofs-kernel">
81 <title>Kernel Configuration</title>
82
83 <indexterm zone="autofs autofs-kernel">
84 <primary sortas="d-Automounter">Automounter</primary>
85 </indexterm>
86
87 <para>Verify that kernel support has been compiled in or built as
88 modules in the following areas:</para>
89
90<screen><literal>File systems
91 Kernel automounter version 4 support Y or M
92Network File Systems
93 NFS file system support Y or M
94 SMB file system support Y or M</literal></screen>
95
96 <para>Recompile and install the new kernel, if necessary.</para>
97
98 </sect2>
99
100 <sect2 role="installation">
101
102 <title>Installation of Autofs</title>
103
104 <para>Install <application>autofs</application> by running the following
105 commands:</para>
106
107<screen><userinput>patch -Np1 -i ../autofs-&autofs-version;-misc-fixes.patch &amp;&amp;
108patch -Np1 -i ../autofs-&autofs-version;-multi-parse-fix.patch &amp;&amp;
109patch -Np1 -i ../autofs-&autofs-version;-non-replicated-ping.patch &amp;&amp;
110make</userinput></screen>
111
112 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
113
114<screen role="root"><userinput>make install &amp;&amp;
115rm /etc/rc.d/init.d/autofs</userinput></screen>
116
117 </sect2>
118
119 <sect2 role="commands">
120 <title>Command Explanations</title>
121
122 <para><command>rm /etc/rc.d/init.d/autofs</command>: This command
123 removes the installed script which only works on specific distributions.</para>
124
125 </sect2>
126
127 <sect2 role="configuration">
128 <title>Configuring Autofs</title>
129
130 <sect3 id="autofs-config">
131 <title>Config Files</title>
132
133 <para><filename>/etc/sysconfig/autofs.conf</filename>,
134 <filename>/etc/auto.master</filename>,
135 <filename>/etc/auto.misc</filename>, and
136 <filename>/etc/auto.net</filename></para>
137
138 <indexterm zone="autofs autofs-config" >
139 <primary sortas="e-etc-sysconfig-autofs.conf">/etc/sysconfig/autofs.conf</primary>
140 </indexterm>
141
142 <indexterm zone="autofs autofs-config">
143 <primary sortas="e-etc-auto.master">/etc/auto.master</primary>
144 </indexterm>
145
146 <indexterm zone="autofs autofs-config">
147 <primary sortas="e-etc-auto.misc">/etc/auto.misc</primary>
148 </indexterm>
149
150 <indexterm zone="autofs autofs-config">
151 <primary sortas="e-etc-auto.net">/etc/auto.net</primary>
152 </indexterm>
153
154 </sect3>
155
156 <sect3>
157 <title>Configuration Information</title>
158
159 <para>The installation process creates <filename>auto.master</filename>,
160 <filename>auto.misc</filename> and <filename>auto.net</filename>. You
161 will replace the <filename>auto.master</filename> with the following
162 commands:</para>
163
164<screen role="root"><userinput>mv /etc/auto.master /etc/auto.master.bak &amp;&amp;
165cat &gt; /etc/auto.master &lt;&lt; "EOF"
166<literal># Begin /etc/auto.master
167
168/media /etc/auto.misc
169
170# End /etc/auto.master</literal>
171EOF</userinput></screen>
172
173 <note>
174 <para>This file mounts a new media directory over the one created by
175 LFS and will therefore hide any mounts made by the
176 <filename>fstab</filename> file into that directory.</para>
177 </note>
178
179 <para>While this package could be used to mount NFS shares and SMB
180 shares, that feature is not configured in these instructions. NFS shares
181 are covered on the next page.</para>
182
183 <para>The <filename>auto.misc</filename> must be configured to your
184 working hardware. The loaded configuration file should load your cdrom
185 if <filename>/dev/cdrom</filename> is active or it can be edited to
186 match your device setup and examples for floppies are available in the file
187 and easily activated. Documentation for this file is available using the
188 <command>man 5 autofs</command> command.</para>
189
190 </sect3>
191
192 <sect3 id="autofs-init">
193 <title>Boot Script</title>
194
195
196 <para>Install the <filename>/etc/rc.d/init.d/autofs</filename> mount script
197 and <filename>/etc/sysconfig/autofs.conf</filename> support file included
198 with the <xref linkend="intro-important-bootscripts"/> package.</para>
199
200 <indexterm zone="autofs autofs-init">
201 <primary sortas="f-autofs-init">autofs</primary>
202 </indexterm>
203
204<screen role="root"><userinput>make install-autofs</userinput></screen>
205
206 <para>The time-out variable is set in
207 <filename>/etc/sysconfig/autofs.conf</filename>. The installed file sets
208 a default of 60 seconds of inactivity before unmounting the device. A
209 much shorter time may be necessary to protect buffer writing to a floppy
210 if users tend to remove the media prior to the timeout setting.</para>
211
212 </sect3>
213
214 </sect2>
215
216 <sect2 role="content">
217 <title>Contents</title>
218
219 <segmentedlist>
220 <segtitle>Installed Program</segtitle>
221 <segtitle>Installed Libraries</segtitle>
222 <segtitle>Installed Directories</segtitle>
223
224 <seglistitem>
225 <seg>automount</seg>
226 <seg>autofs modules</seg>
227 <seg>/lib/autofs and /var/run/autofs</seg>
228 </seglistitem>
229 </segmentedlist>
230
231 <variablelist>
232 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
233 <?dbfo list-presentation="list"?>
234 <?dbhtml list-presentation="table"?>
235
236 <varlistentry id="automount">
237 <term><command>automount</command></term>
238 <listitem>
239 <para>is the daemon that performs the mounting when a request is
240 made for the device.</para>
241 <indexterm zone="autofs automount">
242 <primary sortas="b-automount">automount</primary>
243 </indexterm>
244 </listitem>
245 </varlistentry>
246
247 </variablelist>
248
249 </sect2>
250
251</sect1>
252
Note: See TracBrowser for help on using the repository browser.