LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-31-2004, 04:47 AM   #1
Xris718
Member
 
Registered: May 2003
Location: NYC
Distribution: CentOS
Posts: 261

Rep: Reputation: 30
XP and Fedora Core 1 - MBR ?


Hi guys

Heres the thing. I have 2 hard drives. Primary hard drive has XP professional installed. Secondary hard drive has FC1 installed. Both Operating systems where installed independantly meaning their MBR has not been overridden by either operating systems. Right now i can only boot into XP because its primary. On FC1 i have grub installed and I want to use grub as my bootloader. How can i configure it without having to do any reinstallations?

Thanks in advance
 
Old 08-31-2004, 04:49 AM   #2
Baldrick65
Member
 
Registered: Aug 2003
Location: Dunedin NZ
Distribution: Mint 13 Cinnamon
Posts: 653

Rep: Reputation: 31
I don't use GRUB myself, but I believe the command is:
Code:
grub-install /dev/hda
Baldrick
 
Old 08-31-2004, 07:59 AM   #3
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
Yes /sbin/grub-install /dev/hda
(BUT REMEMBER, you have to get to linux first, so use a boot disk to get there, you can use FC1 CD1 and at prompt (where you just pressed enter at install, type: linux rescue. Once in linux rescue command line, use /sbin/grub-install /dev/hda. If this doesn't work, you probably missed the message which said you have to chroot /mnt/sysimage first)

So the proper way is:
FC1 CD1
linux rescue
chroot /mnt/sysimage
/sbin/grub-install /dev/hda
reboot


This will install grub into your MBR of the primary harddisk (hda being hard disk a (a-primary, b-secondary....)).

So now you have GRUB in your primary harddisks MBR. Neat, but not so fast. You loose access to your XP.

To regain access to your XP system, you have to edit the /boot/grub/grub.conf file, with using emacs or some other editor in linux. The contents of the grub.conf file are as shown below:

title Fedora....
root(hd1,0)
kernel ....
initrd .......

What you should add is this:

title Win XP
rootnoverify(hd0,0)
chainloader +1

What you have done is added a line to the grub menu, which is shown to you at boot. I presumed that win XP is installed on c: on the primary harddisk (hd0,0) where hd0 is your primary harddisk and 0 is the primary partition, c:.

Now when you reboot. You should get the grub menu, like before and you will see the lines Fedora and Win XP. Just select the one you want and you will be in the OS you selected. It's as easy as that
 
Old 09-03-2004, 12:33 AM   #4
Xris718
Member
 
Registered: May 2003
Location: NYC
Distribution: CentOS
Posts: 261

Original Poster
Rep: Reputation: 30
thanks alot guys i will try it and see what happens
 
Old 09-03-2004, 02:54 AM   #5
wriggles
LQ Newbie
 
Registered: Jan 2003
Location: UK
Distribution: Redhat 8.0, Fedora Core 1
Posts: 3

Rep: Reputation: 0
OK, Does Windows (any version) always have to be chainloaded from the first partition of the primary HDD?
I have Windows XP on partitions 4 & 5 with the OS that was occupying the primary partition gone awol. I have Fedora Core1 on a secondary HDD, with Redhat 8 on the primary HDD on more of the extended partition. I use Grub as the boot manager.

On startup I can boot any Linux install I have from grub, but Windows will not boot . OK I know that it is not at (HD0,0) - from rootnoverify(hd0, 0) - but if i change this to what it should be - rootnoverify(hd0,4) it will not work.

Since the OS that was in the primary partition is gone (it was windows 98) does this mean that if you want to boot any windows from grub it MUST have an installation in the first partition of the primary?
 
  


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
Problem w/ MBR, GRUB, Fedora Core 2 jmrich Linux - Newbie 4 10-08-2004 03:03 AM
Severe problems with Fedora Core 1 and Fedora Core 2 installatiom TheOneKEA Fedora - Installation 2 07-14-2004 02:12 PM
Upgrading via Internet Fedora Core 1 to Fedora Core 2 cdean Linux - Newbie 2 05-30-2004 11:14 PM
Fedora Core 2 - Just days away! Final comments on Fedora Core 1 lrt2003 Fedora 3 05-12-2004 02:09 AM
Will Fedora Core 1 RPMs still be compatable with Fedora Core 2? yarjar Linux - Software 1 05-02-2004 01:02 AM

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

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