source: postlfs/config/autofs.xml@ 765a494

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 765a494 was 765a494, checked in by Bruce Dubbs <bdubbs@…>, 18 years ago

Created a consolidated autofs patch to add new patches to autofs.

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

  • Property mode set to 100644
File size: 9.3 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="&patch-root;/autofs-&autofs-version;-consolidated-1.patch"/></para>
83 </listitem>
84 </itemizedlist>
85
86 <para condition="html" role="usernotes">User Notes:
87 <ulink url="&blfs-wiki;/autofs"/></para>
88
89 </sect2>
90
91 <sect2 role="kernel" id="autofs-kernel">
92 <title>Kernel Configuration</title>
93
94 <indexterm zone="autofs autofs-kernel">
95 <primary sortas="d-Automounter">Automounter</primary>
96 </indexterm>
97
98 <para>Verify that kernel support has been compiled in or built as
99 modules in the following areas:</para>
100
101<screen><literal>File systems &rArr;
102 Kernel automounter version 4 support Y or M
103 Network File Systems &rArr;
104 NFS file system support Y or M (optional)
105 SMB file system support Y or M (optional)</literal></screen>
106
107 <para>Recompile and install the new kernel, if necessary.</para>
108
109 </sect2>
110
111 <sect2 role="installation">
112
113 <title>Installation of Autofs</title>
114
115 <para>Install <application>autofs</application> by running the following
116 commands:</para>
117
118<screen><userinput>patch -Np1 -i ../autofs-&autofs-version;-consolidated-1.patch &amp;&amp;
119./configure --prefix=/ --mandir=/usr/share/man &amp;&amp;
120make</userinput></screen>
121
122 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
123
124<screen role="root"><userinput>make install &amp;&amp;
125rm /etc/rc.d/init.d/autofs</userinput></screen>
126
127 </sect2>
128
129 <sect2 role="commands">
130 <title>Command Explanations</title>
131
132 <para><command>patch -Np1 -i
133 ../autofs-&autofs-version;-consolidated-1.patch</command>: This patch
134 is a consolidation of nine small patches available at <ulink
135 url="http://ftp.kernel.org/pub/linux/daemons/autofs/v4/"/>. The patches
136 can be applied individually if desired.</para>
137
138 <para><command>rm /etc/rc.d/init.d/autofs</command>: This command removes
139 the installed script which only works on specific distributions.</para>
140
141 </sect2>
142
143 <sect2 role="configuration">
144 <title>Configuring Autofs</title>
145
146 <sect3 id="autofs-config">
147 <title>Config Files</title>
148
149 <para><filename>/etc/sysconfig/autofs.conf</filename>,
150 <filename>/etc/auto.master</filename>,
151 <filename>/etc/auto.misc</filename>, and
152 <filename>/etc/auto.net</filename></para>
153
154 <indexterm zone="autofs autofs-config" >
155 <primary sortas="e-etc-sysconfig-autofs.conf">/etc/sysconfig/autofs.conf</primary>
156 </indexterm>
157
158 <indexterm zone="autofs autofs-config">
159 <primary sortas="e-etc-auto.master">/etc/auto.master</primary>
160 </indexterm>
161
162 <indexterm zone="autofs autofs-config">
163 <primary sortas="e-etc-auto.misc">/etc/auto.misc</primary>
164 </indexterm>
165
166 <indexterm zone="autofs autofs-config">
167 <primary sortas="e-etc-auto.net">/etc/auto.net</primary>
168 </indexterm>
169
170 </sect3>
171
172 <sect3>
173 <title>Configuration Information</title>
174
175 <para>The installation process creates <filename>auto.master</filename>,
176 <filename>auto.misc</filename> and <filename>auto.net</filename>. You
177 will replace the <filename>auto.master</filename> with the following
178 commands:</para>
179
180<screen role="root"><userinput>mv /etc/auto.master /etc/auto.master.bak &amp;&amp;
181cat &gt; /etc/auto.master &lt;&lt; "EOF"
182<literal># Begin /etc/auto.master
183
184/media /etc/auto.misc
185
186# End /etc/auto.master</literal>
187EOF</userinput></screen>
188
189 <note>
190 <para>This file mounts a new media directory over the one created by
191 LFS and will therefore hide any mounts made by the
192 <filename>fstab</filename> file into that directory.</para>
193 </note>
194
195 <para>While this package could be used to mount NFS shares and SMB
196 shares, that feature is not configured in these instructions. NFS shares
197 are covered on the next page.</para>
198
199 <para>The <filename>auto.misc</filename> must be configured to your
200 working hardware. The loaded configuration file should load your cdrom
201 if <filename>/dev/cdrom</filename> is active or it can be edited to
202 match your device setup and examples for floppies are available in the file
203 and easily activated. Documentation for this file is available using the
204 <command>man 5 autofs</command> command.</para>
205
206 </sect3>
207
208 <sect3 id="autofs-init">
209 <title>Boot Script</title>
210
211
212 <para>Install the <filename>/etc/rc.d/init.d/autofs</filename> mount script
213 and <filename>/etc/sysconfig/autofs.conf</filename> support file included
214 with the <xref linkend="bootscripts"/> package.</para>
215
216 <indexterm zone="autofs autofs-init">
217 <primary sortas="f-autofs-init">autofs</primary>
218 </indexterm>
219
220<screen role="root"><userinput>make install-autofs</userinput></screen>
221
222 <para>The time-out variable is set in
223 <filename>/etc/sysconfig/autofs.conf</filename>. The installed file sets
224 a default of 60 seconds of inactivity before unmounting the device. A
225 much shorter time may be necessary to protect buffer writing to a floppy
226 if users tend to remove the media prior to the timeout setting.</para>
227
228 </sect3>
229
230 </sect2>
231
232 <sect2 role="content">
233 <title>Contents</title>
234
235 <segmentedlist>
236 <segtitle>Installed Program</segtitle>
237 <segtitle>Installed Libraries</segtitle>
238 <segtitle>Installed Directories</segtitle>
239
240 <seglistitem>
241 <seg>automount</seg>
242 <seg>autofs modules</seg>
243 <seg>/lib/autofs and /var/run/autofs</seg>
244 </seglistitem>
245 </segmentedlist>
246
247 <variablelist>
248 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
249 <?dbfo list-presentation="list"?>
250 <?dbhtml list-presentation="table"?>
251
252 <varlistentry id="automount">
253 <term><command>automount</command></term>
254 <listitem>
255 <para>is the daemon that performs the mounting when a request is
256 made for the device.</para>
257 <indexterm zone="autofs automount">
258 <primary sortas="b-automount">automount</primary>
259 </indexterm>
260 </listitem>
261 </varlistentry>
262
263 </variablelist>
264
265 </sect2>
266
267</sect1>
268
Note: See TracBrowser for help on using the repository browser.