49 lines
2.0 KiB
HTML
49 lines
2.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
|
|
<TITLE>Automount mini-Howto: Configuration</TITLE>
|
|
<LINK HREF="Automount-5.html" REL=next>
|
|
<LINK HREF="Automount-3.html" REL=previous>
|
|
<LINK HREF="Automount.html#toc4" REL=contents>
|
|
</HEAD>
|
|
<BODY>
|
|
<A HREF="Automount-5.html">Next</A>
|
|
<A HREF="Automount-3.html">Previous</A>
|
|
<A HREF="Automount.html#toc4">Contents</A>
|
|
<HR>
|
|
<H2><A NAME="s4">4. Configuration</A></H2>
|
|
|
|
<P>Installing the RPM packages will get you to this point easily enough, but here's the part you might not be sure about if you haven't done this before.
|
|
<P>
|
|
<P>There are two files in /etc, one called <CODE>auto.master</CODE> and one called <CODE>auto.misc</CODE>.
|
|
A sample auto.master looks like this:
|
|
<PRE>
|
|
/auto /etc/auto.misc --timeout=60
|
|
</PRE>
|
|
<P>The first entry is not the mount point. It's where the set of mount points
|
|
(found in the second entry) are going to be. The third option says that the
|
|
mounted filesystems can try to unmount themselves 60 seconds after use. You will have to
|
|
stop using the disk before unmounting it.
|
|
<P>Auto.misc is a "map file". The map file can have any name; this one is named auto.misc because it originally controlled /misc. Multiple map files can be defined in auto.master.
|
|
My auto.misc looks like this:
|
|
<PRE>
|
|
kernel -ro,soft,intr ftp.kernel.org:/pub/linux
|
|
cd -fstype=iso9660,ro :/dev/cdrom
|
|
zip -fstype=auto :/dev/hdd4
|
|
floppy -fstype=vfat :/dev/fd0
|
|
</PRE>
|
|
<P>The first column (the "key") is the mount point. In this case it would be
|
|
/auto/floppy or whatever. The middle set are the options; read the mount
|
|
manpage for details on this. And the last column specifies where the fs
|
|
comes from. The "kernel" entry is supposed to be an NFS mount. The : on all
|
|
the other lines means its a local device.
|
|
<P>
|
|
<P>
|
|
<HR>
|
|
<A HREF="Automount-5.html">Next</A>
|
|
<A HREF="Automount-3.html">Previous</A>
|
|
<A HREF="Automount.html#toc4">Contents</A>
|
|
</BODY>
|
|
</HTML>
|