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 04-05-2005, 03:23 AM   #1
SamLinux
LQ Newbie
 
Registered: Apr 2005
Distribution: RedHat 7.2
Posts: 5

Rep: Reputation: 0
MBR and RedHat


Hi,
I am brand new to the Linux world as in I installed the OS yesterday.

OK I have a problem I installed RedHat on my box as a partition of 5GB (not to big because at the moment no need) alongside Windows XP

My version of RedHat is 7.2 (I was told this would make it easier to learn) anyways when I ran the install it asked about a boot loader and not knowing what exactly it is I trusted the defults to lead me in the right direction. This was a bad choice.

It asked me where I wished to install the bootloader and what one I wanted. I selected GRUB and MBR as the install location (to my knowleadge) This seemed to not raise error
However, when I start my box now I get GRUB coming up with the choice to load RedHat but not Windows XP. As it is installed on MBR I never thought about this being an issue till I had to search the net for assistance to no avil.

My question (noting that I run NTFS filesys for XP) how do I boot both OS's now?

I read about editing the boot.ini file but this involves access to windows

Please help thanks,
SamLinux

Last edited by SamLinux; 04-05-2005 at 03:24 AM.
 
Old 04-05-2005, 04:31 AM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
Hi!

Welcome to LQ.org. You'll need to add an entry for Windows on grub. Boot into Linux and edit the file at /boot/grub/grub.conf, adding the following lines:

title=Windows XP
root (hd0,5)
makeactive
chainloader +1


This assumes that your Windows XP is located at /dev/hda6. Grub's config is a bit non-intuitive. The line "root (hd0,5) tells that Windows is on the first disk (hda = hd0) and on the sixth partition (hda6 = hd0,5). Just make the changes to wherever your WinXP is located and keep in mind that grub counts from 0, not 1

Best of luck!
 
Old 04-05-2005, 04:57 AM   #3
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
add a subpart like this in ur grub.conf

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

hd0-primary master
hd0,0 - 1st partition of primary master

regards
 
Old 04-05-2005, 06:32 AM   #4
SamLinux
LQ Newbie
 
Registered: Apr 2005
Distribution: RedHat 7.2
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks so much for the fast reply both of you.

I assumed putting Linux on MBR was like OMG hard disk will die or something. Soon as I went to look for help I found an article and it was in all caps saying do not put linux on the MBR. So thanks for making me feel better again

Bring it on RedHat!

Thanks,
SamLinux

Last edited by SamLinux; 04-05-2005 at 07:54 AM.
 
Old 04-05-2005, 07:02 AM   #5
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
i have never faced a problem in installing Grub/lilo on the MBR

regards
 
Old 04-05-2005, 07:49 AM   #6
ravee
Member
 
Registered: Jan 2005
Location: India
Distribution: Fedora Core 2
Posts: 83

Rep: Reputation: 15
grub is really more powerful than erstvile lilo. And more flexible too.

--
http://linuxhelp.blogspot.com
 
  


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
MBR zeroed. Can I verify backup MBR? TomF Linux - General 7 06-20-2005 05:28 PM
by tring to fix the MBR i damage the MBR that was help... AKAKAK Fedora 4 03-21-2005 08:18 AM
Redhat with damaged MBR/Partition Table pawlub Linux - General 13 12-11-2003 07:51 AM
Win2k RedHat and MBR Chaos581 Linux - Software 4 02-12-2002 08:32 AM
2 HardDisks, 1st RedHat, 2nd Win98/effect on mbr ?? DoubleLetter Linux - Software 13 08-17-2001 11:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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