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

📄 044-047.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<HTML>

<HEAD>

<TITLE>Special Edition Using Linux, Fourth Edition:Linux Installation Overview</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=0789717468//-->

<!--TITLE=Special Edition Using Linux, Fourth Edition//-->

<!--AUTHOR=Jack Tackett//-->

<!--AUTHOR=Jr.//-->

<!--AUTHOR=Steve Burnett//-->

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

<!--IMPRINT=Que//-->

<!--CHAPTER=2//-->

<!--PAGES=044-047//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="043-044.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="047-050.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<H4 ALIGN="LEFT"><A NAME="Heading18"></A><FONT COLOR="#000077">Repartitioning Your DOS Drive</FONT></H4>

<P>This section assumes that you need to repartition a DOS drive. First, you execute <TT>FDISK</TT> by typing <TT>fdisk</TT> at the DOS prompt. The FDISK Options screen appears (see Figure 2.1).</P>

<P><A NAME="Fig1"></A><A HREF="javascript:displayWindow('images/02-01.jpg',631,303 )"><IMG SRC="images/02-01t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/02-01.jpg',631,303)"><FONT COLOR="#000077"><B>FIG. 2.1</B></FONT></A>&nbsp;&nbsp;From the FDISK Options screen, you can look at current partitions, create new partitions, and delete old partitions.</P>

<P>The screen shown in Figure 2.1 might look different depending on which version of MS-DOS you&#146;re using. Pick menu option 4, Display Partition Information. The Display Partition Information screen appears (see Figure 2.2). Write down the information in this screen. You need the current partition table information if you decide to abort the Linux installation and put your system back the way it was before you started.

</P>

<P><A NAME="Fig2"></A><A HREF="javascript:displayWindow('images/02-02.jpg',630,303 )"><IMG SRC="images/02-02t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/02-02.jpg',630,303)"><FONT COLOR="#000077"><B>FIG. 2.2</B></FONT></A>&nbsp;&nbsp;You can look at current partition information by using the Display Partition Information screen in MS-DOS 6.x.</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>An Alternative to Repartitioning Your Hard Drive:&nbsp;&nbsp;</B><BR>You may not need to repartition your hard drive, although it&#146;s thought that repartitioning offers the best introduction to Linux. You can use FIPS to non-destructively repartition your hard drive.

<P>FIPS stands for <TT>First non-destructive Interactive Partition Splitting</TT>. A program developed by Arno Schaefer as a result of the Linux project, FIPS is used to move around DOS partitions to make room for Linux partitions.</P>

<P>You can find the complete instructions for using FIPS in the document fips.doc located on the accompanying Red Hat CD-ROM in the /utils/fips directory. This program can help only if you have enough free space left on your drive to install Linux; otherwise, you need to delete unneeded files or use the process described earlier to repartition your hard drive.</P>

<P>Under Slackware Linux, you can install Linux on the same partition as DOS with UMSDOS. UMSDOS is a project to allow Linux to exist on DOS partitions. UMSDOS lets you create the Linux root file system under an existing DOS directory. Unfortunately, you can&#146;t use UMSDOS under Red Hat.<HR></FONT>

</BLOCKQUOTE>

</P>

<P><FONT SIZE="+1"><B>Deleting Partitions</B></FONT></P>

<P>Unfortunately, <TT>FDISK</TT> doesn&#146;t allow you to simply resize a partition; you must first delete the partition and then add it back with the desired size. From the FDISK Options screen, choose menu option 3, Delete Partition or Logical DOS Drive, which deletes the necessary partitions. The Delete DOS Partition or Logical DOS Drive screen appears (see Figure 2.3).</P>

<P><A NAME="Fig3"></A><A HREF="javascript:displayWindow('images/02-03.jpg',640,302 )"><IMG SRC="images/02-03t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/02-03.jpg',640,302)"><FONT COLOR="#000077"><B>FIG. 2.3</B></FONT></A>&nbsp;&nbsp;Use the Delete DOS Partition screen to delete a specific partition or logical drive.</P>

<P>Pick the appropriate menu option for the type of partition you&#146;re deleting, such as a primary DOS partition. For example, option 1, Delete Primary DOS Partition, allows you to delete primary DOS partitions.

</P>

<P>Choose option 1 to display the Delete Primary DOS Partition screen (see Figure 2.4). The screen asks for a volume name of the partition and then a confirmation to see whether you really want to delete the partition. Because all information on the partition will be destroyed, <TT>FDISK</TT> wants to make absolutely sure that you want to delete the primary DOS partition.</P>

<P><A NAME="Fig4"></A><A HREF="javascript:displayWindow('images/02-04.jpg',640,303 )"><IMG SRC="images/02-04t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/02-04.jpg',640,303)"><FONT COLOR="#000077"><B>FIG. 2.4</B></FONT></A>&nbsp;&nbsp;MS-DOS warns you when you try to delete a primary DOS partition.</P>

<P><FONT SIZE="+1"><B>Adding Partitions</B></FONT></P>

<P>After you delete all the necessary partitions, you must add the appropriate partitions for your DOS system by selecting the Create a DOS Partition menu item on the FDISK Options screen. Figure 2.5 shows the Create a DOS Partition or Logical DOS Drive screen.

</P>

<P><A NAME="Fig5"></A><A HREF="javascript:displayWindow('images/02-05.jpg',640,302 )"><IMG SRC="images/02-05t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/02-05.jpg',640,302)"><FONT COLOR="#000077"><B>FIG. 2.5</B></FONT></A>&nbsp;&nbsp;Most operating systems require a primary active partition to boot properly.</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>NOTE:&nbsp;&nbsp;</B>You can&#146;t add the Linux or OS/2 partitions with the DOS <TT>FDISK</TT> program. Partitioning the hard drive for Linux is covered later in the section &#147;Using the Linux <TT>fdisk</TT> Command.&#148;<HR></FONT>

</BLOCKQUOTE>

<P>Providing all the space available for the partition and making the partition the active partition are the <TT>FDISK</TT> defaults, as shown in Figure 2.6.</P>

<P><A NAME="Fig6"></A><A HREF="javascript:displayWindow('images/02-06.jpg',640,302 )"><IMG SRC="images/02-06t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/02-06.jpg',640,302)"><FONT COLOR="#000077"><B>FIG. 2.6</B></FONT></A>&nbsp;&nbsp;You can use all the disk space for one partition or spread out the free space across several partitions.</P>

<P><I>Active</I> indicates that the partition is bootable. To boot DOS, you must specify the primary partition as active. Choose N (no) for this first selection so that you can specify the exact amount of disk space to provide to your DOS partition. Answering no to the question in Figure 2.6 displays the Specify Disk Space for the Partition screen. Specify the desired space for your DOS partition either in megabytes or in percentage of space available and press &lt;Return&gt;.</P>

<P>Next, you must set this partition as active. From the FDISK Options screen, choose menu option 2, Set Active Partition, and simply follow the instructions on the set active menu screen.</P>

<P><FONT SIZE="+1"><B>Formatting the Partition</B></FONT></P>

<P>After you repartition your hard drive, you need to prepare the new partition for DOS and restore the appropriate files back to the DOS partition. Reboot your computer with the boot disk you made earlier. Then format the appropriate drive and transfer the system files by using the following DOS command:

</P>

<!-- CODE SNIP //-->

<PRE>

format c: /s

</PRE>

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

<P>When the partition is formatted, you can restore your backup to the new drive. Remember, if you reduced the size of the partition, not all the files will fit on the new drive. It might be necessary to place the files that don&#146;t fit on the new drive onto other DOS drives or partitions.

</P><P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="043-044.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="047-050.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 + -