PDA

View Full Version : [ubuntu] how to update GRUB?



sharks
June 8th, 2008, 04:30 AM
how to update GRUB?

tramir
June 8th, 2008, 04:36 AM
What do you want to update? grub itself or the options?

Prospero2006
June 8th, 2008, 05:37 AM
The configuration file is located in
/boot/grub/menu.list

Open in a text editor.

Unix_Slayer
June 8th, 2008, 05:46 AM
or install kgrubeditor. For all you non-binary people.

sharks
June 8th, 2008, 01:37 PM
I want to upgrade grub itself.

bumanie
June 8th, 2008, 01:48 PM
Try this
sudo apt-get update grub

sharks
June 8th, 2008, 01:54 PM
it says
E: The update command takes no arguments

bumanie
June 8th, 2008, 02:05 PM
Sorry, my mistake, I think it's
sudo update-grub

sharks
June 8th, 2008, 02:10 PM
If a newer version of GRUB is released how do i upgrade it via terminal?

drs305
June 8th, 2008, 02:14 PM
The update-grub command is used to generate and update the menu.lst, according to the man page. The latest grub version in the repos is 0.97-29.

This should upgrade installed packages, including grub:

sudo aptitude update
sudo aptitude upgrade

For updating grub menu items, displays, etc I strongly recommend startupmanager.
HOWTO: Grub Menu Kernel Display Options (http://ubuntuforums.org/showthread.php?t=818177)

raamee
June 9th, 2009, 04:42 PM
if we enter recovery mode, there is a option to update grub. shall

i upgrade grub from this option?

drs305
June 10th, 2009, 06:13 PM
if we enter recovery mode, there is a option to update grub. shall

i upgrade grub from this option?

You can run the commands from the recovery mode, although when you state 'upgrade grub' that can mean different things. If you select "netroot" (root shell with networking) you will be able to connect to the Internet and run any of the normal update commands such as apt-get update and apt-get upgrade. Since this is a root shell, you do not need to use "sudo".

You can also run the "grub" command or "update-grub" from the root prompt if that is what you are having difficulties with.

Hoobes1
January 3rd, 2010, 12:05 AM
I just entered

sudo apt-get upgrade grub
and it worked perfectly fine =)