source: postlfs/config/autofs.xml@ 20828163

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

Minor wording changes in chapters 1 and 2

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

  • Property mode set to 100644
File size: 7.2 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>Required Patch: <ulink
52url="&patch-root;/template-&template-version;-patch_name-patch_version.patch"/></para>
53</listitem></itemizedlist>
54</sect3>
55
56<sect3><title><application>template</application> dependencies</title>
57<sect4><title>Required</title>
58<para><xref linkend="BLFS DEPENDENCY"/></para>
59</sect4>
60
61<sect4><title>Optional</title>
62<para><ulink url="http://www.some.url/">EXTERNAL DEPENDENCY</ulink></para>
63</sect4>
64</sect3> -->
65
66</sect2>
67
68<sect2 id="autofs-kernel">
69<title>Installation of <application>autofs</application></title>
70<indexterm zone="autofs autofs-kernel">
71<primary sortas="d-Automounter">Automounter</primary></indexterm>
72
73<para>Verify that kernel support has been compiled in or built as
74modules in the following areas:
75<screen>File systems
76 Kernel automounter version 4 support Y or M
77Network File Systems
78 NFS file system support Y or M
79 SMB file system support Y or M</screen>
80Recompile and install the new kernel, if necessary.</para>
81
82<para>Install <application>autofs</application> by running the following
83commands:</para>
84
85<screen><userinput><command>./configure --prefix=/ --mandir=/usr/share/man &amp;&amp;
86make</command></userinput></screen>
87
88<para>Now, as the root user:</para>
89
90<screen><userinput role='root'><command>make install &amp;&amp;
91rm /etc/rc.d/init.d/autofs</command></userinput></screen>
92
93</sect2>
94
95<sect2>
96<title>Command explanations</title>
97
98<para><command>rm /etc/rc.d/init.d/autofs</command>: This command
99removes the installed script which only works on specific distributions.</para>
100
101</sect2>
102
103<sect2>
104<title>Configuring <application>autofs</application></title>
105
106<sect3 id="autofs-config"><title>Config files</title>
107<para><filename>/etc/sysconfig/autofs.conf</filename>,
108<filename>/etc/auto.master</filename>,
109<filename>/etc/auto.misc</filename>, and
110<filename>/etc/auto.net</filename></para>
111<indexterm zone="autofs autofs-config" >
112<primary
113sortas="e-etc-sysconfig-autofs.conf">/etc/sysconfig/autofs.conf</primary>
114</indexterm>
115<indexterm zone="autofs autofs-config">
116<primary sortas="e-etc-auto.master">/etc/auto.master</primary></indexterm>
117<indexterm zone="autofs autofs-config">
118<primary sortas="e-etc-auto.misc">/etc/auto.misc</primary></indexterm>
119<indexterm zone="autofs autofs-config">
120<primary sortas="e-etc-auto.net">/etc/auto.net</primary></indexterm>
121</sect3>
122
123<sect3><title>Configuration Information</title>
124
125<para>The installation process creates <filename>auto.master</filename>,
126<filename>auto.misc</filename> and <filename>auto.net</filename>. You
127will replace the <filename>auto.master</filename> with the following
128commands.
129
130<screen><userinput role='root'><command>mv /etc/auto.master /etc/auto.master.bak &amp;&amp;
131cat &gt; /etc/auto.master &lt;&lt; "EOF"</command>
132# Begin /etc/auto.master
133
134/media /etc/auto.misc
135
136# End /etc/auto.master
137<command>EOF</command></userinput></screen></para>
138
139<note><para>This file mounts a new media directory over the one created by
140<acronym>LFS</acronym> and will therefore hide any mounts made by the
141<filename>fstab</filename> file into that directory.</para></note>
142
143<para>While this package could be used to mount <acronym>NFS</acronym>
144shares and <acronym>SMB</acronym> shares, that feature is not configured
145in these instructions. <acronym>NFS</acronym> shares are covered on the
146next page.
147</para>
148
149<para>The <filename>auto.misc</filename> must be configured to your
150working hardware. The loaded configuration file should load your cdrom
151if <filename>/dev/cdrom</filename> is active or it can be edited to
152match your device setup and examples for floppies are available in the file
153and easily activated. Documentation for this file is available using the
154<command>man 5 autofs</command> command.</para>
155
156<para id="autofs-init">Install the
157<filename>/etc/rc.d/init.d/autofs</filename> mount script and
158<filename>/etc/sysconfig/autofs.conf</filename> support file
159included with the <xref linkend="intro-important-bootscripts"/>
160package.</para>
161<indexterm zone="autofs autofs-init">
162<primary sortas="f-autofs-init">autofs</primary></indexterm>
163
164<screen><userinput role='root'><command>make install-autofs</command></userinput></screen>
165
166<para>The time-out variable is set in
167<filename>/etc/sysconfig/autofs.conf</filename>. The installed file sets
168a default of 60 seconds of inactivity before unmounting the device. A
169much shorter time may be necessary to protect buffer writing to a
170floppy if users tend to remove the media prior to the timeout
171setting.</para>
172</sect3>
173
174</sect2>
175
176<sect2>
177<title>Contents</title>
178
179<segmentedlist>
180<segtitle>Installed Program</segtitle>
181<segtitle>Installed Libraries</segtitle>
182<seglistitem>
183<seg>automount</seg>
184<seg>autofs modules</seg>
185</seglistitem>
186</segmentedlist>
187
188<variablelist>
189<bridgehead renderas="sect3">Short Descriptions</bridgehead>
190<?dbfo list-presentation="list"?>
191
192<varlistentry id="automount">
193<term><command>automount</command></term>
194<listitem><para>is the daemon that performs the mounting when a request is
195made for the device.</para>
196<indexterm zone="autofs automount">
197<primary sortas="b-automount">automount</primary></indexterm>
198</listitem>
199</varlistentry>
200</variablelist>
201
202</sect2>
203
204</sect1>
205
Note: See TracBrowser for help on using the repository browser.