📄 041-043.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=041-043//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="../ch01/039-040.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="043-047.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<H2><A NAME="Heading1"></A><FONT COLOR="#000077">Chapter 2<BR>Installing Linux
</FONT></H2>
<P>This chapter covers:
</P>
<DL>
<DD><B>•</B> Preparing your PC for Linux
<DD><B>•</B> Creating new partitions under DOS
<DD><B>•</B> Creating new partitions under Linux
<DD><B>•</B> Creating your bootdisk and rootdisk
<DD><B>•</B> Booting Linux for installation
<DD><B>•</B> Installing from the <B>setup</B> command
<DD><B>•</B> Selecting the software to install
<DD><B>•</B> Booting Linux with <B>Loadlin</B>
<DD><B>•</B> Logging in the virgin Linux system
<DD><B>•</B> Setting up additional users
<DD><B>•</B> Adding hardware drivers with kernel modules
<DD><B>•</B> Shutting down Linux
</DL>
<H3><A NAME="Heading2"></A><FONT COLOR="#000077">Before You Install Linux</FONT></H3>
<P>Now that you have the perfect PC for running Linux, it’s time to prepare for the installation. No, you can’t just install Linux from the accompanying CD-ROMs; you must first configure your hard drive and create boot floppies. Neither step is particularly difficult. Here, we’ll cover how to create boot floppies for booting Linux, followed by a discussion of preparing your hard drive for the Linux installation. The actual installation process is:
</P>
<DL>
<DD><B>•</B> Create boot and root floppies
<DD><B>•</B> Prepare your hard drive for installation
<DD><B>•</B> Boot Linux from boot and root floppies
<DD><B>•</B> Install Linux from the CD-ROM
</DL>
<P>In the following steps, we’re assuming you already have an Intel-based PC up and running with the MS-DOS operating system, with the CD-ROM drive installed correctly, because you’ll need to copy some files from the CD-ROM onto your hard drive. (On a PC, you’ll need to install special drivers to use the CD-ROM drive; these drivers ship with the CD-ROM drive.) This doesn’t need to be the PC on which you plan to install Linux—it just needs to be a PC with a DOS command line and access to the CD-ROM drive.
</P>
<BLOCKQUOTE>
<P><FONT SIZE="-1"><HR><B>NOTE: </B>The procedures in this chapter are closely tied to the installation and configuration routines found on the accompanying CD-ROMs. Other distributions of Linux are not exactly the same. If you’re using a distribution of Linux other than the Slackware distribution on the accompanying CD-ROMs, you can still follow along, keeping in mind that your exact steps may differ.<HR></FONT>
</BLOCKQUOTE>
<H3><A NAME="Heading3"></A><FONT COLOR="#000077">Creating Boot and Root Floppies</FONT></H3>
<P>Your first steps will be to create two floppy disks used to boot Linux: the boot and root diskettes. The <I>boot diskette</I> is the diskette used (as the name implies) to boot the PC, while the <I>root diskette</I> contains a set of Linux commands (actually, a complete mini-Linux system). Creating these disks is probably the best way to install Linux, although it is possible to install Linux without using any floppy disks using <B>LOADLIN.EXE</B>, a DOS program that loads Linux from an MS-DOS prompt. We’ll cover this option a little later, but unless your floppy disk doesn’t work under Linux it is recommended that you install using a bootdisk and a rootdisk.</P>
<P>Your next step is to determine which bootdisk and rootdisk images you’ll be using and writing the images onto formatted floppy disks. Because selecting the disk images to use (especially the bootdisk) can be a relatively large task, it warrants its own section.</P>
<H4 ALIGN="LEFT"><A NAME="Heading4"></A><FONT COLOR="#000077">Choosing Bootdisk and Rootdisk Images</FONT></H4>
<P>Linux needs to know a lot about your PC’s hardware, and that knowledge begins the second you boot the system. That’s why you need to put some thought into selecting your bootdisk and rootdisk images.
</P>
<P>Before we go any further, we should explain what <I>bootdisk</I> and <I>rootdisk images</I> are. Linux needs to boot from floppies initially, and it needs to know what sort of hardware it’s working with. When you boot Linux for the first time, the information is contained on the bootdisk and rootdisk. To create a bootdisk and a rootdisk, you need to select the proper image. You’ll then use the <B>RAWRITE.EXE</B> utility to copy the image byte-for-byte to the diskette.</P>
<P>How do you select the proper image? The first step is to determine the disk size of your drive <B>A:,</B> which you boot the system from. If you’re using a 3.5-inch disk drive as <B>A:,</B> you’ll need to grab an image from the <B>bootdsks.144</B> directory. (This is so labeled because the capacity of a 3.5-inch high-density floppy is 1.44 megabytes.) If you’re using a 5.25-inch disk drive to boot from, you’ll need to grab an image from the <B>bootdsks.12</B> directory. (This is so labeled because the capacity of a 5.25-inch high-density floppy is 1.2 megabytes.)</P><P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="../ch01/039-040.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="043-047.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 + -