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

📄 041-043.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=041-043//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="038-041.html">Previous</A></TD>

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

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

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<P>If you&#146;re not installing directly off the CD-ROM, you next need to repartition your current hard drive to make room for Linux. This may cause problems, because repartitioning a hard drive destroys any data contained on the affected partitions. After making room for Linux, you need to boot the Linux system and create its new partitions and file systems. Typically, Linux systems need a primary partition to store the files on and a swap file partition, especially if you have a machine with 8MB or less of memory.

</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>NOTE:&nbsp;&nbsp;</B>A <TT>file system</TT> is basically a section of your hard drive specially formatted to hold certain types of files. UNIX and Linux use file systems to represent entire sections of the directory tree. This is in contrast to MS-DOS, which places subdirectories in the directory tree on the same logical drive. UNIX systems use the directory tree format because placing subdirectories on different drives is safer. If one drive malfunctions, only the information on that drive needs to be replaced or fixed.<HR></FONT>

</BLOCKQUOTE>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR>&#149; <B>See</B> &#147;Understanding File Systems,&#148; <B>p. 266</B><HR></FONT>

</BLOCKQUOTE>

<P>After creating the file systems, you then install the Linux operating system, its support files, and various application packages distributed with the system. To install Linux, you must first boot a stripped-down version of the operating system. You do this by creating a boot disk and a supplemental disk set containing the stripped-down OS.

</P>

<H4 ALIGN="LEFT"><A NAME="Heading14"></A><FONT COLOR="#000077">Creating the Boot and Supplemental Disks</FONT></H4>

<P>You need to create the boot and supplemental disks by using the <TT>rawrite</TT> program. You can find this program on the accompanying CD-ROM in the /dosutils subdirectory. For this step, you need two formatted floppies: one labeled <I>boot</I> and the other labeled <I>supp</I>. Place the boot disk in the A drive and enter the following:</P>

<!-- CODE SNIP //-->

<PRE>

E:\dosutils&gt;<B>rawrite</B>



Enter disk image source file name: <B>e:\images\boot.img</B>

Enter target diskette drive: <B>A:</B>

Please insert a formatted diskette into drive A: and press -ENTER-

</PRE>

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

<P>If you want to abort the process, simply press &lt;Ctrl-c&gt; to stop. If <TT>rawrite</TT> fails, try a new formatted disk. If the problem persists, you should have your hardware checked for possible problems.</P>

<P>After writing the boot disk, you need to create the supplemental disk. Simply use the supp image file name (supp.img) as the source filename in the preceding command sequence.</P>

<H3><A NAME="Heading15"></A><FONT COLOR="#000077">Partitioning Your Hard Drive</FONT></H3>

<P>After you back up your system and make the necessary boot and supplemental disks, you must prepare your system&#146;s hard drive for Linux.

</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>CAUTION:&nbsp;&nbsp;</B><BR>This process is the most dangerous because maximum data loss is assured. If you haven&#146;t backed up your system, do so now. Although you can use an experimental program called FIPS and commercial programs such as Partition Magic to do non-destructive repartitioning, a full backup is recommended, just in case problems occur.<HR></FONT>

</BLOCKQUOTE>

<H4 ALIGN="LEFT"><A NAME="Heading16"></A><FONT COLOR="#000077">Understanding Partitions</FONT></H4>

<P>In the early days of PCs, hard drives were few and far between. Most computers used floppies to hold the operating system, programs, and their data. With the introduction of the IBM PC XT, IBM introduced a 10MB hard drive. Early operating systems such as DOS could access only a limited amount of space on hard drives. Then hard drive manufacturers kept expanding the space on their hard drives more quickly than the operating system&#146;s capability to access the additional space. The operating system got around this problem by letting the user split the hard drive into sections, called <I>partitions</I>. These partitions can hold program files, other operating systems, or data.</P>

<P>Typical MS-DOS systems have one partition, which is referred to as drive C. If you split the drive into partitions, these partitions are typically referred to in alphabetical order as D, E, and so on. MS-DOS also allows you to install multiple hard drives, so that the next drive in this chain might be referred to as F.</P>

<P>UNIX and Linux don&#146;t use drive letters to refer to partitions; instead, they use directory names to refer to partitions. Also, as indicated earlier, Linux users can place different directories on different partitions and even on different drives. You can also place different operating systems on different partitions.</P>

<P>Partitions are specified in a section of the hard drive referred to as the <I>boot record</I> in what&#146;s called a <I>partition table</I>. This table is used by the various operating systems to determine what operating system to boot and where their files can physically be found on the hard drive. The boot record is used to <I>boot</I>, or start up, the machine&#146;s operating system. Linux&#146;s boot program, LILO (LInux LOader), and other boot managers use this section of the hard drive, typically found on the first sectors of the drive, to control which operating system to start.</P>

<P>The partition table holds information about the locations and sizes of the various partitions on the hard drive. There are three kinds of partitions: primary, extended, and logical. DOS and some other operating systems must boot from primary partitions. Hard drives can contain only four primary partitions. An extended partition doesn&#146;t contain data itself; instead, it allows the user to define other, logical partitions on the drive. Thus, to get around the limit of four primary partitions, you can define an extended partition and then define other logical partitions within the extended partition.</P>

<P>Some operating systems, such as MS-DOS and versions of OS/2 before version 2.0, require that they be installed in a primary partition, but they can access logical drives in extended partitions. This is important to remember if you&#146;re going to have a DOS system and a Linux system reside on the same drive. DOS must go in a primary partition.</P><P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="038-041.html">Previous</A></TD>

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

<TD><A HREF="043-044.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 + -