old-www/HOWTO/Install-From-ZIP-2.html

256 lines
7.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>Linux Install From PPA-Zip drive mini-HOWTO: Slackware</TITLE>
<LINK HREF="Install-From-ZIP-3.html" REL=next>
<LINK HREF="Install-From-ZIP-1.html" REL=previous>
<LINK HREF="Install-From-ZIP.html#toc2" REL=contents>
</HEAD>
<BODY>
<A HREF="Install-From-ZIP-3.html">Next</A>
<A HREF="Install-From-ZIP-1.html">Previous</A>
<A HREF="Install-From-ZIP.html#toc2">Contents</A>
<HR>
<H2><A NAME="s2">2. Slackware</A></H2>
<P>
<P>
<H2><A NAME="ss2.1">2.1 Making the first zip disk.</A>
</H2>
<P>
<P>1) Attach zip drive to host system, insert blank zip disk
into the drive and boot the system to Linux
<P>2) Login. You probably need to login as root or the user you log in
as will need to be able to write file systems, mount and unmount disks
etc....
<P>3) Install an ext2fs file system on the zip disk.
with the command:
<BLOCKQUOTE><CODE>
<PRE>
/sbin/mke2fs -b 1024 /dev/sda4
</PRE>
</CODE></BLOCKQUOTE>
4) Mount the zip disk with:
<BLOCKQUOTE><CODE>
<PRE>
mount /dev/sda4 /(zip)
</PRE>
</CODE></BLOCKQUOTE>
5) Insert your cdrom into its drive and mount it:
<BLOCKQUOTE><CODE>
<PRE>
mount /dev/hdc /(cdrom)
</PRE>
</CODE></BLOCKQUOTE>
6) Make a directory to install the slakware disk
images in:
<BLOCKQUOTE><CODE>
<PRE>
mkdir /(zip)/slakware
</PRE>
</CODE></BLOCKQUOTE>
7) Make a writable ( non zip disk ) temporary directory on your
main disk to work in. May I suggest:
<BLOCKQUOTE><CODE>
<PRE>
mkdir /root/slakware/(verx.x)
</PRE>
</CODE></BLOCKQUOTE>
8)
<A NAME="In-8"></A> Copy the root disk image to the above named
directory:
<BLOCKQUOTE><CODE>
<PRE>
cp /(cdrom)/rootdsks/text.gz /root/slakware/(verx.x)/
</PRE>
</CODE></BLOCKQUOTE>
9) Change directories to the one the root disk image
was copied to and decompress it with the commands:
<BLOCKQUOTE><CODE>
<PRE>
cd /root/slakware/(verx.x)
gunzip text.gz
</PRE>
</CODE></BLOCKQUOTE>
10) Install a 1.44 meg floppy with a dos or ext2fs file
system on it in its drive and copy the root disk image to
it this time with the dd command:
<BLOCKQUOTE><CODE>
<PRE>
dd if=text of=/dev/fd0
</PRE>
</CODE></BLOCKQUOTE>
11) Mount the 1.44 meg floppy with the command:
<BLOCKQUOTE><CODE>
<PRE>
mount /dev/fd0 /(floppy)
</PRE>
</CODE></BLOCKQUOTE>
12) Copy the root disk image to the zip disk:
<BLOCKQUOTE><CODE>
<PRE>
cp -dpR /(floppy)/* /(zip)/
</PRE>
</CODE></BLOCKQUOTE>
13) In order to ease the install process later we will want
to create a swap file on the zip disk of about 8 megs. with:
<BLOCKQUOTE><CODE>
<PRE>
dd if=/dev/zero of=/(zip)/swap bs=1024 count=8208
</PRE>
</CODE></BLOCKQUOTE>
14) Initialize the swap file with:
<BLOCKQUOTE><CODE>
<PRE>
/sbin/mkswap /(zip)/swap 8208
</PRE>
</CODE></BLOCKQUOTE>
15) Next with your favorite text editor you will need to edit the
file <B>/(zip)/etc/rc</B> and after the line <B>/bin/mount
-av -t nonfs</B> insert a new line
<BLOCKQUOTE><CODE>
<PRE>
/sbin/swapon /swap
</PRE>
</CODE></BLOCKQUOTE>
16) Copy the disk images to the zip disk:
<BLOCKQUOTE><CODE>
<PRE>
cp -r /(cdrom)/slakware/[a-ty]* /(zip)/slakware/ &amp;
</PRE>
</CODE></BLOCKQUOTE>
include the square brackets [a-ty]* exactly as shown above. the &amp; sign
at the end of the line will make this command execute in the
background. It takes about 20 min to complete. Use this time for some
coffee and reading more HOWTO's.
<P>17) External zip drives have two lights--mine are green and yellow;
the internal drives appear to have only one. When my zip disk has
finished receiving information the yellow light goes out and I'm
left with just the green power light. on internal drives the single
"status?" light will go out.
<P>It is now time to prepare the floppy and zip disks for removal from
their drives by unmounting them:
<BLOCKQUOTE><CODE>
<PRE>
cd
umount /dev/fd0
umount /dev/sda4
</PRE>
</CODE></BLOCKQUOTE>
<P>18) Life will be easier later if we check the root disk's file system
before we try to use it with the command:
<BLOCKQUOTE><CODE>
<PRE>
/sbin/e2fsck -f /dev/sda4
</PRE>
</CODE></BLOCKQUOTE>
<P>When disk activity ends if there are no errors you may remove the zip
disk from the drive and label it Slackware Root disk. I also include
the version number in pencil.
<P>
<H2><A NAME="ss2.2">2.2 Making the second zip disk.</A>
</H2>
<P>If the X window system is to be installed or you will be needing one
of the other prebuilt kernels it is now time to build the 2nd. zip
disk.
<P>
<P>x1) Insert disk 2 in the zip drive. I like to write an ext2fs file
system on this disk also, but if it has a M$ Dos file system that
will work also. I use the up arrow key on my keyboard to recall
previously used commands from my history file because I'm a bit lazy,
but if you want to retype the command repeat instructions 3), 4), and
6) above.
<P>x2) Copy the X11R6 "X Window" packages to zip
<BLOCKQUOTE><CODE>
<PRE>
cp -r /(cdrom)/slakware/x* /(zip)/slakware/ &amp;
</PRE>
</CODE></BLOCKQUOTE>
again in the background. This will take about 1/2 as long as step 9)
did. If your system was slow then it will be again. More coffee and
HOWTO reading.
<P>
<P>x3) There is also room on this disk for the custom kernels directory.
It is classy to install one that meets the system's needs as closely
as possible to go with the one needed to access the zip drive. Make
this kernel the system default. So now we will make a directory for
that and then copy the information to it:
<BLOCKQUOTE><CODE>
<PRE>
mkdir /(zip)/kernels
cp -r /(cdrom)/kernels/* /(zip)/kernels/ &amp;
</PRE>
</CODE></BLOCKQUOTE>
This will take another 10 or 15 min. Dispose of the used coffee? Read
more Linux Documentation?
<P>x4) When disk activity is at an end unmount the disk and run fsck on
it:
<BLOCKQUOTE><CODE>
<PRE>
umount /dev/sda4
/sbin/e2fsck -f /dev/sda4
</PRE>
</CODE></BLOCKQUOTE>
x5) When e2fsck is done with the disk and the command prompt returns
to the screen eject the disk and label it.
<P>
<H2><A NAME="boot"></A> <A NAME="ss2.3">2.3 Making the boot floppy.</A>
</H2>
<P>
b1) I now make a 1.44 meg boot disk. Use the
<B>/(cdrom)/bootdsks.144/iomega.s</B> image. Install a new 1.44 meg
floppy disk in the proper drive. The command to make the disk is:
<BLOCKQUOTE><CODE>
<PRE>
dd if=/(cdrom)/bootdsks.144/iomega.s of=/dev/fd0
</PRE>
</CODE></BLOCKQUOTE>
<P>b2) Check the file systems of the boot disk:
<BLOCKQUOTE><CODE>
<PRE>
/sbin/e2fsck -f /dev/fd0
</PRE>
</CODE></BLOCKQUOTE>
When disk activity ends if there are no errors you may remove all your
disks, write protect your boot floppy and label it including version
number.
<P>
<P>
<HR>
<A HREF="Install-From-ZIP-3.html">Next</A>
<A HREF="Install-From-ZIP-1.html">Previous</A>
<A HREF="Install-From-ZIP.html#toc2">Contents</A>
</BODY>
</HTML>