- # boot from your Knoppix cd, and make sure you become root:
sudo su - - # assume you will install the Knoppix cd on /dev/hda3 (make sure it is large enough, say 800 megabyte, to hold at least the Knoppix iso image and the filesystem's management data). Propagate this preference:
export PARTIT=/dev/hda3 - # export a few preferences:
export TARGET=/target; export BOOT=$TARGET/boot; export LILO=$BOOT/lilo.conf - # create a filesystem on that partition:
mkfs.ext3 $PARTIT - # create a mount point $TARGET for that new partition and mount it:
mkdir $TARGET; mount -t auto $PARTIT $TARGET - # copy the Knoppix cd to hard disk (this may take a while):
time cp -a /cdrom/* $TARGET - # mount the Knoppix image's boot floppy:
mkdir /floppy; mount -t vfat -o loop /cdrom/KNOPPIX/boot.img /floppy/ - # prepare the hard disk image's boot directory:
mkdir $BOOT; cp /boot/System.map $BOOT/; cp /floppy/* $BOOT/ - # unmount the floppy:
umount /floppy - # determine which root device you are currently using:
export THISROOT=`grep root= /etc/lilo.conf|head -1|cut -d= -f2-`; echo your root partition is :$THISROOT: - # generate a lilo.conf which is configured automagically:
genliloconf /dev/hda $THISROOT "" $BOOT/vmlinuz > $LILO - # add a mysterious line to this newly generated lilo.conf file:
echo image=/boot/vmlinuz append=\"lang=us noprompt dma ramdisk_size=100000 init=/etc/init initrd=miniroot.gz __BOOT_IMAGE=knoppix\" root=$PARTIT read-only initrd=/boot/miniroot.gz label="KnoppixCd" >> $LILO - # overlink the cdrom's /boot:
ln -sf $BOOT / - # execute lilo on this new lilo.conf:
lilo -C /boot/lilo.conf - # you may wish to add the line specifying the mount point of the newly installed Knoppix cd to the /etc/fstab of your other unix installations:
echo $THISROOT $TARGET auto defaults 0 0 - # you can now reboot your machine an select 'KnoppixCd' from your lilo menu