- # boot from the Knoppix cd and open a terminal window
- # specify on which partition your crippled /etc/lilo.conf can be found, and mount it:
export PARTIT=/hda7
sudo mount /dev/$PARTIT /mnt/$PARTIT
- # copy the crippled file to a writeable location:
sudo cp /mnt/$PARTIT/etc/lilo.conf ~/
- # edit the erroneous lilo.conf to fix the problem:
sudo joe ~/lilo.conf
- # make sure to replace each occurrence of `=/boot` by `=/mnt/hda7/boot` (given that your unix operating system is stored on /dev/hda7)
- # execute lilo:
sudo ln -sf /mnt/$PARTIT/boot/ /
sudo lilo -C ~/lilo.conf
- # reboot the machine without the Knoppix cd
sudo shutdown -r now
- # remember to repair the lilo.conf again once your machine boots again...