⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 1155-1155.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<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="1152-1154.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="1156-1157.html">Next</A></CENTER></P>







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









<P>For example, the following drive section describes a 1.44M drive:

</P>



<!-- CODE SNIP //-->

<PRE>

drive a:

file=&quot;/dev/fd0H1440&quot;

fat_bits=12

tracks=80 heads=2 sectors=18

</PRE>

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



<P>The following shorthand geometry descriptions are available:

</P>



<TABLE>



<TR><TD>

1.44M

</TD><TD>

High density, 3 1/2 disk. Equivalent to

fat_bits=12 tracks=80 heads=2 sectors=18.

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

1.2M

</TD><TD>

High density, 5 1/4 disk. Equivalent to

fat_bits=12 tracks=80 heads=2 sectors=15.

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

720K

</TD><TD>

Double density, 3 1/2 disk. Equivalent to

fat_bits=12 tracks=80 heads=2 sectors=9.

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

360K

</TD><TD>

Double density, 5 1/4 disk. Equivalent to

fat_bits=12 tracks=40 heads=2 sectors=9.

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





<P>The shorthand format descriptions may be amended. For example,

360K sectors=8 describes a 320K disk and is equivalent

to fat_bits=12 tracks=40 heads=2 sectors=8.

</P>



<P><B>

OPEN FLAGS

</B></P>



<P>Moreover, the following flags are available:

</P>



<TABLE>



<TR><TD>

sync

</TD><TD>

All I/O operations are done synchronously.

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

nodelay

</TD><TD>

The device or file is opened with the

O_NDELAY flag. This is needed on some non-Linux architectures.

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

exclusive

</TD><TD>

The device or file is opened with the

O_EXCL flag. On Linux, this ensures exclusive access

to the floppy drive. On most other architectures and for plain files, it has no effect at all.

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





<P><B>

SUPPLYING MULTIPLE DESCRIPTIONS FOR A DRIVE

</B></P>



<P>It is possible to supply multiple descriptions for a drive. In that case, the descriptions are tried in order until one is

found that fits. Descriptions may fail for several reasons:

</P>



<UL>

<LI>          The geometry is not appropriate

<LI>          There is no disk in the drive

<LI>          Other problems

</UL>



<P>Multiple definitions are useful when using physical devices that are only able to support one single disk geometry:

</P>



<!-- CODE SNIP //-->

<PRE>

drive a: file=&quot;/dev/fd0H1440&quot; 1.44m

drive a: file=&quot;/dev/fd0H720&quot; 720k

</PRE>

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



<P>This instructs mtools to use /dev/fd0H1440 for 1.44M (high density) disks and

/dev/fd0H720 for 720K (double density) disks. On Linux, this feature is not really needed because the

/dev/fd0 device is able to handle any geometry.

</P>



<P>You can also use multiple drive descriptions to access both of your physical drives through one drive letter:

</P>



<!-- CODE SNIP //-->

<PRE>

drive z: file=&quot;/dev/fd0&quot;

drive z: file=&quot;/dev/fd1&quot;

</PRE>

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



<P>With this description, mdir z: accesses your first physical drive if it contains a disk. If the first drive doesn't contain a

disk, mtools checks the second drive.

</P>



<P>When using multiple configuration files, drive descriptions in the files parsed last override descriptions for the same drive

in earlier files. In order to avoid this, use the

drive+ or +drive keywords instead of drive. The first adds a description to the

end of the list (will be tried last), and the second adds it to the start of the list.

</P>



<P><B>

CHARACTER TRANSLATION TABLES

</B></P>



<P>If you live in the USA, in Western Europe, or in Australia, you can skip this section.

</P>







<P><CENTER>

<a href="1152-1154.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="1156-1157.html">Next</A></CENTER></P>







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

<!-- begin footer information -->







</body></html>

⌨️ 快捷键说明

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