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

📄 061-065.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 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=061-065//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="057-061.html">Previous</A></TD>

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

<TD><A HREF="065-067.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<P>Our only advice: Don&#146;t be stingy when it comes to Linux hard disk allocation, and remember that Linux applications tend to eat up a <I>lot</I> of disk space. It&#146;s not unusual to run across freely available binaries on the Internet that are more than a megabyte (such as the popular Web browser NCSA Mosaic for X Window), and in time these applications add up. If you&#146;re really careful during installation and you install only the applications you need, you can keep a Linux installation down to 100 megabytes or so. Realistically, however, by the time you include everything worth having, you&#146;ll be up to 275 megabytes or so. If you only have a 325MB hard disk, you&#146;ll obviously need to keep the DOS partition to 10 or so megabytes.</P>

<P>Don&#146;t bother with any other partitions&#151;at least for Linux usage. You probably won&#146;t want to create a logical DOS drive; if you do, you can&#146;t use it for a Linux installation, as all Linux partitions must be created through Linux later in the installation process.</P>

<P>After deciding how much hard disk space to give to DOS, you&#146;ll want to exit <B>FDISK</B>. Go ahead and make the DOS partition active (this means that you can boot from it later, which you&#146;ll want to do; you can have multiple partitions able to boot).</P>

<P>After quitting <B>FDISK</B>, reboot the system, leaving the DOS diskette in drive <B>A:</B>. You&#146;ll now want to format drive <B>C:</B>&#151;at least the DOS portion of it&#151;with the DOS <B>FORMAT</B> command:</P>

<!-- CODE SNIP //-->

<PRE>

     A&gt; FORMAT /S C:

</PRE>

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

<P>This command formats the DOS partition with the core of the operating system (the <B>COMMAND.COM</B>, <B>IO.SYS</B>, and <B>MSDOS.SYS</B> files). The <B>FORMAT</B> command makes sure that you want to go ahead with the format (this is to make sure that DOS neophytes don&#146;t accidentally format a partition that contains valuable information); answer in the affirmative when asked if you want to proceed with the format.</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>NOTE:&nbsp;&nbsp;</B>You can use any version of DOS for these steps, as long as it&#146;s DOS 4.0 or better. DOS doesn&#146;t care if you format the hard drive with one version of DOS and install another version later.<HR></FONT>

</BLOCKQUOTE>

<P>Now that you&#146;ve prepared the DOS side of your hard disk (and after looking back you realize that it&#146;s a lot easier than the extended verbiage in the previous sections made it seem), it&#146;s time to boot Linux.

</P>

<H4 ALIGN="LEFT"><A NAME="Heading9"></A><FONT COLOR="#000077">FDISK and OS/2</FONT></H4>

<P>When preparing a PC for use with OS/2 and Linux, you&#146;ll need to use a slightly different route for preparing your hard drive.

</P>

<P>OS/2 has trouble with partitions not originally created with <I>its</I> <B>FDISK</B> utility. Therefore, you must start by partitioning your hard disk with the OS/2 <B>FDISK</B> utility (keeping in mind that OS/2 needs more than 35 megabytes of hard disk space to run). Then you must create the Linux partition with the OS/2 <B>FDISK</B> utility&#151;marked as another OS/2 partition&#151;and make that a potential boot partition using OS/2&#146;s Boot Manager. (OS/2 gives you the ability to select a boot partition every time you boot the PC.)</P>

<P>You&#146;ll then boot your PC with the instructions given next. However, later in the process you&#146;ll do something a little different when it comes to the Linux <B>fdisk</B> command (which we&#146;ll cover at that point in the installation process).</P>

<H3><A NAME="Heading10"></A><FONT COLOR="#000077">Booting Linux with the Bootdisk</FONT></H3>

<P>Obviously, you boot Linux with the bootdisk you prepared earlier. Put it in your boot drive and restart your PC with a cold or warm boot (it doesn&#146;t matter).

</P>

<P>Initially your PC will do the things that it normally does when it boots, such as check the memory and run through the BIOS. However, the word <I>LILO</I> will appear on your screen, followed by a full screen that begins with the line:</P>

<!-- CODE SNIP //-->

<PRE>

     Welcome to the Slackware Linux 3.2.0 bootkernel disk!

</PRE>

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

<P>You&#146;ll also see some verbiage about passing parameters along to the kernel; most users won&#146;t need to pass along any additional parameters.

</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>WARNING:&nbsp;&nbsp;</B>The exceptions are some IBM PS/1, ValuePoint, and ThinkPad users, as Linux will not recognize the hard disks used by these machines. These IBM computers don&#146;t store the hard disk information in the CMOS, which is checked by Linux upon booting up. Because Linux lacks this information, it assumes there&#146;s no hard drive present. You must pass along the hard disk geometry at this point.<P>If you are using one of these machines, you cannot use the <B>bare</B> bootdisk; instead, you should use <B>scsi</B>. When you boot using this bootdisk, you should press down the left <B>Shift</B> key, which gives you a menu where you can specify the geometry of the hard disk. Where do you get this information? From the drive&#146;s installation guide or by checking the machine&#146;s internal setup.<HR></FONT>

</BLOCKQUOTE>

</P>

<P>Most users will be able to press the <B>Enter</B> key and proceed to load the Linux RAM disk.</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>NOTE:&nbsp;&nbsp;</B>There are some cases where <I>LILO</I> appears on the screen and the system hangs or rows of <I>0</I>s and <I>1</I>s cascade down the screen. In these cases, you are probably using the wrong bootdisk for your PC. The first thing to do is to create a few alternate bootdisks and try them; if the problem persists, scan the Usenet newsgroups and the FTP archives (see Appendix A for details) to make sure that your PC and its peripherals are indeed supported by Linux.<HR></FONT>

</BLOCKQUOTE>

<P>The bootdisk runs through your system hardware, noting which hard drives and peripherals are present and scouting out other salient details about your PC. It&#146;s at this point that Linux discovers any problems with your PC, and if you have problems installing or using Linux, it&#146;s a place you&#146;ll want to check. (The same information is displayed and gathered every time you boot.)

</P>

<P>If there are no problems, you can put in your rootdisk and press <B>Enter</B>. A core of the Linux operating system is then copied to the RAM disk, which then gives you access to some Linux commands, including the important <B>fdisk</B> command. The installation process instructs you to login the Linux system as <I>root</I>:</P>

<!-- CODE SNIP //-->

<PRE>

     slackware login : root

</PRE>

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

<P>There will be no password required.

</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>WARNING:&nbsp;&nbsp;</B>If you&#146;re asked for a password, it means you don&#146;t have enough memory to install.<HR></FONT>

</BLOCKQUOTE>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>NOTE:&nbsp;&nbsp;</B>Before you proceed, carefully look through the instructions on the screen. There are a few notes that may apply to your specific computing situation.<HR></FONT>

</BLOCKQUOTE>

<P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="057-061.html">Previous</A></TD>

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

<TD><A HREF="065-067.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 + -