1152-1154.html

来自「linux-unix130.linux.and.unix.ebooks130 l」· HTML 代码 · 共 389 行

HTML
389
字号
<HTML>

<HEAD>

<TITLE>Linux Complete Command Reference:File Formats:EarthWeb Inc.-</TITLE>

</HEAD>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!-- ISBN=0672311046 //-->

<!-- TITLE=Linux Complete Command Reference//-->

<!-- AUTHOR=Red Hat//-->

<!-- PUBLISHER=Macmillan Computer Publishing//-->

<!-- IMPRINT=Sams//-->

<!-- CHAPTER=05 //-->

<!-- PAGES=1103-1208 //-->

<!-- UNASSIGNED1 //-->

<!-- UNASSIGNED2 //-->



<P><CENTER>

<a href="1150-1151.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="1155-1155.html">Next</A></CENTER></P>







<A NAME="PAGENUM-1152"><P>Page 1152</P></A>





<P>Here is a sample file:

</P>



<!-- CODE SNIP //-->

<PRE>

foo.important:announce-request@foo.com

foo.*:%s@mailer.foo.com

gnu.*:%s@prep.ai.mit.edu

:%s@uunet.uu.net

</PRE>

<!-- END CODE SNIP //-->



<P>Using this file, postings to the moderated newsgroup in the left column will be sent to the address shown in the

right column:

</P>



<!-- CODE //-->

<PRE>

foo.important announce-request@foo.com

foo.x.announce foo-x-announce@mailer.foo.com

gnu.emacs.sources gnu-emacs-sources@prep.ai.mit.edu

comp.sources.unix comp-sources-unix@uunet.uu.net

</PRE>

<!-- END CODE //-->



<P><B>

HISTORY

</B></P>



<P>Written by Rich $alz (rsalz@uunet.uu.net) for InterNetNews.

</P>



<P><B>

SEE ALSO

</B></P>



<P>inews(1), inn.conf(5), libinn(3), wildmat(3)

</P>



<H3><A NAME="ch05_ 32">

/etc/modules

</A></H3>



<P>/etc/modules&#151;Kernel modules to load at boot time.

</P>



<P><B>

DESCRIPTION

</B></P>



<P>The /etc/modules file contains the names of kernel modules that are to be loaded at boot time, one per line.

Comments begin with a #, and everything on the line after them are ignored.

</P>



<P>Debian GNU/Linux version 0.93

</P>



<H3><A NAME="ch05_ 33">

motd

</A></H3>



<P>motd&#151;Message of the day.

</P>



<P><B>

DESCRIPTION

</B></P>



<P>The contents of /etc/motd are displayed by

login(1) after a successful login but just before it executes the login shell.

</P>



<P>The motd stands for &quot;message of the day,&quot; and this file has been traditionally been used for exactly that. (It requires much

less disk space than mail to all users.)

</P>



<P><B>

FILES

</B></P>



<P>/etc/motd

</P>



<P><B>

SEE ALSO

</B></P>

<P>login(1) issue(5)

</P>



<P>Linux, 29 December 1992

</P>



<H3><A NAME="ch05_ 34">

mtools

</A></H3>



<P>mtools&#151;Table of DOS devices.

</P>



<A NAME="PAGENUM-1153"><P>Page 1153</P></A>









<P><B>

DESCRIPTION

</B></P>



<P>/etc/mtools.conf and ~/.mtoolsrc are the configuration files for

mtools. These configuration files describe the

following items:

</P>



<P>Global configuration flags and variables

</P>



<P>Per-drive flags and variables

</P>



<P>

Character translation tables

</P>



<P>/etc/mtools.conf is the system-wide configuration file, and

~/.mtoolsrc is the user's private configuration file.

</P>



<P><B>

GENERAL SYNTAX

</B></P>



<P>The configuration files is made up of sections. Each section starts with a keyword identifying the section followed by a

colon. Then follow variable assignments and flags. Variable assignments take the following form:

</P>



<!-- CODE SNIP //-->

<PRE>

name=value

</PRE>

<!-- END CODE SNIP //-->



<P>Flags are lone keywords without an equal sign and

value following them. A section either ends at the end of the file or

where the next section begins.

</P>



<P>Lines starting with a hash (#) are comments. Newline characters are equivalent to whitespace (except where ending

a comment). The configuration file is case insensitive, except for items enclosed in quotes (such as filenames).

</P>



<P><B>

DEFAULT VALUES

</B></P>



<P>For most platforms, mtools contains reasonable compiled-in defaults. You usually don't need to bother with the

configuration file, if all you want to do with

mtools is access your floppy drives. On the other hand, the configuration file is needed

if you also want to use mtools to access your hard disk partitions and

dosemu image files.

</P>



<P><B>

GLOBAL VARIABLES

</B></P>



<P>Global variables may be set to 1 or to 0.

</P>



<P>The following global flags are recognized:

</P>



<TABLE>



<TR><TD>

MTOOLS_SKIP_CHECK

</TD><TD>

If this is set to 1,

mtools skips most of its sanity checks. This is needed to read some

Atari disks that have been made with the earlier ROMs and that would not be

recognized otherwise.

</TD></TR><TR><TD>

MTOOLS_FAT_COMPATIBILITY

</TD><TD>

If this is set to

1, mtools skips the FAT size checks. Some disks have a bigger FAT than

they really need. These are rejected if this option is not set.

</TD></TR><TR><TD>

MTOOLS_LOWER_CASE

</TD><TD>

If this is set to 1, mtools displays all-uppercase short filenames as lowercase. This has

been done to allow a behavior that is consistent with older versions of

mtools, which didn't know about the case bits.

</TD></TR></TABLE>



<P>For example, inserting the following line into your configuration file instructs

mtools to skip the sanity checks:

MTOOLS_SKIP_CHECK=1.

</P>



<P>Global variables may also be set via the environment:

export MTOOLS_SKIP_CHECK=1.

</P>



<P><B>

PER-DRIVE FLAGS AND VARIABLES

</B></P>



<P>Per-drive flags and values may be described in a drive section. A drive section starts with

drive driveletter:.

</P>



<P>Then follow variable-value pairs and flags.

</P>



<P><B>

GENERAL PURPOSE DRIVE VARIABLES

</B></P>



<P>The following variables are available:

</P>



<TABLE>



<TR><TD>

file

</TD><TD>

The name of the file or device holding the disk image. This is mandatory. The

filename should be enclosed in quotes.

</TD></TR></TABLE>



<A NAME="PAGENUM-1154"><P>Page 1154</P></A>





<TABLE>



<TR><TD>

use_xdf

</TD><TD>

If this is set to a nonzero value,

mtools also tries to access this disk as an Xdf disk. Xdf is

a high-capacity format used by OS/2. This is off by default.

</TD></TR><TR><TD>

partition

</TD><TD>

Tells mtools to treat the drive as a partitioned device and to use the given partition.

Only primary partitions are accessible using this method, and they are numbered from 1 to 4.

For logical partitions, use the more general

offset variable. The partition variable is

intended for Syquests, ZIP drives, and DOSEMU hdimages. It is not recommended for hard disks

to which direct access to partitions is available.

</TD></TR><TR><TD>

offset

</TD><TD>

Describes where in the file the MS-DOS filesystem starts. This is useful for logical

partitions in DOSEMU hdimages and for ATARI RAM disks. By default, this is zero, meaning

that the filesystem starts right at the beginning of the device or file.

</TD></TR><TR><TD>

fat_bits

</TD><TD>

The number of FAT bits. This can be

12 or 16. This is very rarely needed because it

can almost always be deduced from information in the boot sector. On the contrary,

describing the number of fat bits can actually be harmful if you get it wrong. You should only use it

if mtools gets the autodetected number of fat bits wrong or if you want to

mformat a disk with a weird number of fat bits.

</TD></TR></TABLE>



<P>Only the file option is mandatory. The other parameters may be left out. In that case, a default value or an

autodetected value is used.

</P>



<P><B>

DRIVE GEOMETRY CONFIGURATION

</B></P>



<P>Geometry information describes the physical characteristics about the disk. Its has three purposes:

</P>



<TABLE>



<TR><TD>

mformat

</TD><TD>

The geometry information is written into the boot sector of the newly made disk.

However, you may also describe the geometry information on the command line. See

mformat(1) for details.

</TD></TR><TR><TD>

filtering

</TD><TD>

On some Unices, device nodes only support one physical geometry. The geometry

is compared to the actual geometry stored on the boot sector to make sure that this

device node is able to correctly read the disk. If the geometry doesn't match, this drive entry

fails, and the next drive entry bearing the same drive letter is tried. See the next section

&quot;Supplying Multiple Descriptions for a Drive&quot; for more details on supplying several descriptions

for a drive letter.

</TD></TR><TR><TD>

</TD><TD>

If no geometry information is supplied in the configuration file, all disks are accepted.

On Linux (and on Sparc), there exist device nodes with configurable geometry

(/dev/fd0, /dev/fd1 etc), so filtering is not needed (and ignored) for disk drives.

(mtools still does do filtering on plain files (disk images) in Linux: This is mainly intended for test

purposes because I don't have access to a UNIX that would actually need filtering.)

</TD></TR><TR><TD>

initial geometry

</TD><TD>

The geometry information (if available) is also used to set the initial geometry

on configurable device nodes. This initial geometry is used to read the boot sector,

which contains the real geometry. If no geometry information is supplied in the configuration

file, no initial configuration is done. On Linux, this is not really needed either because

the configurable devices are able to autodetect the disk type accurately enough (for

most common formats) to read the boot sector.

</TD></TR></TABLE>





<P>Wrong geometry information may lead to very bizarre errors. That's why I strongly recommend that you don't use

geometry configuration unless you really need it.

</P>



<P>The following geometry related variables are available:

</P>



<TABLE>



<TR><TD>

cylinders

</TD><TD>

The number of cylinders.

</TD></TR><TR><TD>

heads

</TD><TD>

The number of heads (sides).

</TD></TR><TR><TD>

sectors

</TD><TD>

The number of sectors per track.

</TD></TR></TABLE>







<P><CENTER>

<a href="1150-1151.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="1155-1155.html">Next</A></CENTER></P>







</td>
</tr>
</table>

<!-- begin footer information -->







</body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?