source: postlfs/config/autofs.xml@ 6b104248

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 6b104248 was 6b104248, checked in by Bruce Dubbs <bdubbs@…>, 19 years ago

Add config to autofs

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@4906 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;
110./configure --prefix=/ --mandir=/usr/share/man &amp;&amp;
111make</userinput></screen>
112
113 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
114
115<screen role="root"><userinput>make install &amp;&amp;
116rm /etc/rc.d/init.d/autofs</userinput></screen>
117
118 </sect2>
119
120 <sect2 role="commands">
121 <title>Command Explanations</title>
122
123 <para><command>rm /etc/rc.d/init.d/autofs</command>: This command removes
124 the installed script which only works on specific distributions.</para>
125
126 </sect2>
127
128 <sect2 role="configuration">
129 <title>Configuring Autofs</title>
130
131 <sect3 id="autofs-config">
132 <title>Config Files</title>
133
134 <para><filename>/etc/sysconfig/autofs.conf</filename>,
135 <filename>/etc/auto.master</filename>,
136 <filename>/etc/auto.misc</filename>, and
137 <filename>/etc/auto.net</filename></para>
138
139 <indexterm zone="autofs autofs-config" >
140 <primary sortas="e-etc-sysconfig-autofs.conf">/etc/sysconfig/autofs.conf</primary>
141 </indexterm>
142
143 <indexterm zone="autofs autofs-config">
144 <primary sortas="e-etc-auto.master">/etc/auto.master</primary>
145 </indexterm>
146
147 <indexterm zone="autofs autofs-config">
148 <primary sortas="e-etc-auto.misc">/etc/auto.misc</primary>
149 </indexterm>
150
151 <indexterm zone="autofs autofs-config">
152 <primary sortas="e-etc-auto.net">/etc/auto.net</primary>
153 </indexterm>
154
155 </sect3>
156
157 <sect3>
158 <title>Configuration Information</title>
159
160 <para>The installation process creates <filename>auto.master</filename>,
161 <filename>auto.misc</filename> and <filename>auto.net</filename>. You
162 will replace the <filename>auto.master</filename> with the following
163 commands:</para>
164
165<screen role="root"><userinput>mv /etc/auto.master /etc/auto.master.bak &amp;&amp;
166cat &gt; /etc/auto.master &lt;&lt; "EOF"
167<literal># Begin /etc/auto.master
168
169/media /etc/auto.misc
170
171# End /etc/auto.master</literal>
172EOF</userinput></screen>
173
174 <note>
175 <para>This file mounts a new media directory over the one created by
176 LFS and will therefore hide any mounts made by the
177 <filename>fstab</filename> file into that directory.</para>
178 </note>
179
180 <para>While this package could be used to mount NFS shares and SMB
181 shares, that feature is not configured in these instructions. NFS shares
182 are covered on the next page.</para>
183
184 <para>The <filename>auto.misc</filename> must be configured to your
185 working hardware. The loaded configuration file should load your cdrom
186 if <filename>/dev/cdrom</filename> is active or it can be edited to
187 match your device setup and examples for floppies are available in the file
188 and easily activated. Documentation for this file is available using the
189 <command>man 5 autofs</command> command.</para>
190
191 </sect3>
192
193 <sect3 id="autofs-init">
194 <title>Boot Script</title>
195
196
197 <para>Install the <filename>/etc/rc.d/init.d/autofs</filename> mount script
198 and <filename>/etc/sysconfig/autofs.conf</filename> support file included
199 with the <xref linkend="intro-important-bootscripts"/> package.</para>
200
201 <indexterm zone="autofs autofs-init">
202 <primary sortas="f-autofs-init">autofs</primary>
203 </indexterm>
204
205<screen role="root"><userinput>make install-autofs</userinput></screen>
206
207 <para>The time-out variable is set in
208 <filename>/etc/sysconfig/autofs.conf</filename>. The installed file sets
209 a default of 60 seconds of inactivity before unmounting the device. A
210 much shorter time may be necessary to protect buffer writing to a floppy
211 if users tend to remove the media prior to the timeout setting.</para>
212
213 </sect3>
214
215 </sect2>
216
217 <sect2 role="content">
218 <title>Contents</title>
219
220 <segmentedlist>
221 <segtitle>Installed Program</segtitle>
222 <segtitle>Installed Libraries</segtitle>
223 <segtitle>Installed Directories</segtitle>
224
225 <seglistitem>
226 <seg>automount</seg>
227 <seg>autofs modules</seg>
228 <seg>/lib/autofs and /var/run/autofs</seg>
229 </seglistitem>
230 </segmentedlist>
231
232 <variablelist>
233 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
234 <?dbfo list-presentation="list"?>
235 <?dbhtml list-presentation="table"?>
236
237 <varlistentry id="automount">
238 <term><command>automount</command></term>
239 <listitem>
240 <para>is the daemon that performs the mounting when a request is
241 made for the device.</para>
242 <indexterm zone="autofs automount">
243 <primary sortas="b-automount">automount</primary>
244 </indexterm>
245 </listitem>
246 </varlistentry>
247
248 </variablelist>
249
250 </sect2>
251
252</sect1>
253
Note: See TracBrowser for help on using the repository browser.