📄 050-052.html
字号:
<HTML>
<HEAD>
<TITLE>Linux Configuration and Installation:Installing Linux</TITLE>
<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=1558285660//-->
<!--TITLE=Linux Configuration and Installation//-->
<!--AUTHOR=Patrick Volkerding//-->
<!--AUTHOR=Kevin Reichard//-->
<!--AUTHOR=Eric Foster//-->
<!--PUBLISHER=IDG Books Worldwide, Inc.//-->
<!--IMPRINT=M & T Books//-->
<!--CHAPTER=2//-->
<!--PAGES=050-052//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="047-050.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="052-055.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<P><FONT SIZE="+1"><B>Should You Use UMSDOS?</B></FONT></P>
<P>The UMSDOS filesystem allows you to install Linux in an MS-DOS directory on an existing DOS partition. The advantage of this is that you won’t need to reformat or repartition your existing system. There are two disadvantages to using this system, however.
</P>
<P>First, the UMSDOS system is somewhat slower than a native Linux filesystem. This is especially true of machines with 8 megabytes of memory or less—UMSDOS is virtually unusable on a 4MB machine. The second disadvantage of UMSDOS has to do with a shortcoming of the MS-DOS FAT filesystem. MS-DOS allocates space for files in units called <I>clusters</I>. A cluster is usually 4K or 8K in size. This means that the smallest file that can be created on a UMSDOS filesystem takes up a full cluster (4096+ bytes), even if the file is much smaller. Linux contains many such small files, including symbolic links and device entries. As a result, installing with UMSDOS may require more drive space than installing with a native Linux filesystem.</P>
<P>Now that you’ve chosen your bootdisk and rootdisk images, it’s time to actually create the bootdisk and rootdisk.</P>
<P><FONT SIZE="+1"><B>Creating the Diskettes</B></FONT></P>
<P>For this step, you’ll need two high-density diskettes. It doesn’t matter what’s on the diskettes, but they must be formatted. Be warned that this process will completely wipe out anything currently stored on the diskettes. You might also wish to format a third high-density floppy disk at this time for the installation program to use later when it’s preparing your system bootdisk.
</P>
<BLOCKQUOTE>
<P><FONT SIZE="-1"><HR><B>NOTE: </B>As you’ll recall from an earlier note, the images for the rootdisks do not need to be decompressed; the kernel will automatically decompress them as they are loaded into memory.<HR></FONT>
</BLOCKQUOTE>
<P>In these examples, we’ll be using the <B>BARE.I</B> and <B>COLOR.GZ</B> images. If you’re using a different set of images, just substitute those filenames instead.</P>
<BLOCKQUOTE>
<P><FONT SIZE="-1"><HR><B>NOTE: </B>The procedures in this section do not need to be done on the computer you’re planning to use as your Linux workstation. You can create the files on a different PC or even use a UNIX workstation to create the floppies. On a UNIX workstation the <B>dd</B> command is used to write an image to the floppy drive. When using <B>dd</B> on Suns, and possibly on some other UNIX workstations, you must provide an approximate block size. Here’s an example:
<!-- CODE SNIP //-->
<PRE>
dd if=bare.i of=/dev/(rdfd0, rdf0c, fd0, or whatever) obs=18k
</PRE>
<!-- END CODE SNIP //-->
<HR></FONT>
</BLOCKQUOTE>
<P>Now it’s time to make your bootdisk. First, move into the <B>bootdisks.144</B> (or <B>bootdisks.12</B> if you use a 1.2MB floppy drive) directory on your Slackware CD-ROM.</P>
<P>Assuming your CD-ROM drive has the drive letter <B>E:</B> assigned to it, you’d move into the directory like this:</P>
<!-- CODE SNIP //-->
<PRE>
C:\> E:
E:\> CD BOOTDSKS.144
E:\BOOTDSKS.144>
</PRE>
<!-- END CODE SNIP //-->
<P>Now you’ll actually create the bootdisk. Put the eventual bootdisk diskette in drive <B>A:</B> and type the following command:</P>
<!-- CODE SNIP //-->
<PRE>
E:\> RAWRITE BARE.I A:
</PRE>
<!-- END CODE SNIP //-->
<P>This will use the <B>RAWRITE</B> command (there’s a copy of this in each of the <B>BOOTDSKS</B> and <B>ROOTDSKS</B> directories) to copy the <B>BARE.I</B> disk image to the <B>A:</B> floppy drive. As it writes, <B>RAWRITE</B> will give you a status report. After it’s finished writing the bootdisk, remove the disk from the drive and put it aside.</P>
<P>Then insert another formatted high-density floppy and use the same procedure to write the rootdisk. In this case, you’ll need to move into the <B>ROOTDSKS</B> directory and write the <B>COLOR.GZ</B> image using <B>RAWRITE</B>:</P>
<!-- CODE SNIP //-->
<PRE>
E:\BOOTDSKS.144> cd \ROOTDSKS
E:\ROOTDSKS> RAWRITE COLOR.GZ A:
</PRE>
<!-- END CODE SNIP //-->
<P>There’s really not a lot to the <B>RAWRITE</B> command; the only things that could trip you up would be if you’re not using a high-density diskette or if the diskette is flawed.</P><P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="047-050.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="052-055.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
</td>
</tr>
</table>
<!-- begin footer information -->
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -