Author: bdubbs
Date: 2008-03-26 23:35:35 -0600 (Wed, 26 Mar 2008)
New Revision: 7323
Modified:
trunk/BOOK/general.ent
trunk/BOOK/introduction/welcome/changelog.xml
trunk/BOOK/postlfs/config/autofs.xml
Log:
Expanded the discussion on autofs configuration
Modified: trunk/BOOK/general.ent
===================================================================
--- trunk/BOOK/general.ent 2008-03-26 23:12:03 UTC (rev 7322)
+++ trunk/BOOK/general.ent 2008-03-27 05:35:35 UTC (rev 7323)
@@ -3,7 +3,7 @@
$Date$
-->
-<!ENTITY day "26"> <!-- Always 2 digits -->
+<!ENTITY day "27"> <!-- Always 2 digits -->
<!ENTITY month "03"> <!-- Always 2 digits -->
<!ENTITY year "2008">
<!ENTITY version "svn-&year;&month;&day;">
Modified: trunk/BOOK/introduction/welcome/changelog.xml
===================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml 2008-03-26 23:12:03 UTC
(rev 7322)
+++ trunk/BOOK/introduction/welcome/changelog.xml 2008-03-27 05:35:35 UTC
(rev 7323)
@@ -45,6 +45,9 @@
<para>March 26th, 2008</para>
<itemizedlist>
<listitem>
+ <para>[bdubbs] - Expanded the discussion on autofs
configuration.</para>
+ </listitem>
+ <listitem>
<para>[cwurst] - Added build instructions for UnRar.
Fixes #2345.</para>
</listitem>
Modified: trunk/BOOK/postlfs/config/autofs.xml
===================================================================
--- trunk/BOOK/postlfs/config/autofs.xml 2008-03-26 23:12:03 UTC (rev
7322)
+++ trunk/BOOK/postlfs/config/autofs.xml 2008-03-27 05:35:35 UTC (rev
7323)
@@ -173,33 +173,66 @@
cat > /etc/auto.master << "EOF"
<literal># Begin /etc/auto.master
-/media/cdrom /etc/auto.misc
+/media/auto /etc/auto.misc --ghost
+#/home /etc/auto.home
# End /etc/auto.master</literal>
EOF</userinput></screen>
+ <para>This file creates a new media directory,
<filename>/media/auto</filename>
+ that will overlay any existing directory of the same name. In this
example,
+ the file, <filename>/etc/auto.misc</filename>, has a line:</para>
+
+<screen>cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom</screen>
+
+ <para>that will mount a cdrom as <filename>/media/auto/cd</filename> if
+ that directory is accessed. The <option>--ghost</option> option tells
+ the automounter to create "ghost" versions (i.e. empty directories) of
+ all the mount points listed in the configuration file regardless of
+ whether any of the file systems is actually mounted or not. This is very
+ convenient and highly recommended, because it will show you the available
+ auto-mountable file systems as existing directories, even when their file
+ systems aren't currently mounted. Without the <option>--ghost</option>
+ option, you'll have to remember the names of the directories. As soon as
+ you try to access one of them, the directory will be created and the file
+ system will be mounted. When the file system gets unmounted again, the
+ directory is destroyed too, unless the <option>--ghost</option> option
+ was given.</para>
+
<note>
- <para>This file mounts a new media directory but is not visible until
- it is automounted by autofs. An alternative method would be to
- automount into another location such as
- <filename>/var/lib/autofs/cdrom</filename> and create a sysbolic
- link from <filename>/media/cdrom</filename> to the other
+ <para>An alternative method would be to specify another automount
+ location such as <filename>/var/lib/auto/cdrom</filename> and create a
+ symbolic link from <filename>/media/cdrom</filename> to the automount
location.</para>
</note>
- <para>While this package could be used to mount NFS shares and SMB
- shares, that feature is not configured in these instructions. NFS shares
- are covered on the next page.</para>
-
- <para>The <filename>auto.misc</filename> must be configured to your
+ <para>The <filename>auto.misc</filename> file must be configured to your
working hardware. The loaded configuration file should load your cdrom
if <filename>/dev/cdrom</filename> is active or it can be edited to
- match your device setup and examples for floppies are available in the
file
+ match your device setup. Examples for floppies are available in the file
and easily activated. Documentation for this file is available using the
<command>man 5 autofs</command> command.</para>
+ <para>In the second line, if enabled, a user's home directory would be
+ mounted via NFS upon login. The <filename>/etc/home.auto</filename>
+ would need to exist and have an entry similar to:</para>
+
+<screen>joe example.org:/export/home/joe</screen>
+
+ <para>where the directory <filename>/export/home/joe</filename> is
+ exported via NFS from the system example.org. NFS shares
+ are covered on the next page.</para>
+
+ <para>This package could also be used to mount SMB shares, that feature
+ is not configured in these instructions. For additional configuration
+ information, see the man pages for auto.master(5). There
+ are also web resources such as this <ulink
+
url='http://gentoo-wiki.com/HOWTO_Auto_mount_filesystems_(AUTOFS)#Config_files'>AUTOFS
+ HOWTO</ulink>
+ availble.</para>
+
</sect3>
<!--
<sect3 id="autofs-init">
--
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page