LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-01-2004, 02:33 PM   #1
josunik
LQ Newbie
 
Registered: Sep 2004
Location: Costa Rica
Distribution: mandrake 9,2
Posts: 2

Rep: Reputation: 0
can't boot from LILO after win xp installation


Hi there

I was working with win me and mandrake 9,2 just fine, one day my win me was so buggy that I tried to install win xp in my pc, now LILO stop working and win took control of my pc, can't acces linux anymore using LILO.

do I have to reinstall linux everytime I reinstall windows or there is another way to recover LILO? I have the rescue disk for my linux but either way is damage or I am doing something wrong. please help

you guys now that once in a while everyone has to reinstall windows....

love linux....
 
Old 09-01-2004, 02:42 PM   #2
cuzality
LQ Newbie
 
Registered: Sep 2004
Location: Chester, VA
Distribution: Mandrake
Posts: 6

Rep: Reputation: 0
Yes, Windows takes over the boot loader and does not recognize any other OS you already installed on the PC. You normally have to install Windows first and then install Linux -- lilo or grub will then recognize the Windows installation and configure themselves automatically to give the choice of which OS to boot to.
 
Old 09-01-2004, 02:48 PM   #3
Linux24
Member
 
Registered: Aug 2004
Distribution: Mandrake 10.1
Posts: 204

Rep: Reputation: 30
Re: can't boot from LILO after win xp installation

Quote:
Originally posted by josunik
Hi there

I was working with win me and mandrake 9,2 just fine, one day my win me was so buggy that I tried to install win xp in my pc, now LILO stop working and win took control of my pc, can't acces linux anymore using LILO.

do I have to reinstall linux everytime I reinstall windows or there is another way to recover LILO? I have the rescue disk for my linux but either way is damage or I am doing something wrong. please help

you guys now that once in a while everyone has to reinstall windows....

love linux....
You can recover Lilo by one of several methods:

Method 1

1. Pull out the recovery floppy or CD that you made after you installed Linux. You did make this, right?
2. Set your BIOS to boot from your CD/DVD/Floppy
3. Stick the disk in the drive as appropriate
4. Boot
5. Mount the filesystem (usually there is an option for doing this)

Now that your filesystem is "mounted", you can get confused because you have two filesystems. You have the one in RAM which is running from /, and the actual hard drive filesystem which is running from /mnt/whatever, so when you run commands and edit filesystem stuff, make sure you are in the mounted one on the hdd.

6. CD to /mnt/linuxonhdd/etc/
7. su
8. password
9. pwd to make sure you are still in mounted etc directory
10. lilo -v

You should be done.

11. Pull out floppy and reboot and see if that doesn't fix your problem.

Method 2

1. Put installation CD in CD drive
2. Set BIOS to boot from CD
3. Boot
4. Follow options as above to "rescue" your system and do as above to run lilo again which will make it take over the master boot record.


Method 3

1. Look in mirror with vacant expression and ask yourself, "What the hell was I thinking putting M$ crud on my hard drive?!?
2. Beat forehead against wall gently.
3. Curl up in a ball and feel appropriate shame.
4. Cry

Good luck!
 
Old 09-01-2004, 02:49 PM   #4
josunik
LQ Newbie
 
Registered: Sep 2004
Location: Costa Rica
Distribution: mandrake 9,2
Posts: 2

Original Poster
Rep: Reputation: 0
so the answer would be that i have to install again linux everytime I install windows?.....because I have never had to reinstall linux....I have to reinstall windows once in a while
 
Old 09-01-2004, 02:55 PM   #5
Linux24
Member
 
Registered: Aug 2004
Distribution: Mandrake 10.1
Posts: 204

Rep: Reputation: 30
Quote:
Originally posted by josunik
so the answer would be that i have to install again linux everytime I install windows?.....because I have never had to reinstall linux....I have to reinstall windows once in a while
No. You have to boot from a rescue disk and run the lilo program again to write to your master boot record a new boot manager, that's all. Just run lilo, not the installation itself.
 
  


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
Rebooting mdk 9.2 (win 98 dual boot) after win hd fails jnt Mandriva 3 04-05-2004 06:57 PM
dual boot linux, need to setup "another" lilo during installation? sirpelidor Linux - Newbie 3 02-04-2004 11:10 PM
Lilo: Dual boot Debian & Win 2000 mudelf Linux - General 3 11-12-2003 02:55 AM
LILO install failing, Boot failing, but Installation fine. sramelyk Slackware 9 08-23-2003 03:37 PM
lilo-2linux+win? mtb Linux - Software 4 03-24-2003 09:22 AM


All times are GMT -5. The time now is 10:15 PM.

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