source: postlfs/config/autofs.xml@ 9084c2eb

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 9084c2eb was 9084c2eb, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Typo fix. Postlfs.

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

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