source: postlfs/config/autofs.xml@ 0aeb696

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 0aeb696 was 0aeb696, checked in by Randy McMurchy <randy@…>, 18 years ago

Added a comment to each file that may need a mention of a test suite added to it, this allows closing of bug #1697

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

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