LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 09-16-2004, 06:50 PM   #1
untwisted
Member
 
Registered: Dec 2003
Distribution: Slackware 10
Posts: 34

Rep: Reputation: 15
Dual booting windows + linux


Hi,

I am having a problem dual booting windows XP pro and linux. It WASN"T a problem when I started (I partitioned, installed winXP, and then linux) everything worked fine at first, but then windows got all buggy and I had to reinstall. After the install grub didn't load, instead my computer would just go straight to Windows. I tried reinstalling GRUB, but then I couldn't boot to windows (somehow grub ruined the windows master boot record) so I ran the windows FIXBOOT thing (it fixed the boot record) and now windows boots, but again no grub!! How do I fix it?! If I reinstall grub like I did before, I'll lose windows again. If I leave things the way they are, I can't use Linux! Grrrrrr!!!!!!!!

Thanks for any help!

-Brian
 
Old 09-16-2004, 06:58 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
When you reinstall grub, can't you set grub too chainload windows? i.e.

Code:
title Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1
Adjusting (hd0,0) to where ever windows is installed.
 
Old 09-17-2004, 03:26 AM   #3
untwisted
Member
 
Registered: Dec 2003
Distribution: Slackware 10
Posts: 34

Original Poster
Rep: Reputation: 15
Thats what I tried, however, I think by reinstalling grub it kills my windows boot record...
 
Old 09-17-2004, 11:46 AM   #4
rjtucke
Member
 
Registered: Sep 2004
Distribution: Debian testing
Posts: 49

Rep: Reputation: 16
AFAIK, killing your windows boot record is not the end of the story. I am more familiar with lilo than grub, but I'm quite certain that it is possible to do this. One thing is certain- back up your important linux files now! That way, if you have to, you can reinstall like fresh and not lose much.

rjtucke
 
Old 09-17-2004, 02:10 PM   #5
untwisted
Member
 
Registered: Dec 2003
Distribution: Slackware 10
Posts: 34

Original Poster
Rep: Reputation: 15
Well, I'm hoping that it doesn't come to this. I know there has to be a way to get this working! It works after I just reinstall linux, so why wouldn't it work when I just install grub? Does anyone know anything about the different ways to install grub? Instead of installing it to the MBR? Or does anyone know how to set the Windows Boot Loader to load Linux as well?

Thanks!
 
Old 09-21-2004, 05:10 PM   #6
xhypno
Member
 
Registered: Sep 2004
Posts: 62

Rep: Reputation: 16
Just search on google for dual booting xp and linux. Find a page that talks about editing the boot.ini (I believe). This will use the win bootloader to boot win, and the entry you add will allow linux to load. Just make sure you put the linux bootloader (lilo or grub) on the linux root partition. I have done this many times, I am at work and don't have the address of had or exactly what you have to add, but it works. I am at work right now, if I can find the address to the site I will post it.

philip
 
Old 09-21-2004, 05:18 PM   #7
xhypno
Member
 
Registered: Sep 2004
Posts: 62

Rep: Reputation: 16
Here is the address of how to do the dual boot, it has work for me many times.

http://www.geocities.com/epark/linux...w2k-HOWTO.html

I have just applied the process to lilo (I hate grub).

hope this helps.
 
Old 09-22-2004, 09:47 AM   #8
untwisted
Member
 
Registered: Dec 2003
Distribution: Slackware 10
Posts: 34

Original Poster
Rep: Reputation: 15
I haven't tried this yet, but I'm guessing it will probably work. Much thanks for your help!
 
Old 09-23-2004, 02:26 PM   #9
michapma
Member
 
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Rep: Reputation: 39
Not sure if this helps you, but my approach is to use the Windows (2k) boot manager. I then install LILO into the root partition (using SUSE for example) and write the boot sector to a *.lin file. I transfer this file to c:\ and then tell boot.ini about it. Then you have a simple but functional Windows boot screen. Mine can choose between Win2k and WinXP on hda and SuSE on hdb.

As long as you can boot to Linux with a floppy or CD, you could rewrite the MBR with Windows, then modify as above. See a more thorough documentation though, of course.

Cheers
Mike

Edit: now why do I get the feeling I just summarized what that linked article advises. LOL

Last edited by michapma; 09-23-2004 at 02:28 PM.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dual booting Linux with Windows XP jimpalla Linux - Newbie 6 01-20-2005 12:00 PM
Dual Booting Linux and Windows Mandarb Linux - Software 3 05-05-2004 10:41 AM
Dual booting Linux and Windows XP windozeman Linux - Newbie 2 03-24-2004 02:10 PM
dual booting linux and windows kevincadogan Linux - Software 3 02-01-2004 01:42 PM
dual booting windows with linux garorag Linux - General 1 01-19-2003 10:17 PM


All times are GMT -5. The time now is 01:19 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration