LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Editing Lilo.conf? Mandrake 10 won't boot (https://www.linuxquestions.org/questions/linux-newbie-8/editing-lilo-conf-mandrake-10-wont-boot-209751/)

midk 07-26-2004 06:29 AM

Editing Lilo.conf? Mandrake 10 won't boot
 
Hey all,

I just gave /home a new 19gb partition (which is hda5) and left / to the old 7.1gb partition (was hda5, now hda6). Now linux won't boot because it's trying to boot from /dev/hda5. I need to somehow configure it so it will try to boot from /dev/hda6 instead. I get the Lilo menu, "windows", "linux", "263-7" and "failsafe" and everything works the same except for windows which brings me to windows just fine - but my windows installation isn't very stable - i need to re-install it - but it's enough to let me browse the web.

Any help is *greatly* appreciated!
midk

mdg 07-26-2004 06:44 AM

It's always a good idea to post your lilo.conf file - makes solving the problem a lot easier.

Make sure the line "root=/dev/whatever" in your default section is pointing to your root partition. From your information, it looks like it should say "root=/dev/hda6"

midk 07-26-2004 07:01 AM

Hi
 
Thanks for the reply. I guess what I'm asking is, how do I edit it?

tushar123 07-26-2004 07:12 AM

check the
following lines in lilo.conf

other=/dev/hda1
label=dos
the other variable should be assigned with the partition that contains the windows. and it shuld be active.
check it using fdisk /dev/hda.

MikeZila 07-26-2004 07:42 AM

Re: Hi
 
Quote:

Originally posted by midk
Thanks for the reply. I guess what I'm asking is, how do I edit it?
The lilo.conf file can be edited with any text editor. Try "joe *filename*", "pico *filename*", or "vi *filename*. Make sure you run "/sbin/lilo" after you edit, or the changes won't take effect.

trey85stang 07-26-2004 03:05 PM

if you cant boot into mandrake.. get a bootable linux cd DSL knoppix etc...

Boot to cd, either of the above should automatically mount the drives somewhere in /mnt/hd browes to you file and edit it with the above comments... then run lilo,

lilo -C /mnt/path/to/lilo.conf

tushar123 07-29-2004 11:08 PM

vi editor is liitle bit difficult to handle
u use pico for the same it like ur dos editor


All times are GMT -5. The time now is 12:58 AM.