LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. (http://www.linuxquestions.org/questions/debian-26/switching-from-grub-to-lilo-messed-up-lilo-conf-rescuing-via-knoppix-355474/)

SonicGT 08-21-2005 08:46 AM

Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix.
 
Well, I decided to change from Grub to Lilo. However, that might of not been such a good idea, for I couldn't find a good model for my lilo.conf and thus screwed it up. Now I can't get to Debian because of it. However, I have a Knoppix Live Cd handy and am trying to use it to remodify lilo.conf to get it right. How would I go on doing this, and would be a right lilo.conf for Debian if hda1 is / and hda3 is /home?

rbochan 08-21-2005 11:30 AM

Be sure to have "boot=/dev/hda" in the main config of lilo.conf, it should already be like that if you've installed lilo.
A typical lilo boot stanza would look like this (without the comments of the default file):
Code:

image=/path/to/kernel
        label=Linux
        root=/dev/hda1
        initrd=/path/to/initrd/if/applicable
        read-only

Info on using knopppix for rescue:
clicky clicky

HTH

SonicGT 08-21-2005 01:15 PM

Yay, I was able to get back to Debian! It seems that the problem was me forgetting about my initrd. Thanks.


All times are GMT -5. The time now is 05:18 PM.