Question:
Multiple Linux Kernels different versions same OS?
Tex Mex
2010-08-13 07:49:31 UTC
I installed Ubuntu on my laptop to Dual Boot with Windows 7. Both work fine and GRUB v1.9.8 is my boot loader. Recently I noticed that grub included 6 more boot options, 6 Different Linux Kernels showed up, still Ubuntu but earlier versions of the kernel? Could someone please tell me how to get rid of these. The different kernel versions are in boot so can just move them to a different place except the one I want? Thanks in advance!
Four answers:
Joe
2010-08-13 08:10:32 UTC
As with all software installs / removals in Ubuntu, use one of the package managers.



First: from GRUB, write down the version numbers of the old kernels you want to remove. Don't trust to your memory! You'll want to keep the most recent kernel, and the boot option for "Recovery Mode".



Then, boot into Ubuntu, and start "Synaptic Package Manager" (Under "System" | "Administration").



Search for "linux-generic". Go through the list, and select "Mark for complete removal" for each of the versions you want to remove.



Search for "linux-headers". Go through the list, and select "Mark for complete removal" for each of the versions you want to remove.



Click "Apply". That should do the trick.



Be careful. If you remove the active kernel, you won't be able to boot! By the way: Ubuntu keeps old versions around when the kernel is updated "just in case". Keep my answer handy: you'll need it again in a few months.



- - - - - - -



Comtech391: Your answer applies to an older version of Grub, and would only clean up the boot list without freeing any disk space, regardless.
anonymous
2010-08-13 07:58:50 UTC
I don't exactly know how you get root access in Ubuntu, I use a different Linux. But the file you need to edit is in the boot folder, grub folder and should be called menu.lst
Brenda
2016-04-13 02:56:41 UTC
Linux built on Unix More secure stable and Fast and even uses less system resources! Windows is built on DOS The rest no match with Linux Gamin is a bit headache in a few flavors of Linux Linux is even User friendly the only reason people say its not user friendly because it is not like Windows!
Wild
2010-08-13 08:51:51 UTC
You can use the Synaptic package manager and from there proceeded to uninstall the old versions of the kernel.



Good luck


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...