source: postlfs/config/autofs.xml@ 1b1485a

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 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 gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 1b1485a was 6a0e6e4, checked in by Bruce Dubbs <bdubbs@…>, 18 years ago

Added (optional) to kernel config items in autofs)

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

  • Property mode set to 100644
File size: 9.4 KB
RevLine 
[7ef22cff]1<?xml version="1.0" encoding="ISO-8859-1"?>
[ff769b8c]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
[7ef22cff]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[0aeb696]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
[460c6edb]19 <!ENTITY autofs-patch-dir "http://ftp.kernel.org/pub/linux/daemons/autofs/v4/">
[7ef22cff]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">
[460c6edb]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">
[7ef22cff]26]>
27
28<sect1 id="autofs" xreflabel="autofs-&autofs-version;">
[d3ad3271]29 <?dbhtml filename="autofs.html"?>
30
31 <sect1info>
32 <othername>$LastChangedBy$</othername>
33 <date>$Date$</date>
[e19ad480]34 <keywordset>
35 <keyword role="package">autofs-&autofs-version;.tar</keyword>
[9084c2eb]36 <keyword role="ftpdir">autofs</keyword>
[e19ad480]37 </keywordset>
[d3ad3271]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
[e0d33ef]51 systems. This is useful for allowing users to mount floppies, cdroms and
[d3ad3271]52 other removable storage devices without requiring the system
[e0d33ef]53 administrator to mount the devices. This may not be ideal for all
[d3ad3271]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
[460c6edb]82 url="&autofs-patch-dir;autofs-&autofs-version;-misc-fixes.patch"/></para>
[d3ad3271]83 </listitem>
84 <listitem>
85 <para>Recommended Patch: <ulink
[460c6edb]86 url="&autofs-patch-dir;autofs-&autofs-version;-multi-parse-fix.patch"/></para>
[d3ad3271]87 </listitem>
88 <listitem>
89 <para>Recommended Patch: <ulink
[460c6edb]90 url="&autofs-patch-dir;autofs-&autofs-version;-non-replicated-ping.patch"/></para>
[d3ad3271]91 </listitem>
92 </itemizedlist>
93
[3597eb6]94 <para condition="html" role="usernotes">User Notes:
95 <ulink url="&blfs-wiki;/autofs"/></para>
96
[d3ad3271]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
[6a0e6e4]109<screen><literal>File systems &rArr;
[e19ad480]110 Kernel automounter version 4 support Y or M
[6a0e6e4]111 Network File Systems &rArr;
112 NFS file system support Y or M (optional)
113 SMB file system support Y or M (optional)</literal></screen>
[d612b9f]114
[d3ad3271]115 <para>Recompile and install the new kernel, if necessary.</para>
[7ef22cff]116
[d3ad3271]117 </sect2>
[0290a023]118
[d3ad3271]119 <sect2 role="installation">
[d612b9f]120
[d3ad3271]121 <title>Installation of Autofs</title>
122
[e0d33ef]123 <para>Install <application>autofs</application> by running the following
[d3ad3271]124 commands:</para>
125
[460c6edb]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;
[6b104248]129./configure --prefix=/ --mandir=/usr/share/man &amp;&amp;
[d3ad3271]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
[6b104248]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>
[d260aaf4]144
[d3ad3271]145 </sect2>
[d260aaf4]146
[d3ad3271]147 <sect2 role="configuration">
148 <title>Configuring Autofs</title>
[7ef22cff]149
[d3ad3271]150 <sect3 id="autofs-config">
151 <title>Config Files</title>
[7ef22cff]152
[d3ad3271]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>
[7ef22cff]157
[d3ad3271]158 <indexterm zone="autofs autofs-config" >
159 <primary sortas="e-etc-sysconfig-autofs.conf">/etc/sysconfig/autofs.conf</primary>
160 </indexterm>
[7ef22cff]161
[d3ad3271]162 <indexterm zone="autofs autofs-config">
163 <primary sortas="e-etc-auto.master">/etc/auto.master</primary>
164 </indexterm>
[7ef22cff]165
[d3ad3271]166 <indexterm zone="autofs autofs-config">
167 <primary sortas="e-etc-auto.misc">/etc/auto.misc</primary>
168 </indexterm>
[7ef22cff]169
[d3ad3271]170 <indexterm zone="autofs autofs-config">
171 <primary sortas="e-etc-auto.net">/etc/auto.net</primary>
172 </indexterm>
[7ef22cff]173
[d3ad3271]174 </sect3>
[7ef22cff]175
[d3ad3271]176 <sect3>
177 <title>Configuration Information</title>
[7ef22cff]178
[d3ad3271]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
[7ef22cff]187
[e19ad480]188/media /etc/auto.misc
[7ef22cff]189
[d3ad3271]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>
[d612b9f]197 </note>
[d3ad3271]198
[e0d33ef]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
[d3ad3271]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
[e0d33ef]206 match your device setup and examples for floppies are available in the file
[d3ad3271]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
[e0d33ef]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
[5254d12]218 with the <xref linkend="bootscripts"/> package.</para>
[d3ad3271]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
[e0d33ef]229 much shorter time may be necessary to protect buffer writing to a floppy
[d3ad3271]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>
[460c6edb]247 <seg>/lib/autofs and /var/run/autofs</seg>
[d3ad3271]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>
[e0d33ef]259 <para>is the daemon that performs the mounting when a request is
[d3ad3271]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>
[7ef22cff]270
271</sect1>
272
Note: See TracBrowser for help on using the repository browser.