source: postlfs/config/autofs.xml@ 4d3f1239

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 4d3f1239 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
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>
[e19ad480]22 <keywordset>
23 <keyword role="package">autofs-&autofs-version;.tar</keyword>
[9084c2eb]24 <keyword role="ftpdir">autofs</keyword>
[e19ad480]25 </keywordset>
[d3ad3271]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
[e0d33ef]39 systems. This is useful for allowing users to mount floppies, cdroms and
[d3ad3271]40 other removable storage devices without requiring the system
[e0d33ef]41 administrator to mount the devices. This may not be ideal for all
[d3ad3271]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
[460c6edb]70 url="&autofs-patch-dir;autofs-&autofs-version;-misc-fixes.patch"/></para>
[d3ad3271]71 </listitem>
72 <listitem>
73 <para>Recommended Patch: <ulink
[460c6edb]74 url="&autofs-patch-dir;autofs-&autofs-version;-multi-parse-fix.patch"/></para>
[d3ad3271]75 </listitem>
76 <listitem>
77 <para>Recommended Patch: <ulink
[460c6edb]78 url="&autofs-patch-dir;autofs-&autofs-version;-non-replicated-ping.patch"/></para>
[d3ad3271]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
[e19ad480]95 Kernel automounter version 4 support Y or M
[7ef22cf]96Network File Systems
[e19ad480]97 NFS file system support Y or M
98 SMB file system support Y or M</literal></screen>
[d612b9f]99
[d3ad3271]100 <para>Recompile and install the new kernel, if necessary.</para>
[7ef22cf]101
[d3ad3271]102 </sect2>
[0290a023]103
[d3ad3271]104 <sect2 role="installation">
[d612b9f]105
[d3ad3271]106 <title>Installation of Autofs</title>
107
[e0d33ef]108 <para>Install <application>autofs</application> by running the following
[d3ad3271]109 commands:</para>
110
[460c6edb]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;
[6b104248]114./configure --prefix=/ --mandir=/usr/share/man &amp;&amp;
[d3ad3271]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
[6b104248]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>
[d260aaf4]129
[d3ad3271]130 </sect2>
[d260aaf4]131
[d3ad3271]132 <sect2 role="configuration">
133 <title>Configuring Autofs</title>
[7ef22cf]134
[d3ad3271]135 <sect3 id="autofs-config">
136 <title>Config Files</title>
[7ef22cf]137
[d3ad3271]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>
[7ef22cf]142
[d3ad3271]143 <indexterm zone="autofs autofs-config" >
144 <primary sortas="e-etc-sysconfig-autofs.conf">/etc/sysconfig/autofs.conf</primary>
145 </indexterm>
[7ef22cf]146
[d3ad3271]147 <indexterm zone="autofs autofs-config">
148 <primary sortas="e-etc-auto.master">/etc/auto.master</primary>
149 </indexterm>
[7ef22cf]150
[d3ad3271]151 <indexterm zone="autofs autofs-config">
152 <primary sortas="e-etc-auto.misc">/etc/auto.misc</primary>
153 </indexterm>
[7ef22cf]154
[d3ad3271]155 <indexterm zone="autofs autofs-config">
156 <primary sortas="e-etc-auto.net">/etc/auto.net</primary>
157 </indexterm>
[7ef22cf]158
[d3ad3271]159 </sect3>
[7ef22cf]160
[d3ad3271]161 <sect3>
162 <title>Configuration Information</title>
[7ef22cf]163
[d3ad3271]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
[7ef22cf]172
[e19ad480]173/media /etc/auto.misc
[7ef22cf]174
[d3ad3271]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>
[d612b9f]182 </note>
[d3ad3271]183
[e0d33ef]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
[d3ad3271]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
[e0d33ef]191 match your device setup and examples for floppies are available in the file
[d3ad3271]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
[e0d33ef]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
[d3ad3271]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
[e0d33ef]214 much shorter time may be necessary to protect buffer writing to a floppy
[d3ad3271]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>
[460c6edb]232 <seg>/lib/autofs and /var/run/autofs</seg>
[d3ad3271]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>
[e0d33ef]244 <para>is the daemon that performs the mounting when a request is
[d3ad3271]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>
[7ef22cf]255
256</sect1>
257
Note: See TracBrowser for help on using the repository browser.