📄 057-061.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=057-061//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="055-057.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="061-065.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<H4 ALIGN="LEFT"><A NAME="Heading8"></A><FONT COLOR="#000077">Using the DOS FDISK Utility</FONT></H4>
<P>Now that you’ve created the system backup and a boot diskette, it’s time to destroy the data on your hard drive with the <B>FDISK</B> utility. Destroy? Yup. The act of creating new partitions is by definition a destructive act. You must destroy the existing partitions and the records of the data contained therein in order to create the new partitions.</P>
<BLOCKQUOTE>
<P><FONT SIZE="-1"><HR><B>NOTE: </B>You can use <B>FDISK</B> if your system has more than one hard drive. In this case, you’ll want to make sure that you’re working on the correct hard drive. <B>FDISK</B> does not use the normal DOS drive representations (<B>C:</B>, <B>D:</B>, <B>E:</B>, etc.); rather, <B>FDISK</B> uses numerals, such as <I>1</I> or <I>2</I>.<HR></FONT>
</BLOCKQUOTE>
<P>Begin by booting your PC from the floppy disk you created in the previous section. This “vanilla” boot will ask for today’s date and time (ignore both; they don’t matter) and then give you the following command line:
</P>
<!-- CODE SNIP //-->
<PRE>
A>
</PRE>
<!-- END CODE SNIP //-->
<P>You’re now ready to run the DOS <B>FDISK</B> utility:</P>
<!-- CODE SNIP //-->
<PRE>
A> fdisk
</PRE>
<!-- END CODE SNIP //-->
<P>There are no command-line parameters to <B>FDISK</B>.</P>
<P>The program loads and displays something like the screen shown in Figure 2.1.</P>
<!-- CODE //-->
<PRE>
MS-DOS Version 5.00
Fixed Disk Setup Program
(C) Copyright Microsoft 1983 - 1991
<B>FDISK OPTIONS</B>
Current fixed disk drive: <B>1</B>
Choose one of the following:
<B>1</B>. Create DOS partition or Logical DOS Drive
<B>2</B>. Set active partition
<B>3</B>. Delete partition or Logical DOS Drive
<B>4</B>. Display partition information
Enter choice: <B>[1]</B>
Press <B>Esc</B> to exit FDISK
</PRE>
<!-- END CODE //-->
<P><B><U>Figure 2.1</U></B> The opening screen to the <B>FDISK</B> utility.</P>
<BLOCKQUOTE>
<P><FONT SIZE="-1"><HR><B>NOTE: </B>The figures is this section are for a specific version of MS-DOS, 5.00. However, most versions of MS-DOS follow the conventions shown and explained here. If the choices on your system aren’t exactly like the choices here, read through them carefully and use the similar choice. Remember: You are essentially deleting a partition and creating a new one in this procedure.<HR></FONT>
</BLOCKQUOTE>
<P>At this point you’ll need to delete the existing partition, so you’ll choose <B>3</B>. (If you’re not sure about the existing partitions on your disk—or whether you’re even working on the correct disk if you have more than one—select <B>4</B>.)</P>
<BLOCKQUOTE>
<P><FONT SIZE="-1"><HR><B>NOTE: </B>When using the <B>FDISK</B> utility, you’ll see references to primary and extended partitions, as well as to logical drives. Here an explanation:
<DL>
<DD><B>•</B> The <I>primary partition</I> is the partition containing the files (<B>IO.SYS</B>, <B>MSDOS.SYS,</B> and <B>COMMAND.COM</B>) needed to boot MS-DOS. In essence, this is your C: drive. The primary partition cannot be divided into other logical drives.
<DD><B>•</B> The extended partition or partitions do not contain these boot files. An extended partition can exist as its own logical drive (such as D: or E:) or be divided into additional logical drives.
<DD><B>•</B> The <I>logical drive</I> is the portion of a partition assigned a drive letter. For example, an extended partition can be divided into up to 23 logical drives (<B>A:</B> and <B>B:</B> are reserved for floppies, and <B>C:</B> is reserved for the primary partition, leaving 23 letters).
</DL>
<P>Additionally, the <I>non-DOS partition</I> is for another operating system, such as Linux.</P>
<P>Chances are that you won’t need to deal with more than a primary drive or an extended drive.<HR></FONT>
</BLOCKQUOTE>
</P>
<P>After selecting <B>3</B>, you’ll see the screen shown in Figure 2.2.</P>
<!-- CODE //-->
<PRE>
<B>Delete DOS Partition or Logical DOS Drive</B>
Current fixed disk drive: <B>1</B>
Choose one of the following:
<B>1.</B> Delete Primary DOS Partition
<B>2.</B> Delete Extended DOS Partition
<B>3.</B> Delete Logical DOS Drive(s) in the Extended DOS Partition
<B>4.</B> Delete Non-DOS Partition
Enter choice: <B>[ ]</B>
Press <B>Esc</B> to return to FDISK Options
</PRE>
<!-- END CODE //-->
<P><B><U>Figure 2.2</U></B> The delete screen for <B>FDISK</B>.</P>
<P>What you do at this point depends on how your hard drive has been configured. If you have primary and extended partitions, delete them. If you have only a primary drive, delete it. <B>FDISK</B> will confirm that you do indeed want to delete a partition. This is your last chance to chicken out and check the DOS partition one more time before actually wiping it out.</P>
<P>After deleting a partition, you’ll need to create a new DOS partition—a choice that’s listed in Figure 2.1 as option <B>1</B>. After choosing <B>1</B>, you’ll be shown a screen like that in Figure 2.3.</P>
<!-- CODE //-->
<PRE>
<B>Create DOS Partition or Logical DOS Drive</B>
Current fixed disk drive: <B>1</B>
Choose one of the following:
<B>1.</B> Create Primary DOS Partition
<B>2.</B> Create Extended DOS Partition
<B>3.</B> Create Logical DOS Drive(s) in the Extended DOS Partition
Enter choice: <B>[1]</B>
Press <B>Esc</B> to return to FDISK Options
</PRE>
<!-- END CODE //-->
<P><B><U>Figure 2.3</U></B> Creating a new partition with <B>FDISK</B>.</P>
<P>Of course, you’ll want to create a new primary partition; this is the partition that will be used for DOS.</P>
<P>The next thing you’ll need to decide is how much of the hard drive to devote to DOS. There are no hard-and-fast rules concerning partition sizes. Obviously, you’ll first need to think about how much of a priority Linux is—if you plan on running Linux a lot, you should give it a lot of hard disk space. If you plan on using it as much as DOS, you should equalize the two installations somewhat, keeping in mind that Linux will require far more hard disk space than DOS. And if you plan on using Microsoft Windows along with DOS and Linux, you should assume that Windows will take up as much hard disk space as it can get.</P><P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="055-057.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="061-065.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 + -