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
RevLine 
[7ef22cf]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" [
[7ef22cf]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[460c6edb]7 <!ENTITY autofs-patch-dir "http://ftp.kernel.org/pub/linux/daemons/autofs/v4/">
[7ef22cf]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">
[460c6edb]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">
[7ef22cf]14]>
15
16<sect1 id="autofs" xreflabel="autofs-&autofs-version;">
[d3ad3271]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
[e0d33ef]35 systems. This is useful for allowing users to mount floppies, cdroms and
[d3ad3271]36 other removable storage devices without requiring the system
[e0d33ef]37 administrator to mount the devices. This may not be ideal for all
[d3ad3271]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
[460c6edb]66 url="&autofs-patch-dir;autofs-&autofs-version;-misc-fixes.patch"/></para>
[d3ad3271]67 </listitem>
68 <listitem>
69 <para>Recommended Patch: <ulink
[460c6edb]70 url="&autofs-patch-dir;autofs-&autofs-version;-multi-parse-fix.patch"/></para>
[d3ad3271]71 </listitem>
72 <listitem>
73 <para>Recommended Patch: <ulink
[460c6edb]74 url="&autofs-patch-dir;autofs-&autofs-version;-non-replicated-ping.patch"/></para>
[d3ad3271]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
[7ef22cf]92Network File Systems
[d3ad3271]93 NFS file system support Y or M
94 SMB file system support Y or M</literal></screen>
[d612b9f]95
[d3ad3271]96 <para>Recompile and install the new kernel, if necessary.</para>
[7ef22cf]97
[d3ad3271]98 </sect2>
[0290a023]99
[d3ad3271]100 <sect2 role="installation">
[d612b9f]101
[d3ad3271]102 <title>Installation of Autofs</title>
103
[e0d33ef]104 <para>Install <application>autofs</application> by running the following
[d3ad3271]105 commands:</para>
106
[460c6edb]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;
[6b104248]110./configure --prefix=/ --mandir=/usr/share/man &amp;&amp;
[d3ad3271]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
[6b104248]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>
[d260aaf4]125
[d3ad3271]126 </sect2>
[d260aaf4]127
[d3ad3271]128 <sect2 role="configuration">
129 <title>Configuring Autofs</title>
[7ef22cf]130
[d3ad3271]131 <sect3 id="autofs-config">
132 <title>Config Files</title>
[7ef22cf]133
[d3ad3271]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>
[7ef22cf]138
[d3ad3271]139 <indexterm zone="autofs autofs-config" >
140 <primary sortas="e-etc-sysconfig-autofs.conf">/etc/sysconfig/autofs.conf</primary>
141 </indexterm>
[7ef22cf]142
[d3ad3271]143 <indexterm zone="autofs autofs-config">
144 <primary sortas="e-etc-auto.master">/etc/auto.master</primary>
145 </indexterm>
[7ef22cf]146
[d3ad3271]147 <indexterm zone="autofs autofs-config">
148 <primary sortas="e-etc-auto.misc">/etc/auto.misc</primary>
149 </indexterm>
[7ef22cf]150
[d3ad3271]151 <indexterm zone="autofs autofs-config">
152 <primary sortas="e-etc-auto.net">/etc/auto.net</primary>
153 </indexterm>
[7ef22cf]154
[d3ad3271]155 </sect3>
[7ef22cf]156
[d3ad3271]157 <sect3>
158 <title>Configuration Information</title>
[7ef22cf]159
[d3ad3271]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
[7ef22cf]168
169/media /etc/auto.misc
170
[d3ad3271]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>
[d612b9f]178 </note>
[d3ad3271]179
[e0d33ef]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
[d3ad3271]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
[e0d33ef]187 match your device setup and examples for floppies are available in the file
[d3ad3271]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
[e0d33ef]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
[d3ad3271]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
[e0d33ef]210 much shorter time may be necessary to protect buffer writing to a floppy
[d3ad3271]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>
[460c6edb]228 <seg>/lib/autofs and /var/run/autofs</seg>
[d3ad3271]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>
[e0d33ef]240 <para>is the daemon that performs the mounting when a request is
[d3ad3271]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>
[7ef22cf]251
252</sect1>
253
Note: See TracBrowser for help on using the repository browser.