Changeset 9415459


Ignore:
Timestamp:
03/27/2008 05:35:35 AM (16 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
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
Children:
6e79e02
Parents:
1208b2f
Message:

Expanded the discussion on autofs configuration

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

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • general.ent

    r1208b2f r9415459  
    44-->
    55
    6 <!ENTITY day          "26">                   <!-- Always 2 digits -->
     6<!ENTITY day          "27">                   <!-- Always 2 digits -->
    77<!ENTITY month        "03">                   <!-- Always 2 digits -->
    88<!ENTITY year         "2008">
  • introduction/welcome/changelog.xml

    r1208b2f r9415459  
    4545      <para>March 26th, 2008</para>
    4646      <itemizedlist>
     47        <listitem>
     48          <para>[bdubbs] - Expanded the discussion on autofs configuration.</para>
     49        </listitem>
    4750        <listitem>
    4851          <para>[cwurst] - Added build instructions for UnRar.
  • postlfs/config/autofs.xml

    r1208b2f r9415459  
    174174<literal># Begin /etc/auto.master
    175175
    176 /media/cdrom  /etc/auto.misc
     176/media/auto  /etc/auto.misc  --ghost
     177#/home        /etc/auto.home
    177178
    178179# End /etc/auto.master</literal>
    179180EOF</userinput></screen>
    180181
     182      <para>This file creates a new media directory, <filename>/media/auto</filename>
     183      that will overlay any existing directory of the same name.  In this example,
     184      the file, <filename>/etc/auto.misc</filename>, has a line:</para>
     185
     186<screen>cd   -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom</screen>
     187
     188      <para>that will mount a cdrom as <filename>/media/auto/cd</filename> if
     189      that directory is accessed.  The <option>--ghost</option> option tells
     190      the automounter to create "ghost" versions (i.e. empty directories) of
     191      all the mount points listed in the configuration file regardless of
     192      whether any of the file systems is actually mounted or not. This is very
     193      convenient and highly recommended, because it will show you the available
     194      auto-mountable file systems as existing directories, even when their file
     195      systems aren't currently mounted. Without the <option>--ghost</option>
     196      option, you'll have to remember the names of the directories. As soon as
     197      you try to access one of them, the directory will be created and the file
     198      system will be mounted. When the file system gets unmounted again, the
     199      directory is destroyed too, unless the <option>--ghost</option> option
     200      was given.</para>
     201
    181202      <note>
    182203
    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
     204        <para>An alternative method would be to specify another automount
     205        location such as <filename>/var/lib/auto/cdrom</filename> and create a
     206        symbolic link from <filename>/media/cdrom</filename> to the automount
    188207        location.</para>
    189208     
    190209      </note>
    191210
    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
     211      <para>The <filename>auto.misc</filename> file must be configured to your
    197212      working hardware. The loaded configuration file should load your cdrom
    198213      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
     214      match your device setup.  Examples for floppies are available in the file
    200215      and easily activated. Documentation for this file is available using the
    201216      <command>man 5 autofs</command> command.</para>
     217
     218      <para>In the second line, if enabled, a user's home directory would be
     219      mounted via NFS upon login.  The <filename>/etc/home.auto</filename>
     220      would need to exist and have an entry similar to:</para>
     221
     222<screen>joe  example.org:/export/home/joe</screen>
     223
     224      <para>where the directory <filename>/export/home/joe</filename> is
     225      exported via NFS from the system example.org.  NFS shares
     226      are covered on the next page.</para>
     227
     228      <para>This package could also be used to mount SMB shares, that feature
     229      is not configured in these instructions.  For additional configuration
     230      information, see the man pages for auto.master(5).  There
     231      are also web resources such as this <ulink
     232      url='http://gentoo-wiki.com/HOWTO_Auto_mount_filesystems_(AUTOFS)#Config_files'>AUTOFS
     233      HOWTO</ulink>
     234      availble.</para>
    202235
    203236    </sect3>
Note: See TracChangeset for help on using the changeset viewer.