Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Windows Xp And Centos(redhat As 3), grub, lilo issue
chrisw
post Oct 18 2004, 09:46 AM
Post #1


RMS is my Hero
******

Group: Admin
Posts: 634
Joined: 27-September 02
From: Louisiana
Member No.: 5



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.


--------------------

Chris W.
Go to the top of the page
 
+Quote Post
Jim
post Oct 18 2004, 10:07 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,280
Joined: 19-November 03
From: University of Minnesota- TC
Member No.: 1,828



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.


--------------------
--Jim Lester
jim@linuxhelp.net

Distro: Gentoo
System: AMD Athlon 3000+ XP 2.166 GHz
NVIDIA nForce2 IGP Chipset
1GB 333 MHz DDR SDRAM
NVIDIA nForce2 Dual Head 64 MB Graphics

Server Distro: CentOS
Go to the top of the page
 
+Quote Post
hughesjr
post Oct 18 2004, 07:12 PM
Post #3


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



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)


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd October 2017 - 07:54 PM