PDA

View Full Version : [ubuntu] HOWTO: Remove items from GRUB menu after bad upgrade (Dirty Style)



XDevHald
November 2nd, 2008, 04:10 PM
This tutorial is very detailed, please pay attention. This can be done in either Windows or Ubuntu Environment.

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

UBUNTU

NOTE: This is if you have dual boot Ubuntu and Windows.

Step One for Ubuntu: Locate "Places" and click on the spot that has the Windows drive space listed, I.E 34.2 GB Media.

Step Two: Locate and click on folder "Ubuntu" > disks > boot > "menu.lst" - Edit this file and remove the kernels you want off of the Grub.

You will be in auto gedit when doing the above procedure.

The CLEAN UP: While you're in the place where the menu.lst is, click back once and you will see all of the images and files of the upgrade you did. PLEASE review the GRUB menu during boot and make sure you don't delete the active ubuntu desktop kernel you're using.

This allows you to clean up some on your ubuntu so there is no clutter.

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

WINDOWS

Step One: Click Start > Right click "My Computer" > Click "Properties" > Click "C:\" > Click the "Ubuntu" folder > boot > grub > edit menu.lst

Do the same procedure for Ubuntu steps above this one for the grub folder if doing this in Windows.

Hope this helps :)

bulldog
November 2nd, 2008, 04:15 PM
Or use synaptic to remove the un-used kernels and mark them to remove completely.
Then run in a terminal
sudo update-grub and your menu.lst is as new again.

XDevHald
November 2nd, 2008, 04:25 PM
True bulldog, but here the reason for the tut.

1) You use startup-manager and the kernels / upgrade are not found there.
2) Not found in the /boot/grub/menu.lst when gksudo'd
3) Using QGrubEditor as well.
4) Using the previous version of ubuntu that is still available in boot up, and not seeing the kernels in syncaptic in there.

Even by update-grub not working for them as it will show just the install they did of ubuntu but NOT the upgrade they did.

It's imperative for people to understand that an upgrade is not an installation or to be found in the grub menu.lst file.