PDA

View Full Version : [ubuntu] GRUB... how to delete the old one?



w2no
May 7th, 2010, 10:38 AM
i installed lucid into windows. when i boot then i choose ubuntu and now i ve two kinds in GRUB...
1. Ubuntu, Linux 2.6.32.22 gen - plus the recovery
2. Ubuntu, Linux 2.6.32.21 gen - plus the recovery.
because i just updated it.

how can i delete the ...21? pls advise.
thanks

dino99
May 7th, 2010, 10:42 AM
goto synaptic and right click on that package to purging it

w2no
May 8th, 2010, 08:15 AM
dino, big thanks. i found it. now i m trying it out

azertyh
May 8th, 2010, 09:02 AM
many people advise to not remove the previous kernel in case of issues with the last kernel.

wieman01
May 8th, 2010, 09:12 AM
many people advise to not remove the previous kernel in case of issues with the last kernel.
I have never had to go back to previous versions, but yes, it's possible.

AnonCat
May 8th, 2010, 11:29 AM
If someone doesn't want to actually remove the kernel, but rather just it's listing in the grub menu, you can delete the kernel's entry at the bottom of the menu.lst file. To open the file type the following:

sudo /boot/grub/menu.lst

Just make sure to double-check that you're deleting the right one!

wieman01
May 9th, 2010, 09:41 AM
If someone doesn't want to actually remove the kernel, but rather just it's listing in the grub menu, you can delete the kernel's entry at the bottom of the menu.lst file. To open the file type the following:

sudo /boot/grub/menu.lst

Just make sure to double-check that you're deleting the right one!
Problem with this approach is that this file will be overwritten every time a new kernel is installed. So it's only a temporary solution... You can do it though.