Debian Low Ram Install Howto

By Jens Scheidtmann mailto:JensScheidtmann@web.de
See also: AptHelp

How to install DebianLinux in 4MB of RAM

Version 0.1

Prerequisites:

Outline of the Process:

  1. First you will use your normal computer and prepare a tarball of the Debian base system.
  2. Then you will boot the notebook with boot/root disks, partition its hard disks and transfer the prepared tarball to it.
  3. Make it bootable from the notebooks HD.
  4. Start using Debian on your notebook.

    [Note: Before following the process described here, you can try to install Debian from the installation disk set. Make sure that you replace the kernel on the boot disk with a kernel which does not consume so much memory. I don't know exactly where I ran into problems (because I did this install described in here a while ago), but I tried hard and fell back on the approach described in this howto, so good look and please tell me if you get it working.]

Phase I: Prepare the Tarball

  1. Boot into smalllinux on your Notebook.
  2. Look at your notebook and find out how big the HD is using fdisk. Decide how many space you will reserve for swapping and how many space is left for the linux partition. Use plenty of swap space! Mine is 35 MB. You should make it at least 20 MB big, because this partition will first contain a copy of the tarball we prepared on the normal computer. So partition the disk according to your choices. Format BOTH partitions as ext2.
  3. Create a partition with a comparable size as the final linux partition on your normal computer. The exact size does not matter.
  4. Install the Debian base system into this partion using the install floppies, a CD of your installation CD set or use whatever is your preferred way to install Debian.
  5. Boot into your normal Linux System and mount the partition. Make a nice tarball out of it (as root), while preserving permissions:

    # cd /mnt/point; tar cvpzf /tmp/ball.tar .

Phase II: Transfer the tarball

Once you got the tarball, you can proceed by making a network connection between the two computers.

  1. Take a break.
  2. Connect the two computers with your LapLink Cable.

  3. Make sure the kernel of your normal computer has got the "plip" module available or compiled in.
  4. Edit /etc/hosts and add two lines for your normal computer and your notebook:

    192.168.0.1     father
    192.169.0.2     baby

  5. Fire the connection up on your normal computer:

    # ifconfig plip0 father pointopoint baby up If you are still using a 2.0.X kernel use plip1 instead. You will then have to add a route, too:

    # route add baby dev plip1

  6. Similarly fire the connection up using smalllinux from the notebook. Here you will have to use "plip1", raw IP adresses and add a route. You should now be able to send pings between the two computers.
  7. Mount the supposed swap partition as ext2 and open an ftp connection to your normal computer. Download ball.tar into the swap partition.
  8. Mount the final linux partition and extract the tarball into it:

    # cd /mnt/point/final; tar xvzpf /where/ever/it/is/ball.tar

  9. Unmount the swap partition and do a mkswap with it.

Phase III: Make it bootable

  1. Prepare a bootfloppy for you notebook by dd-ing the small linux kernel onto a floppy disk. Set the correct boot device (the final partition) with rdev:

    # dd if=smalllinux.kernel of=/dev/fd0 # rdev /dev/fd0 /dev/correct.partition

  2. Start the notebook with it and keep your fingers crossed that everything went alright and you don't get a kernel panic.
  3. Copy the kernel to your harddisk, edit lilo.conf and run lilo.
  4. Check wether the notebook starts without problems.

Phase IV: Tips for using Debian

Source: http://lists.debian.org/debian-devel-0107/msg01774.html


CategorySoftware CategoryPublished CategoryLibrary

DebianLowRamInstall (last edited 2003-12-02 00:16:12 by AdamShand)