update Grub on CentOS 6

General support questions

update Grub on CentOS 6

Postby cccc » 2011/11/30 00:53:04

hi

Howto update Grub on CentOS 6?

I've tried update-grub
Code: Select all
 # sudo update-grub
sudo: update-grub: command not found
# grub --version
grub (GNU GRUB 0.97)
but it doesn't work.
cccc
 
Posts: 99
Joined: 2008/11/22 19:24:37

Re: update Grub on CentOS 6

Postby markkuk » 2011/11/30 10:57:27

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.
markkuk
 
Posts: 682
Joined: 2007/09/07 10:56:28
Location: Finland

Re: update Grub on CentOS 6

Postby cccc » 2011/11/30 16:08:34

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.
cccc
 
Posts: 99
Joined: 2008/11/22 19:24:37

update Grub on CentOS 6

Postby pschaff » 2011/12/01 00:03:14

There is no automatic discovery and GRUB update mechanism in CentOS/RHEL.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: update Grub on CentOS 6

Postby cccc » 2011/12/01 09:04:38

THX
cccc
 
Posts: 99
Joined: 2008/11/22 19:24:37


Return to CentOS 6 - General Support

Who is online

Users browsing this forum: No registered users and 8 guests