LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-15-2004, 04:05 PM   #1
2dope
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, 04:13 PM   #2
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 927

Rep: Reputation: 30
Do you have a linux boot disk? If not, get one (http://www.toms.net/rb/).

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.

cool,
Laura
 
Old 05-15-2004, 06:44 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,862

Rep: Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739
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, 08:13 PM   #4
2dope
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
 
  


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


All times are GMT -5. The time now is 06:22 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