remove other two low version ubuntu option from grub

Asked by PRABIN

I am using ubuntu8.04 (kernel Linux 2.6.24-21-generic) and window Xp2.
In booting time shows three versions of kernel Linux and window XP
How can I delete other low versions ubuntu8.04 from grub so that I will not get them in my boot time??
Also is it safe to remove them??

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu yelp Edit question
Assignee:
No assignee Edit question
Solved by:
Tony Mugan
Solved:
Last query:
Last reply:
Revision history for this message
Rodolphe Ortalo (rodolphe-ortalo) said :
#1

Have a look here for more information on grub and all the gory details.
https://help.ubuntu.com/community/GrubHowto

Playing with grub is not especially dangerous, but you need to be careful when doing so - an unbootable system is always a very annoying case. (Do you still have the bootable CD around?)
So, do read the documentation entirely before proceeding and be careful when editing files not to remove too many things (preferably, comment lines out instead of simply removing them while editing /boot/grub/menu.lst). Keep some good old kernel known-to-run around.

Alternatively, if synaptic (the package manager) shows different linux-image packages installed, you can try to remove the older ones. Package removal should update the grub menu automatically I think.

Revision history for this message
Best Tony Mugan (tmugan) said :
#2

You can uninstall the older kernels through Synaptic but they can be handy if there are issues with the current kernel.
I'd leave them there unless you have serious issues with disk space.

The option to edit the boot file is also an option but only removes them from the list you see.

sudo gedit /etc/apt/menu.lst

Place # before any line you do not want to see

Revision history for this message
PRABIN (prabindatta) said :
#3

Thanks Tony Mugan, that solved my question.

Revision history for this message
Dick Bos (bosdick) said :
#4

Could anyone please explain which exact files need to be uninstalled through Synaptic!