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 09-07-2001, 11:00 AM   #1
pZyteX
LQ Newbie
 
Registered: Sep 2001
Distribution: mandrake
Posts: 2

Rep: Reputation: 0
can't get back into linux after winxp install


I installed windows xp after formating my original windows partition but now winxp always boots automaticly I don't even get to see lilo so now I can't get back into my linux partition which is hda3
please help
 
Old 09-07-2001, 11:31 AM   #2
thetruevoice
Member
 
Registered: Feb 2001
Posts: 51

Rep: Reputation: 15
I may be wrong but....

Windows writes to the MBR when installing and I'm sure wiped out the info lilo put in there. (which is why i always install win then linux.)

How to fix this im not entirely sure, but im guessing you need to boot into linux with a boot disk. and rerun lilo. but you need it to rewrite to the mbr and that i dont know how to do except for in the installation. maybe run and upgrade install? Im sure there's an easier way.

Hope this helped a little at least.
 
Old 09-07-2001, 01:56 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
running lilo DOES rewrite the MBR.

Booting from a rescue disk isn't always that simple. booting from a boot disk for rh71 i can't access my /boot partition, and thus can't get to the klernels and boot maps etc...

Booting from an insatllation disk in rescue mode will mount your system somewhere other than the normal place. it'll usually put it in /mnt/sysimage for excample. to reinstall lilo you will need to copy all relevant files into the pretend /boot directory that linux creates, and then additionally copy the lilo.conf file to /etc and edit the values to point to the correct files. simply running lilo will not do anything other than complain.

Any more help feel free to email. Sorry if this don't make much sense!

Mind you, there's a much easier way to get round your problem. Don't install XP!!!
 
Old 09-07-2001, 03:57 PM   #4
Steave
Member
 
Registered: Jul 2001
Location: Braunschweig, Germany
Distribution: Suse 7.2
Posts: 184

Rep: Reputation: 30
I guess the simplest way is to "just" boot your old linux using some kind of DOS-Tool like loadllin or the alike. Also, in my SuSE, doing a manual install I have the posssibility to boot some partition.
 
Old 09-07-2001, 06:52 PM   #5
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Did you make a boot disk when you installed linux? If you did, use that to boot into linux and rerun /sbin/lilo as root. If you didn't make a boot disk, it might be possible to use the cdrom disk to get back in.
 
Old 09-08-2001, 04:02 AM   #6
pZyteX
LQ Newbie
 
Registered: Sep 2001
Distribution: mandrake
Posts: 2

Original Poster
Rep: Reputation: 0
there is a rescue mode on my cd and i didn't make a boot disc
but i don't know how to use de rescue mode
btw i'm using mandrake
 
Old 09-08-2001, 07:06 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
boto to the cd and type 'rescue' at the pronmpt (or maybe 'linux rescue')

Mandrake should mount your system under /mnt/sysimage or similar. henceforth /m/s !

copy /m/s/etc/lilo.conf to /etc

edit /etc/lilo.conf:

insert /m/s before all occurences of /boot/somefile-such-as-boot.b

run 'lilo -t' to test the configuration, is it geos ok, 'lilo'

then exit and reboot
 
Old 09-08-2001, 07:10 AM   #8
Steave
Member
 
Registered: Jul 2001
Location: Braunschweig, Germany
Distribution: Suse 7.2
Posts: 184

Rep: Reputation: 30
OK, I will try to give you some step by step advice (hope it will work)

1. Boot the rescue system

2. mount your old linux parition:

# mount /dev/hda3 /mnt

if you formmated hda3 in reiserfs you will have to add "-t reiserfs"

3. go to /mnt/sbin/

4. run lilo using your old config file:

# ./lilo -C /mnt/etc/lilo.conf

5. reboot. Now it should work.
 
  


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
Please help me get back into WinXP. I screwed up Grub Boot Loader deived Linux - Newbie 8 10-31-2008 09:23 PM
HELP!! Tried to install linux (YOPER) with winxp and now winxp is unmountable! buffpandabear Linux - Newbie 2 01-13-2005 06:18 PM
How do I Reboot into Linux at night and back to WinXP in the morning? kayhan Linux - General 5 09-16-2004 04:45 PM
WinXP cleared my MBR! How can I get Lilo back? SoSlack Slackware 15 11-24-2003 06:58 AM
Man after 3 days of trying Linux I might have to go back to WinXP jarget Linux - Newbie 19 08-26-2003 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration