source: postlfs/config/autofs.xml@ 7f76b96

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.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 7f76b96 was 7f76b96, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Reverted the DTD change. That don't be done untiltomorrow.

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