LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-26-2004, 06:29 AM   #1
midk
LQ Newbie
 
Registered: Jun 2004
Distribution: redhat 9
Posts: 8

Rep: Reputation: 0
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
 
Old 07-26-2004, 06:44 AM   #2
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 37
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"
 
Old 07-26-2004, 07:01 AM   #3
midk
LQ Newbie
 
Registered: Jun 2004
Distribution: redhat 9
Posts: 8

Original Poster
Rep: Reputation: 0
Hi

Thanks for the reply. I guess what I'm asking is, how do I edit it?
 
Old 07-26-2004, 07:12 AM   #4
tushar123
LQ Newbie
 
Registered: Dec 2003
Location: mumbai
Distribution: shivatusahr
Posts: 14

Rep: Reputation: 0
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.
 
Old 07-26-2004, 07:42 AM   #5
MikeZila
Member
 
Registered: Jul 2004
Location: /home/mikezila
Distribution: Slackware
Posts: 377

Rep: Reputation: 30
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.

Last edited by MikeZila; 07-26-2004 at 07:43 AM.
 
Old 07-26-2004, 03:05 PM   #6
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,090

Rep: Reputation: 41
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
 
Old 07-29-2004, 11:08 PM   #7
tushar123
LQ Newbie
 
Registered: Dec 2003
Location: mumbai
Distribution: shivatusahr
Posts: 14

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
lilo.conf editing Daunted Linux - Newbie 6 10-16-2004 10:13 PM
Editing lilo.conf alex101 Mandriva 2 10-15-2003 05:17 AM
No new kernel-option in LILO after editing lilo.conf corwax Debian 3 08-26-2003 08:55 PM
Editing lilo.conf & fstab moebush Linux - General 2 07-04-2003 04:49 PM
editing lilo.conf... SOMEONE PLEASE RESPOND! I AM DESPERATE!!!!! Colonel Panic Linux - Newbie 13 07-26-2001 02:20 PM


All times are GMT -5. The time now is 09:39 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration