how to dwindle down the number of kernels in menu.lst to two
mckagan at gmail.com
Mon Oct 13 03:53:22 UTC 2008
On Mon, Oct 13, 2008 at 3:40 AM, NoOp <glgxg at sbcglobal.net> wrote:
> On 10/12/2008 01:47 PM, Adam Funk wrote:
> > On 2008-10-10, Karl Larsen wrote:
> >> Adam Funk wrote:
> >>> On 2008-10-10, Scott Berry wrote:
> >>>> I have too many kernels in my menu.lst. i think I have
> like seven or
> >>>> eight of them. How do i dwindle them down to two kernels at a time.
> >>>> The previous kernel say for instance linux-2.6.27-5 and 6. I think
> >>>> would be plenty of kernels.
> >>> I just use aptitude or synaptic to (carefully!) remove all but the two
> >>> newest kernel packages that I have. The package removal script
> >>> automatically takes them out of the GRUB menu.
> >> If you read your file /boot/grub/menu.lst you will find a line that
> >> tells grub how many kernel's to save. Make that 2 and you will be happy.
> > That doesn't remove the potentially crufty old kernel packages, does
> > it?
> No, but it does do exactly what the OP asked for:
> I have too many kernels in my menu.lst. i think I have like seven or
> eight of them. How do i dwindle them down to two kernels at a time.
> The OP (Scott) didn't ask how to remove the kernels from this system, he
> asked how to 'dwindle' the kernel list in his menu.lst down "to two
> kernels at a time".
> Quite often I do the same; I keep maybe 4 kernels - sometimes more, but
> only show two in my menu.lst to keep it from being too cluttered. If I
> want more then I just remodify menu.lst.
> Note: after editing /boot/grub/menu.lst you should do
> sudo update-grub
AFAIK, The update-grub script is used to generate a new menu.lst rather than
"updating" the menu.lst as the name suggests. LILO required updating it
everytime a change was made, but that is not the case with GRUB. All changes
to menu.lst are automatically accepted (without the need of running any
script such as update-grub).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ubuntu-users