source: postlfs/config/autofs.xml@ d4bf650a

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 d4bf650a was d4bf650a, checked in by Bruce Dubbs <bdubbs@…>, 16 years ago

Udated to autofs-5.0.3. Expanded explanation of the use of autofs and created a procedure to automatically downlaod and apply all paatches.

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

  • Property mode set to 100644
File size: 9.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6 <!ENTITY autofs-patch-dir "http://ftp.kernel.org/pub/linux/daemons/autofs/v5">
7 <!ENTITY autofs-download-http "http://ftp.kernel.org/pub/linux/daemons/autofs/v5/autofs-&autofs-version;.tar.bz2">
8 <!ENTITY autofs-download-ftp "ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/autofs-&autofs-version;.tar.bz2">
9 <!ENTITY autofs-md5sum "27839fe6fa8105b2b7d31bc922fd7cf6">
10 <!ENTITY autofs-size "221 KB">
11 <!ENTITY autofs-buildsize "8.9 MB">
12 <!ENTITY autofs-time "less than 0.1 SBU">
13]>
14
15<sect1 id="autofs" xreflabel="autofs-&autofs-version;">
16 <?dbhtml filename="autofs.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>Automate Mounting of File Systems</title>
24
25 <indexterm zone="autofs">
26 <primary sortas="a-Autofs">Autofs</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Autofs</title>
31
32 <para>The <application>autofs</application> package contains userspace
33 tools that work with the kernel to mount and un-mount removable file
34 systems. The primary use is to mount external network file systems like
35 nfs (see <xref linkend="nfs-utils"/>) or Samba (see <xref linkend="samba3"/>)
36 on demand.</para>
37
38 <para>It may also be useful for allowing users to mount floppies, cdroms and
39 other removable storage devices without requiring the system
40 administrator to mount the devices although this capability is now generally
41 provided by HAL (see <xref linkend="hal"/>). 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 <para>Recommended Patches: There are frequent patches issued
68 for <application>autofs</application>. To get the current patches,
69 start in the same directory as the main tar file and run:</para>
70
71<screen><userinput>wget &autofs-patch-dir;/patch_order-&autofs-version; &amp;&amp;
72sed 's;autofs;&autofs-patch-dir;/autofs;' patch_order-&autofs-version; &gt; wget-list &amp;&amp;
73wget -i wget-list</userinput></screen>
74
75 <para condition="html" role="usernotes">User Notes:
76 <ulink url="&blfs-wiki;/autofs"/></para>
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 &rArr;
91 Kernel automounter version 4 support Y or M
92 Network File Systems &rArr;
93 NFS file system support Y or M (optional)
94 SMB file system support Y or M (optional)</literal></screen>
95
96 <para>Recompile and install the new kernel, if necessary.</para>
97
98 </sect2>
99
100 <sect2 role="installation">
101
102 <title>Installation of Autofs</title>
103
104 <para>Install <application>autofs</application> by running the following
105 commands:</para>
106
107<screen><userinput>for f in `cat ../patch_order-&autofs-version;`; do
108 patch -Np1 -i ../$f
109done &amp;&amp;
110./configure --prefix=/ --mandir=/usr/share/man &amp;&amp;
111make</userinput></screen>
112
113 <para>This package does not come with a test suite.</para>
114
115 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
116
117<screen role="root"><userinput>make install &amp;&amp;
118ln -sf ../init.d/autofs $(EXTDIR)/rc.d/rcsysinit.d/S52autofs</userinput></screen>
119
120 </sect2>
121
122 <sect2 role="commands">
123 <title>Command Explanations</title>
124
125 <para><command>for f in `cat ../patch_order-&autofs-version;`; do
126 patch -Np1 -i ../$f; done</command>: This command applies all the
127 patches fetched earlier in the correct order.</para>
128
129 <para><command>ln -sf ../init.d/autofs
130 $(EXTDIR)/rc.d/rcsysinit.d/S52autofs</command>: This command sets the
131 link to properly start autofs upon boot.</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>, <filename>auto.smb</filename>, and
169 <filename>auto.net</filename>. You will replace the
170 <filename>auto.master</filename> with the following 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/cdrom /etc/auto.misc
177
178# End /etc/auto.master</literal>
179EOF</userinput></screen>
180
181 <note>
182
183 <para>This file mounts a new media directory but is not visible until
184 it is automounted by autofs. An alternative method would be to
185 automount into another location such as
186 <filename>/var/lib/autofs/cdrom</filename> and create a sysbolic
187 link from <filename>/media/cdrom</filename> to the other
188 location.</para>
189
190 </note>
191
192 <para>While this package could be used to mount NFS shares and SMB
193 shares, that feature is not configured in these instructions. NFS shares
194 are covered on the next page.</para>
195
196 <para>The <filename>auto.misc</filename> must be configured to your
197 working hardware. The loaded configuration file should load your cdrom
198 if <filename>/dev/cdrom</filename> is active or it can be edited to
199 match your device setup and examples for floppies are available in the file
200 and easily activated. Documentation for this file is available using the
201 <command>man 5 autofs</command> command.</para>
202
203 </sect3>
204<!--
205 <sect3 id="autofs-init">
206 <title>Boot Script</title>
207
208
209 <para>Install the <filename>/etc/rc.d/init.d/autofs</filename> mount script
210 and <filename>/etc/sysconfig/autofs.conf</filename> support file included
211 with the <xref linkend="bootscripts"/> package.</para>
212
213 <indexterm zone="autofs autofs-init">
214 <primary sortas="f-autofs-init">autofs</primary>
215 </indexterm>
216
217<screen role="root"><userinput>make install-autofs</userinput></screen>
218
219 <para>The time-out variable is set in
220 <filename>/etc/sysconfig/autofs.conf</filename>. The installed file sets
221 a default of 60 seconds of inactivity before unmounting the device. A
222 much shorter time may be necessary to protect buffer writing to a floppy
223 if users tend to remove the media prior to the timeout setting.</para>
224
225 </sect3>
226-->
227 </sect2>
228
229 <sect2 role="content">
230 <title>Contents</title>
231
232 <segmentedlist>
233 <segtitle>Installed Program</segtitle>
234 <segtitle>Installed Libraries</segtitle>
235 <segtitle>Installed Directories</segtitle>
236
237 <seglistitem>
238 <seg>automount</seg>
239 <seg>lookup_file.so, lookup_hosts.so, lookup_multi.so,
240 lookup_nisplus.so, lookup_program.so, lookup_userhome.so,
241 lookup_yp.so, mount_afs.so, mount_autofs.so, mount_bind.so,
242 mount_changer.so, mount_ext2.so, mount_generic.so,
243 mount_nfs.so, parse_sun.so</seg>
244 <seg>/lib/autofs and /var/run/autofs</seg>
245 </seglistitem>
246 </segmentedlist>
247
248 <variablelist>
249 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
250 <?dbfo list-presentation="list"?>
251 <?dbhtml list-presentation="table"?>
252
253 <varlistentry id="automount">
254 <term><command>automount</command></term>
255 <listitem>
256 <para>is the daemon that performs the mounting when a request is
257 made for the device.</para>
258 <indexterm zone="autofs automount">
259 <primary sortas="b-automount">automount</primary>
260 </indexterm>
261 </listitem>
262 </varlistentry>
263
264 </variablelist>
265
266 </sect2>
267
268</sect1>
269
Note: See TracBrowser for help on using the repository browser.