Help - Search - Members - Calendar
Full Version: Windows Xp And Centos(redhat As 3)
Linuxhelp > Support > Technical Support
chrisw
ok...i got the famous windows xp, linux issue.

have installed windows xp and linux on same hard drive..
windows xp partiton is NTFS....

how do i go about getting either grub/lilo installed
on the mbr so i can get the boot menu..



if i remember correctly...i installed the grub/lilo to first sector of the
partition..i didnt install it to the mbr if i thinking correctly...

this is for a friends computer..so formatting and starting over really
isnt an option

i have even thought about creating a bootdisk from my computer
and using it on my friends computer to boot linux...would this
be possible.
Jim
Your going to have to install it to the MBR. I supose if you wanted to, and it really is installed on the first sector of the partition, you could add an entry to the windows bootloader, but I don't think you want to do that.

Just install grub to the MBR of the disk and that will make you happy.
hughesjr
If you have both XP and CentOS already working, all you need to do to write grub to the MBR is to issue this command at a root terminal:

grub
{puts you at the grub prompt}

root (hd0,2)

setup (hd0)

{then exit the grub prompt}

{root is the boot partition (don't ask me why, it's a grub thing) ... substitute your boot partition for (hd0,2), (hd0,2) is hda3 ... (hd0,1) would be hda2, etc.}

Once you have this, you should be able to boot linux ... then at the bottom of grub, add this (if it isn't already there)

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


(That assumes WinXP is on hda1 partition)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.