Page 1 of 1

update Grub on CentOS 6

Posted: 2011/11/30 00:53:04
by cccc
hi

Howto update Grub on CentOS 6?

I've tried update-grub[code] # sudo update-grub
sudo: update-grub: command not found
# grub --version
grub (GNU GRUB 0.97)[/code]but it doesn't work.

Re: update Grub on CentOS 6

Posted: 2011/11/30 10:57:27
by markkuk
What do you mean by "updating GRUB"? Update-grub is an Ubuntu command to re-generate the GRUB 2 configuration file. CentOS uses GRUB 1 a.k.a. "legacy GRUB", so there's no need for update-grub, grub-mkconfig or any other similar commands. You can edit the configuration file /boot/grub/grub.conf with any text editor.

Re: update Grub on CentOS 6

Posted: 2011/11/30 16:08:34
by cccc
I need to re-generate the GRUB configuration file to find out automatically boot entries from other linux OS, installed on the same machine.
Anyway, if this doesn't work, I will edit the configuration file /boot/grub/grub.conf with a text editor.

update Grub on CentOS 6

Posted: 2011/12/01 00:03:14
by pschaff
There is no automatic discovery and GRUB update mechanism in CentOS/RHEL.

Re: update Grub on CentOS 6

Posted: 2011/12/01 09:04:38
by cccc
THX