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

📄 070-074.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=070-074//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="067-070.html">Previous</A></TD>

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

<TD><A HREF="074-076.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<H4 ALIGN="LEFT"><A NAME="Heading11"></A><FONT COLOR="#000077">Creating the Main Linux Partition</FONT></H4>

<P>Most of you will want to designate the remainder of the hard drive as the Linux partition, so that&#146;s the assumption made in the remainder of this chapter. With <I>Command (m for help):</I> on your screen, select <B>n</B> for new partition. You&#146;ll see the following:</P>

<!-- CODE SNIP //-->

<PRE>

     Command action

        e   extended

        p   primary partition (1-4)

</PRE>

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

<P>Type <B>p</B>, and enter the partition number. If you&#146;ve already installed a DOS or OS/2 partition, you&#146;ll need to select the number <B>2</B>, as partition number 1 is already is use:</P>

<!-- CODE SNIP //-->

<PRE>

     Partition number (1-4): 2

</PRE>

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

<P>If you&#146;ve already installed a swap partition, you&#146;ll need to designate this partition as <B>3</B>.</P>

<P>You&#146;ll then be asked where to place the partition and how large to make it. Generally speaking, you&#146;ll want to place the partition immediately after the previous partition:</P>

<!-- CODE SNIP //-->

<PRE>

     First cylinder (64-1010): 64

</PRE>

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

<P>Your numbers will undoubtedly be different. The point here is that <B>fdisk</B> automatically lists the first unassigned cylinder here (in this case, it was cylinder <I>64</I>), and you should go with that number.</P>

<P>You&#146;ll then be asked how large you want to make the partition:</P>

<!-- CODE SNIP //-->

<PRE>

     Last cylinder or &#43;size or &#43;sizeM or &#43;sizeK (64-1010): 1010

</PRE>

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

<P>Since Linux gives us the number of the last cylinder (<I>1010</I>), we&#146;ll go with that. There are no advantages to creating more than one Linux partition, unless you&#146;re using a <I>very</I> large hard drive (larger than 4 gigabytes).</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>NOTE:&nbsp;&nbsp;</B>This won&#146;t apply to most users, but Linux doesn&#146;t do very well if it&#146;s installed as a boot partition on cylinder 1023 or above. (This occurs with very large hard drives&#151;1 gigabyte or larger.) This has nothing to do with Linux, but rather with the limitations in the PC&#146;s BIOS. Subsequently, you should avoid installing the Linux boot partition on a partition containing this cylinder or higher.<HR></FONT>

</BLOCKQUOTE>

<P>Finally, you&#146;ll want to make sure that this is a Linux boot partition so you can boot from the hard disk in the future via LILO. The <B>t</B> command toggles whether or not you want to use a partition as a boot partition. Type <B>t</B>, and then specify this partition (<B>2</B>) as the partition you want to boot from.</P>

<P><B>Fdisk</B> will then ask for a command. You&#146;ll need to make sure your changes are recorded, so select <B>w</B>, which writes the partition table to disk and then exits <B>fdisk</B>. After this is done, Linux gives you a command prompt (<TT>#</TT>) again. It&#146;s now time to run the <B>setup</B> program.</P>

<P><FONT SIZE="+1"><B>OS/2 Partitions and the Linux Fdisk Command</B></FONT></P>

<P>If you&#146;ve used the OS/2 <B>FDISK</B> command to create your Linux partition, now is the time to change the partition from an OS/2 partition to a Linux partition.</P>

<P>With the Linux <B>fdisk</B> command, you can change the current status of partitions by changing the tag. Using the Linux <B>fdisk</B>, you&#146;ll change the tag of the OS/2 partition to a Linux native partition. In this instance, you&#146;ll need to change the type of the partition. When you created this partition, it was set up as an OS/2 partition. However, Linux needs to know that this is a Linux partition, so you need to change the type with the <B>t</B> command:</P>

<!-- CODE SNIP //-->

<PRE>

     Partition number (1-4): 2

     Hex code (type L to list codes): 83

</PRE>

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

<P>Linux supports a wide range of partition types, as you&#146;d see if you typed <B>L</B>. However, you can take our word for it; <I>83</I> is the proper hex code for a Linux native partition.</P>

<P>Quit <B>fdisk</B> using <B>w</B>, making sure that your changes are written to disk. It will take a few seconds for this to happen.</P>

<H3><A NAME="Heading12"></A><FONT COLOR="#000077">Installing Linux from the Setup Program</FONT></H3>

<P>Now comes the fun part: actually installing Linux. For this, you&#146;ll run the <B>setup</B> command from a command line:</P>

<!-- CODE SNIP //-->

<PRE>

     # setup

</PRE>

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

<P>You&#146;ll then see a menu with the following choices:

</P>

<!-- CODE //-->

<PRE>

     HELP         Read the Slackware Setup Help file

     KEYMAP       Remap your keyboard if you're not using a US one

     MAKE TAGS    Experts may customize tagfiles to preselect files

     ADDSWAP      Set up your swap partition(s)

     TARGET       Set up your target partition

     SOURCE       Select source media

     DISK SETS    Decide which disk sets you wish to install

     INSTALL      Install selected disk sets

     CONFIGURE    Reconfigure your Linux system

     EXIT         Exit Slackware Linux Setup

</PRE>

<!-- END CODE //-->

<P>You should first look through the help file, which is listed first. Some of the steps presented therein may assist you in the Linux installation process.

</P>

<P>To move through the selections in this menu, you use the cursor (arrow) keys or type the first letter in each line (such as <B>H</B> for <I>help</I>).</P>

<P>Basically, the installation from CD-ROM is pretty simple. It follows these steps:</P>

<DL>

<DD><B>&#149;</B>&nbsp;&nbsp;Set up swap space for Linux.

<DD><B>&#149;</B>&nbsp;&nbsp;Tell Linux where you want it to be installed.

<DD><B>&#149;</B>&nbsp;&nbsp;Select the source for the files needed to install Linux (in most. cases, this will be the CD-ROM).

<DD><B>&#149;</B>&nbsp;&nbsp;Select the software you want to install.

<DD><B>&#149;</B>&nbsp;&nbsp;Actually install the software.

<DD><B>&#149;</B>&nbsp;&nbsp;Configure the installed software.

</DL>

<P>Each of these steps will be covered in its own section.

</P>

<BLOCKQUOTE>

<P><FONT SIZE="-1"><HR><B>NOTE:&nbsp;&nbsp;</B>Before you get started on the installation steps, you should know that the Slackware distribution of Linux supports many different keymaps for different languages and setups. If you want access to another language&#151;say, German&#151;or another keyboard layout&#151;such as the Dvorak keyboard&#151;you should select <B>Keymap</B> from the Setup menu.<HR></FONT>

</BLOCKQUOTE>

<H4 ALIGN="LEFT"><A NAME="Heading13"></A><FONT COLOR="#000077">Setting up the Swap Space</FONT></H4>

<P>As you&#146;ve probably guessed by now, a lot of Linux installation involves an actual installation and then additional steps, telling Linux about the installation. This is certainly true if you&#146;ve installed a swap partition. (If you have not, you can skip this step.) You&#146;ve already installed the partition, made it active, and changed its type to a Linux swap partition. You again need to tell Linux about this partition. However, you don&#146;t need to format this partition, as you&#146;ve already done so with the <B>mkswap</B> command.</P><P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="067-070.html">Previous</A></TD>

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

<TD><A HREF="074-076.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 + -