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

📄 086-089.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=086-089//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="082-086.html">Previous</A></TD>

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

<TD><A HREF="089-092.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<H4 ALIGN="LEFT"><A NAME="Heading21"></A><FONT COLOR="#000077">Installing from 5.25-Inch Floppy Disks</FONT></H4>

<P>Linux prefers to be installed from a 3.5-inch disk drive. However, it is possible to install on a machine that has only a 5.25-inch drive. This isn&#146;t as easy as installing from a 3.5-inch drive, but if you install off of your hard drive it may actually be easier.

</P>

<P>The first three disks of Slackware Linux, the <I>A</I> disks, should all fit within a 1.2MB diskette. To install them, you&#146;ll need a boot kernel and a rootdisk. To make the boot-kernel disk, copy the boot kernel of your choice to a floppy using the UNIX command <B>dd</B> or <B>RAWRITE.EXE</B>. To make the rootdisk, write <B>color.gz</B>, <B>text.gz</B>, <B>umsdos.gz</B>, or <B>tape.gz</B> to a floppy in the same way. (These are in <B>/ROOTDSKS</B>.)</P>

<P>Use the boot-kernel disk to boot the rootdisk, and then install from there. This will load the ramdisk. Once you have the <I>slackware:</I> prompt you can remove the disk from your machine and continue with the installation.</P>

<P>Once you&#146;ve got the base system installed, you can install the rest of the disks by downloading them on to your hard drive and installing them from there. Disk series other than <I>A</I> won&#146;t fit onto 1.2MB disks.</P>

<H4 ALIGN="LEFT"><A NAME="Heading22"></A><FONT COLOR="#000077">Installing from Tape</FONT></H4>

<P>The <B>TAPE.GZ</B> rootdisk file can be used to install Slackware96 from tape. This has been tested on a Colorado Jumbo 250, but it should work for most floppy tape and SCSI tape drives. To do this, you&#146;ll need to know a little about UNIX and its filesystem.</P>

<P>Any of the boot-kernel disks will work for floppy tape support. If you&#146;re installing from a SCSI drive, make sure you use a boot kernel with SCSI support.</P>

<P>You need to have a blank MS-DOS formatted disk ready to store the install scripts and installation defaults. The installation uses two tape passes&#151;one to read these files from the tape and the second to do the actual installation. Once you&#146;ve written the files from the first tape pass to your floppy, you won&#146;t need to scan those files again if you install from the same tape in the future.</P>

<P>The tape must be written in GNU <B>tar</B> format (or in a compatible block size with some other <B>tar</B>). This is the command that would write out the tape, assuming you&#146;re sitting in a directory set up like <B>/pub/linux/slackware</B> on <A HREF="ftp.cdrom.com">ftp.cdrom.com</A>:</P>

<!-- CODE SNIP //-->

<PRE>

     tar cv &#123;a?,ap?,d?,d1?,e?,f?,k?,n?,t?,tcl?,x?,x1?,xap?,xd?,xv?,y?&#125;/*

</PRE>

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

<P>This ensures that the files are written to the tape in the proper order.

</P>

<P>You must set your TAPE variable first, like these lines in the <B>.profile</B> file under <B>bash</B>:</P>

<!-- CODE SNIP //-->

<PRE>

     TAPE=/dev/nrft0

     export TAPE

</PRE>

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

<P>Unlike installing from floppy disks, you don&#146;t need to install all the <B>*.tgz</B> files, or even all the directories. The only requirement is that <B>base.tgz</B> be the first package (<B>*tgz</B> file) written to the tape.</P>

<P>This method isn&#146;t fully guaranteed to work.</P>

<P><FONT SIZE="+1"><B>Installing When RAM is Very Tight</B></FONT></P>

<P>Installation can be tricky on a machine with 4 megabytes or less of RAM. Here are a few tricks that can be helpful if you run into problems. (Some of the symptoms of low memory might include system hangs while booting the bootdisk; root password required on the rootdisk; and an inability to run <B>fdisk</B> or <B>mkswap</B>.)</P>

<P>It&#146;s still possible to install Linux in this situation by avoiding the use of a ramdisk during installation. Normally the entire rootdisk image is loaded into memory before installation begins; this uses 1440K of RAM, a sizable chunk on a machine with only 4096K (and probably less available) in the first place. To save this memory for Linux, you&#146;ll need to prepare a decompressed rootdisk and use it to install.</P>

<P>First, you&#146;ll want to prepare a directory for the various files you&#146;ll need to decompress the rootdisk image and write it to a floppy. Under DOS, create a directory with the <B>MKDIR</B> command. The name of the directory doesn&#146;t matter; in the following examples we&#146;ve arbitrarily chosen <B>SLACK</B> as the name of the directory:</P>

<!-- CODE SNIP //-->

<PRE>

     C:&gt; MKDIR SLACK

</PRE>

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

<P>You&#146;ll then want to copy the appropriate files from the CD-ROM to the <B>SLACK</B> directory. We&#146;ll start with <B>GZIP.EXE</B> (needed to decompress the image file) and <B>RAWRITE.EXE</B> (needed to write the decompressed image to floppy disk). In the following example, we assume the CD-ROM drive is represented by the drive letter <B>E:</B>. If your drive uses a different letter, use that instead.</P>

<!-- CODE SNIP //-->

<PRE>

     C:&gt; COPY E:\INSTALL\GZIP.EXE C:\SLACK

     C:&gt; COPY E:\INSTALL\RAWRITE.EXE C:\SLACK

</PRE>

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

<P>Next, select an appropriate rootdisk image from the <B>E:\ROOTDSKS</B> directory on the CD-ROM and copy it to the <B>C:\SLACK</B> directory. In this example we&#146;ll use the <B>COLOR.GZ</B> image:</P>

<!-- CODE SNIP //-->

<PRE>

     C:&gt; COPY E:\ROOTDSKS\COLOR.GZ C:\SLACK

</PRE>

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

<P>Now we need to use <B>GZIP.EXE</B> to decompress the image. Execute these commands to change into the <B>SLACK</B> directory and decompress the rootdisk image:</P>

<!-- CODE SNIP //-->

<PRE>

     C:&gt; CD \SLACK

     C:\SLACK&gt; GZIP -D COLOR.GZ

</PRE>

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

<P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="082-086.html">Previous</A></TD>

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

<TD><A HREF="089-092.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 + -