LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-15-2004, 05:05 PM   #1
LQ Newbie
Registered: Jun 2003
Distribution: Mandrake 10, kernel 2.6.6
Posts: 11

Rep: Reputation: 0
How to fix LILO?

I have Mandrake 10, recently I was playing with KDE 3.2.2 configuration and I messed up my LILO. Since I dual-boot, it only displays "LILO 22.8.5 loading windows" and boots into windows xp. I tried booting the Mandrake CD and going into "rescue" mode but fixing the boot loader doesn't do anything. I should mention taht I only had 'windows" and "linux" in the boot menu. Any way to make it work again? I know I should probably edit /etc/lilo.conf and run /sbin/lilo but how do I boot linux first?
Old 05-15-2004, 05:13 PM   #2
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
Do you have a linux boot disk? If not, get one (

Boot using the disk, then create a directory ('mkdir my_root_dir'), mount your linux root partition on it ('mount -t ext3 /dev/hda1 my_root_dir', if your / partition is on /dev/hda1 and it's ext3 formatted), chroot to the mount point ('chroot my_root_dir'), and from there you can edit lilo.conf and re-run /sbin/lilo.

Old 05-15-2004, 07:44 PM   #3
Registered: Aug 2002
Posts: 13,455

Rep: Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106
You can use Mandrake's rescue mode the same way. Just select to mount the partitions and go to console mode.
Old 05-15-2004, 09:13 PM   #4
LQ Newbie
Registered: Jun 2003
Distribution: Mandrake 10, kernel 2.6.6
Posts: 11

Original Poster
Rep: Reputation: 0
thanks to both of you guys, fixed it


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
how do i fix lilo when i get a LIL- while booting saqres Linux - General 6 10-07-2004 04:34 PM
Lilo just broke, how do i fix with a live distro? e1000 General 1 08-01-2004 08:50 PM
2 distro installed. need lilo to fix boot freeindy Linux - General 3 06-26-2004 07:11 AM
can I fix lilo with slax live cd? walterbyrd Slackware - Installation 1 04-01-2004 12:44 PM
mdk rescue won't fix lilo dittohead Linux - General 13 07-09-2003 07:18 PM

All times are GMT -5. The time now is 11:23 PM.

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