home *** CD-ROM | disk | FTP | other *** search
/ BURKS 2 / BURKS_AUG97.ISO / BURKS / LINUX / HOWTO / mini / zipinst.txt < prev   
Text File  |  1997-07-07  |  12KB  |  308 lines

  1. Putting Linux on ZIP disk using ppa ZIP Drive Mini-Howto      
  2. v0.2, December 5, 1996                       
  3. by John Wiggins <jwiggins@comp.uark.edu>             
  4.  
  5. Slackware 2.2 section courtesy of
  6. Michael Littlejohn <mike@mesa7.mesa.colorado.edu>
  7.  
  8. [------- Index -------]
  9.  
  10.      0. Disclaimer
  11.  
  12.      1. Introduction
  13.         1.1. Conventions
  14.         1.2. Updates
  15.         1.3. Related documents
  16.  
  17.      2. Setting up the ZIP disk (Common for both distributions.)
  18.         2.1. Partitioning ZIP disk
  19.         2.2. Formating and mounting ZIP disk
  20.         2.3. Creating the boot disk
  21.              2.3.1. Configuring and making the kernel
  22.              2.3.2. Getting the kernel to a floppy
  23.              2.3.3. Setting the root and swap devices on the boot floppy
  24.  
  25.      3. RedHat 4.0.1 installation
  26.         3.1. Personal setup
  27.         3.2. Package installation
  28.              3.2.1. What packages to get
  29.              3.2.2. How to install the packages with rpm
  30.         3.3. Problems after installation of packages
  31.              3.3.1. /etc/ld.so.cache
  32.              3.3.2. pamconfig
  33.              3.3.3. Setting things back
  34.  
  35.      4. Slackware 2.2 installation
  36.         4.1. Requirements
  37.         4.2. Installation
  38.         4.3. What to install
  39.  
  40.      5. Modifying /etc/fstab (Common for both distributions.)
  41.  
  42. -----------------------------------
  43.  
  44. 0. Disclaimer
  45.  
  46.       This document is only useful for those with the printer port
  47.       version of a ZIP drive who wish to have either a portable or
  48.       backup Linux system on a ZIP disk.
  49.  
  50.       This document assumes the following:
  51.          * You already have Linux installed and running; this document is
  52.            not for a first time install of Linux.  
  53.          * You have ppa support in your current kernel or if module, the ppa
  54.            module has been loaded.
  55.          * The mount point for the ZIP disk is the /iomega directory.
  56.  
  57. 1. Introduction
  58.  
  59.        This document is divided into three sections each describing how to
  60.        install a Linux system on a 100MB ZIP disk using a ppa ZIP drive.
  61.        The first section describes how to set up the ZIP disk and is common
  62.        to both distribution installations.  The second and third sections
  63.        describe how to install RedHat 4.0.1 and Slackware 2.2 distributions,
  64.        respectively, onto the ZIP disk.
  65.  
  66. 1.1. Conventions
  67.  
  68.        ==> Indicates the following text are commands.
  69.  
  70. 1.2. Updates
  71.  
  72.        For any updates, please check: 
  73.        http://comp.uark.edu/~jwiggins/linuxZIP/
  74.  
  75. 1.3. Related documents
  76.  
  77.          * Installation-HOWTO
  78.          * SCSI-HOWTO
  79.          * ZIP-Drive (mini-HOWTO)
  80.  
  81. 2. Setting up the ZIP disk (Common for both distributions.)
  82.  
  83. 2.1. Partitioning ZIP disk
  84.  
  85.        First, I ran fdisk:
  86.          ==> fdisk /dev/sda
  87.        Here is a snap of the partition table I have setup:
  88.  
  89.         Disk /dev/sda: 64 heads, 32 sectors, 96 cylinders
  90.         Units = cylinders of 2048 * 512 bytes
  91.  
  92.            Device Boot   Begin    Start      End   Blocks   Id  System
  93.         /dev/sda1            1        1       81    82928   83  Linux native
  94.         /dev/sda2           82       82       96    15360   82  Linux swap
  95.  
  96.        I decided to use a swap partition since I wanted to be able to use
  97.        this with any machine.
  98.  
  99. 2.2. Formating and mounting the ZIP disk
  100.  
  101.        After running fdisk, format the new partition:
  102.          ==> mke2fs -c /dev/sda1
  103.        Then, create the swap partition:
  104.          ==> mkswap -c 15360 /dev/sda2
  105.        Last, you'll need to mount the ZIP disk:
  106.          ==> mount /dev/sda1 /iomega -t ext2
  107.  
  108. 2.3. Creating the boot disk
  109.  
  110.        Since the ppa version of the ZIP drive isn't a true SCSI device, it
  111.        isn't a bootable device and, therefore, requires a boot disk.
  112.  
  113. 2.3.1. Configuring and making the kernel
  114.  
  115.        First, you'll need to configure and make a kernel that has ppa 
  116.        support enabled and not as a loadable module.  In order to get
  117.        to the ppa option, select SCSI support:
  118.          SCSI support (CONFIG_SCSI) [Y/m/n/?]
  119.        Plus, SCSI disk support:
  120.          SCSI disk support (CONFIG_BLK_DEV_SD) [Y/m/n/?]
  121.        And finally, under the SCSI low-level drivers, is the ppa support:
  122.          IOMEGA Parallel Port ZIP drive SCSI support (CONFIG_SCSI_PPA) [Y/m/n/?]
  123.        Again, be sure not to include ppa as a module, but rather in the kernel.
  124.        Thus far, the ppa driver will not allow the passive port of the ZIP
  125.        drive to be used for a printer, so you may want to say no to
  126.        parallel printer support:
  127.          Parallel printer support (CONFIG_PRINTER) [N/y/m/?]
  128.        NOTE: For more information concerning the ppa driver, please refer
  129.        to the ZIP-Drive mini-HOWTO.
  130.        Once the kernel is configured, make the kernel:
  131.          ==> make dep;make clean;make zImage
  132.        The new kernel should be found in arch/i386/boot/zImage.
  133.  
  134. 2.3.2. Getting the kernel to a floppy
  135.  
  136.        Copy the newly made kernel to a floppy disk:
  137.          ==> cp arch/i386/boot/zImage /dev/fd0
  138.        or
  139.          ==> cat arch/i386/boot/zImage > /dev/fd0
  140.        Yes, there are many ways to copy the kernel to a floppy, but the
  141.        last way, my favorite, is a little more encryptic.  Try not to
  142.        forget the > unless you like viewing binary files :)
  143.  
  144. 2.3.3. Setting the root and swap devices on the boot floppy
  145.  
  146.        Once the kernel is on the floppy, you need to set the root device to
  147.        the ZIP disk:
  148.          ==> rdev /dev/fd0 /dev/sda1
  149.        I'm not sure if the next option is needed, but I did it none the less.
  150.        To set the swap:
  151.          ==> rdev -s /dev/fd0 /dev/sda2
  152.  
  153. 3. RedHat 4.0.1 installation
  154.  
  155. 3.1. Personal setup
  156.  
  157.        For my installation, I have and used:
  158.          * kernel 2.0.25
  159.          * Iomega ppa disk drive
  160.          * RedHat 4.0.1
  161.  
  162. 3.2. Package installation
  163.  
  164. 3.2.1. What packages to get
  165.  
  166.        I found what packages to install by browsing a file I had found on
  167.        one of RedHat's mirrors.  This file can be found on any mirror at
  168.        redhat/redhat-4.0/i386/RedHat/base/comps
  169.  
  170.        Here's a listing of what packages I installed:
  171.          pamconfig-0.50-5               setup-1.5-1
  172.          MAKEDEV-2.2-5                  filesystem-1.2-1
  173.          etcskel-1.1-1                  adduser-1.2-1
  174.          cpio-2.4.2-3                   dev-2.3-1
  175.          rootfiles-1.3-1                redhat-release-4.0-1
  176.          libc-5.3.12-8                  ld.so-1.7.14-4
  177.          zlib-1.0.4-1                   gdbm-1.7.3-8
  178.          ncurses-1.9.9e-2               modules-2.0.0-4
  179.          kbd-0.91-8                     db-1.85-10
  180.          termcap-9.12.6-5               slang-0.99.33-1
  181.          statserial-1.1-7               mailcap-1.0-3
  182.          libtermcap-2.0.8-2             readline-2.0-10
  183.          libgr-2.0.9-4                  libg++-2.7.1.4-4
  184.          libelf-0.5.2-4                 tmpwatch-1.1-1
  185.          newt-0.6-1                     cracklib-dicts-2.5-1
  186.          pam-0.50-17                    crontabs-1.3-1
  187.          less-321-3                     zip-2.1-1
  188.          tar-1.11.8-8                   unzip-5.12-5
  189.          ed-0.2-5                       gzip-1.2.4-5
  190.          grep-2.0-4                     bash-1.14.7-1
  191.          mingetty-0.9.4-1               initscripts-2.73-1
  192.          rpm-2.2.5-1                    zoneinfo-96i-3
  193.          util-linux-2.5-26              losetup-2.5l-1
  194.          info-3.7-5                     e2fsprogs-1.04-8
  195.          diffutils-2.7-5                hdparm-3.1-1
  196.          sed-2.05-6                     SysVinit-2.64-2
  197.          quota-1.51-3                   which-1.0-5
  198.          vixie-cron-3.0.1-9             mount-2.5l-1
  199.          textutils-1.19-2               passwd-0.50-2
  200.          gawk-3.0.0-5                   sysklogd-1.3-9
  201.          file-3.20-3                    groff-1.10-6
  202.          vim-4.2-5                      fileutils-3.13-2
  203.          bdflush-1.5-5                  ncompress-4.2.4-6
  204.          at-2.9b-2                      ash-0.2-5
  205.          fwhois-1.00-5                  procps-1.01-7
  206.          psmisc-11-4                    sh-utils-1.12-9
  207.          procinfo-0.9-1                 stat-1.5-5
  208.          time-1.7-1                     gdb-4.16-5
  209.          kbdconfig-1.3-1                findutils-4.1-9
  210.          timeconfig-1.4-1