how to dwindle down the number of kernels in menu.lst to two

NoOp glgxg at
Mon Oct 13 15:04:40 UTC 2008

On 10/12/2008 08:53 PM, Amit Joshi mckagan at wrote:
> On Mon, Oct 13, 2008 at 3:40 AM, NoOp <glgxg at> wrote:
>> No, but it does do exactly what the OP asked for:
>> <quote>
>> 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.
>> </quote>
>> 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
> Hi,
> 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).
> Regards,
> Amit Joshi
> <snip>

Ummm... perhaps you should give this a try yourself first?

Assuming that you have at least 2 kernels on your system and in your
grub menu at boot; change that parameter from the default 'howmany=all'
to 'howmany=1' and reboot. Tell us whether the grub menu at boot changed
for you.

Now after you've rebooted to test; I won't even ask you to reboot this
time, just do:

cat /boot/grub/menu.lst

and tell us how many kernels you now see in menu.lst.

Now do:

sudo update-grub
cat /boot/grub/menu.lst

and tell us how many kernels you now see in menu.lst.

More information about the ubuntu-users mailing list