Here's Mister Ed's handy-dandy 8-step procedure for fixing LILO after booting from CD or another partition - he's had to do it many times!

[1] If you're only booting from CD (or whatever) just to fix LILO, use the cheatcode that puts you in run level 2 (the command line) - that saves you a little frustration while waiting for the GUI to load - so at the CD prompt you'd type knoppix 2.

[2] When you mount hda1 you have to include the option -o dev.

[3] Now use the change-root command to be in the hda1 environment: # chroot /mnt/hda1.

[4] Edit /etc/lilo.conf - just like that, not /mnt/hda1/etc/lilo.conf - and you'll be working on hda1's lilo.conf rather than the one that the CD loaded into RAM.

[5] If you have other bootable Linux partitions, you mount them within the chroot environment, not before - so you can make this step [4] and do editing as step [5], but the other bootable partitions have to be mounted after step [3] and before step [6].

[6] Now run lilo to write the changes to the boot sector.

[7] Leave the chroot environment with # exit or # <CTRL>D.

[8] Reboot with your favorite command, # reboot or # init 6 or # shutdown -r now.

Okay?

-- Ed