Grub 2 information
klarsen1 at gmail.com
Sat Apr 3 13:13:28 UTC 2010
On 04/03/2010 06:01 AM, Glenn Holmer wrote:
> On Sat, 2010-04-03 at 05:41 -0600, Karl Larsen wrote:
>> I have looked at the wiki for grub 2 with care and have missed the
>> way to tell grub 2 to display only 2 kernels. In grub 1 it was a well
>> defined place in menu.lst but it must be called something else in grub 2.
>> I now have 10 kernels because I am updating from Lucid alpha 1. And
>> it is a mystery how to cut those down to like 2.
> Why don't you just delete those kernels in Synaptic? It will take care
> of removing the extra GRUB entries for you.
I had no idea you could delete kernels in Synptic.
> "Kernels removed by Synaptic will automatically update grub.cfg and no
> user action is required."
This is correct.
> 1) use "uname -a" to find out which kernel you are currently running
> (e.g. "Linux shoggoth 2.6.32-19-generic...")
This step is critical! In my case I needed the whole name of the
kernel, or, at least the Linux Lucid part. I put in the entire name of
my kernel I am using into the Synaptic window that finds things. It
worked great! It found my -19 without doing a thing.
Then I changed the name in the window to -17 and it found that. I
then right clicked and marked it for removal. Did the same thing for all
the old kernels and then clicked on do it. It took awhile but I think it
removed not only the entry in grub.cfg but removed the whole kernel
package. I will check and see.
Thanks it worked fine!
> 2) open Synaptic (System / Administration / Synaptic Package Manager)
> 3) ctrl-F to search for "-18", "-17"... (older kernels)
> 4) for each set of search results, delete the entries starting with
> "linux-" and including the version to be deleted (e.g.
> 5) reboot and the extra menu entries will be gone from GRUB
More information about the ubuntu-users