Problem in dual booting of XP and RedHat 7.2.

 I attempted to dual boot my computer into XP and RedHAT 7.2.  When I partition my hard drive, I choose the RedHAT to be on another primary partition and another logical partition for the swap files.  I used PartitionMagic to do the job.  When I apply the changes and my computer rebooted it started to partition it.  When it was finished, it rebooted again.  And an error message saying "Error loading OS," I already have XP on my computer by the way.  I thought I had to install the Linux, so I inserted the cd for installation.  The installation was smooth.  Then I rebooted my computer.  The XP wont boot only the Linux.  I forgot to add Linux in my XPs boot manager.  They say the MBR of the hard drive for XP was overwritten by Linux.  Is that true?  How can I make my XP boot again without reformatting it?  
Sis478Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GnsCommented:
Make sure you have a working linux bootfloppy (or create one with mkbootfloppy).

Boot into "Recovery Console" from the XP install media, run
fixmbr
to overwrite the MBR with a windows XP one.
If that didn't help, try running
fixboot
to adjust ntloaders boot.ini (You perhaps made it so that XP no longer is the first partition?).

When you can boot XP again, boot linux and adjust your bootloader so that it will write its bootrecord to a partition boot record, the use bootpart (http://www.winimage.com/bootpart.htm) to add this to your winXP boot.ini (it'll read the partition boot record into a file, and add an entry for that file to boot.ini).
For LILO, adjust the file /etc/lilo.conf, so that the
boot=/dev/hda
line (that's an example where your MBR is on your Primary IDE master) instead reads
boot=/dev/hda3
(that would correspond to the third primary partition of your primary IDE master drive).
Then run
/sbin/lilo
logged on as root, so that it gets written to disk.
To do the same for grub, just run
grub-install /dev/hda3
Adjust for what you actually have. If you need help deciding what this should be (what the partition "name" is), paste the verbatim output from
fdisk -l
for each drive you have here.

-- Glenn
0
rafamvcCommented:
IF u want to reboot at windows just put a cd with a WINDOWS Boot and do an
fdisk /mbr

This will remove the linux MBR and create the windows MBR.
NOTE: This way will only boot on Windows.


IF u wanna use linux and Windows i suggest u to  boot on linux, using your normal boot and remake your /boot/grub.conf or /etc/lilo.conf
tell me what u need that i help u.

[]´s
Rafael Cardoso
0
GnsCommented:
> fdisk /mbr
This is deprecated by M$ for XP in favour of the fixmbr command. Recovery console can be booted from the install media.

-- Glenn
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Sis478Author Commented:
I'll try to use the recovery console.  I'll see what will happen.
0
Ravi GoruTechnical ConsultantCommented:

yeah.. with recovery console .. u will be able to .. boot with XP .. !!

but .. before that .. can u boot into linux once .. and install the boot loader on its partition .. and ..

and copy that boot sector information .. on to a floppy ..

and then ..

u can start using .. recovery console .. and restore .. the mbr for XP .. and .. add a pointer to the linux partion from its boot.ini !!

u can use the following link about the process i mentioned above .. !!

http://www.linuxgazette.com/issue36/larriera.html

its true .. that .. definitely .. all this looks a bit difficult .. but this is how .. one can learn .. thers no easy way .. !!

good luck !!
0
GnsCommented:
Thanks for concurring with my initial comment ravigoru (differs only slightly in tools (and detail:-))...

-- Glenn
0
GnsCommented:
Answered, no refund.

-- Glenn
0
Karl Heinz KremerCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Answered by Gns
Please leave any comments here within the next four days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

khkremer
EE Cleanup Volunteer
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.