source: postlfs/config/autofs.xml@ 3597eb6

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 3597eb6 was 3597eb6, checked in by Randy McMurchy <randy@…>, 18 years ago

Added the 'User Notes' wiki link to each package page; changed all instances of .[so,a] to .{so,a} (brackets changed to braces); changed all replaceable tags to use angle brackets instead of square brackets to encapsulate the text - commit #7

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