LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-06-2006, 11:21 PM   #1
ImOk
Member
 
Registered: Mar 2006
Posts: 44

Rep: Reputation: 15
Can I install Grub only to boot WinXP?


I plan to install Fedora Core 5 on my laptop which already contains Windows.

I am afraid that during the install something may go wrong and I will not be able to boot into Windows XP if the Fedora install crashes (I've seen it happen on a Desktop PC).

Does the Rescue disk allow for booting into Windows?

If not, is there anyway to boot Windows by installing GRUB only?

Thanks
 
Old 04-07-2006, 12:28 AM   #2
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
If you have a Windows Installation disk (not the same as a rescue disk) you can "fix" the MBR to allow you to boot to Win.

If you install Lilo or Grub in the MBR you can also boot Win. You can fix this with a Linunx live CD like Kanotix, Slax, and many others.

There are other options but this is enough to get around any problem.
 
Old 04-07-2006, 02:09 AM   #3
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
you can always use knoppix or any other rescue/live cd (maybe even the install cds) to boot into linux
and use the command "mbr" to restore the default mbr, this should remove lilo, grub or whatever and windows will boot again.
 
Old 04-07-2006, 10:52 AM   #4
Worksman
Member
 
Registered: Sep 2004
Location: Romania
Distribution: Ubuntu, Debian, Arch Linux, Gentoo, Slackware
Posts: 171
Blog Entries: 1

Rep: Reputation: 31
Windows usualy installs its bootloader in the MBR. Sometimes it happened to me that on a reinstall it would install the bootloader in another primary partition ( in fact that was the reason so now I only use a primary partition setup and the rest in the extended one).
So here is how I did it when I was dual-booting:
Windows was to be installed first onto a primary partition at the begining of the hard drive.
The rest of the hard drive is taken up by the extended partition.
In the extended partition I would have a FAT32 for use by both systems and the rest for use by linux(swap, boot partition, root partition and home partition(optional)).
The linux boot loader was to be installed in the linux boot partition(32MB) in the extended partition and not in the MBR because it would replace the windows boot loader.
You might ask "So what?" but in fact to boot Windows, grub chain loads the windows boot loader, meaning it does a few optional and some required tricks and passes the control to the windows boot loader.
Then the boot partition is made active.
You edit the grub menu with the windows boot partition (the first primary one in my case) and also boot the linux kernel from the linux boot partition(the one with grub ) and tell it the real root partition(the linux root partition in the extended partition).
Then you can easily boot any of the OS's with no fear of ruinning the windows install.
Just my tried and worked, nothing more. :-D
 
Old 04-07-2006, 12:41 PM   #5
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
The answer is YES.

Section C of my second link in my signature describes it.

Grub can be installed in a data-only primary partition without a Linux attached. One can ask Windows to make the data-only partition active and so Windows MBR will boot straight into it.

Grub has a "makeactive" command to turn the original Windows partition back to active again whenever required. Grub can then be used to boot any other MS systems, Linux, BSD, Solaris.....

It is prettty cool as Windows MBR is used to boot Grub. Grub is then used to booot all the rest of the systems. A LiveCD is all that is needed to arrange Grub to do such thing.
 
Old 04-09-2006, 03:42 PM   #6
ImOk
Member
 
Registered: Mar 2006
Posts: 44

Original Poster
Rep: Reputation: 15
This is great information saikee. Thanks.
 
  


Reply



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 boot WinXP/Debian, grub error booting WinXP ChemBot Linux - General 5 02-22-2007 04:13 PM
reinstalling winXP on an existing dual boot system with winXP and FC4 grub not workin champion Fedora - Installation 3 02-13-2006 02:37 PM
Using GRUB to boot WinXP Northy Linux - Newbie 4 09-19-2005 05:12 AM
/boot mysteriously empty, but i can still boot into Linux/WinXP via grub. hypoglycemic Linux - Software 4 07-18-2005 05:42 AM
Winxp won't boot thanx to GRUB DaBlade Linux - Newbie 22 09-14-2004 10:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:04 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
Open Source Consulting | Domain Registration