Where is grub on CentOS 6

General support questions
Post Reply
jvsrvcs
Posts: 31
Joined: 2011/06/24 01:00:39

Where is grub on CentOS 6

Post by jvsrvcs » 2011/07/15 06:33:31

So I googled on how to install grub.

I want a dual boot system (CentOS 6 & Windows XP and Windows 7) all on the same box.

I found many, articles saying that I could just run: $grub-mkconfig -o /boot/grub/grub.conf

but there is no grub-mkconfig command anywhere.

Was it accidentally left out of CentOS 6?

Was it that it is not that useful of a tool such that it was left out?

also many other grub commands (grub-probe) that are not on CentOS 6.

How do we vote useful commands onto the next release of CentOS6?

How do I yum install these commands? (how do I add the repo that has it for cent os 6) and how do I add the command after the repo has been added?

thanks

J.V.

scottro
Forum Moderator
Posts: 2556
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: Where is grub on CentOS 6

Post by scottro » 2011/07/15 12:23:08

Never used it, so I don't know. There is a file, /etc/grub.conf, that can be edited manually.

Grub2, the newer version, might use that. The articles you're viewing might have to do with Ubuntu, which uses the later grub2. I should add that many, including the developer of Sabayon Linux, feel that rather than an improvement, it's a regression. See

http://lxnay.wordpress.com/2011/07/08/open-source-projects-are-gone-crazy-period/

jvsrvcs
Posts: 31
Joined: 2011/06/24 01:00:39

Re: Where is grub on CentOS 6

Post by jvsrvcs » 2011/07/15 21:08:05

less than helpful, this does not help me get grub on the system and do what I want to do. Amazing that people can talk and post links and go on and on and still not provide an answer to what I am really looking for.

jvsrvcs
Posts: 31
Joined: 2011/06/24 01:00:39

Re: Where is grub on CentOS 6

Post by jvsrvcs » 2011/07/15 21:36:38

The response could be shortened: "The grub version shipped with CentOS 6 sucks really badly, don't know what to tell you. See this article of people who agree with me. You are screwed I suppose."

scottro
Forum Moderator
Posts: 2556
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: Where is grub on CentOS 6

Post by scottro » 2011/07/15 22:04:29

Errm no, the article says that the grub which the articles you mention are apparently referring to is really bad, and that CentOS was smart enough to keep using the older, better, grub.

In one of your other, several posts, all over the forum about grub, I believe I posted a link to a page of mine that gives instructions that are applicable to the grub you have.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Where is grub on CentOS 6

Post by pschaff » 2011/07/16 15:15:49

[quote]
jvsrvcs wrote:
So I googled on how to install grub.

I want a dual boot system (CentOS 6 & Windows XP and Windows 7) all on the same box.[/quote]
If you had installed with the Windows drive in the system it would have been [i]automagically[/i] added to your GRUB configuration.

[quote]
...
How do we vote useful commands onto the next release of CentOS6?[/quote]
You don't. CentOS will follow what [url=http://wiki.centos.org/FAQ/General?highlight=%28TUV%29#head-d29a2b7e61ffc544973098f9dd49fe4663efba50]TUV[/url] does.

Adding the capability to boot the second drive should be as simple as adding a stanza to /boot/grub/grub.conf. If we assume that CentOS is on /dev/sda and XP is on /dev/sdb1 but was originally on /dev/sda1 when installed, requiring GRUB to "fool" XP, it would look something like this:[code]
title XP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1
[/code]

You should have been able to discover this by judicious use of [url=http://www.google.com/search?q=windows+grub+map+hd0+hd1&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a]google[/url].

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: Where is grub on CentOS 6

Post by AlanBartlett » 2011/07/16 21:58:50

[quote]
I want a dual boot system (CentOS 6 & Windows XP and Windows 7) all on the same box.
[/quote]
Hmm [img]http://www.centos.toracat.org/ajb/tmp/hmmm.gif[/img] . . . "dual boot" plus "CentOS 6 & Windows XP and Windows 7" . . . something doesn't seem to be quite right!

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Where is grub on CentOS 6

Post by pschaff » 2011/07/17 00:38:57

1 + 1 + 1 = Triple boot :-)

r_hartman
Posts: 711
Joined: 2009/03/23 15:08:11
Location: Netherlands
Contact:

Re: Where is grub on CentOS 6

Post by r_hartman » 2011/07/18 10:56:05

It's more of a two-stage rocket: in this case you get a dual-dual-boot :-D

Post Reply