change the boot menu - GRUB [duplicate]

Possible Duplicate:
Make grub keep its default boot under kernel updates

I've got dual boot system - Ubuntu 9.10 and Windows 7.

Whenever the GRUB loaded, the menu showed lots of options, for example, the past kernels, memory tests, and windows 7.

I want to make this menu smaller, because I need to press downward arrow about 6 times to go to the Windows 7 option. I aware that the GRUB is version 1.97~beta4 and after spending some time on Ubuntu official site I still can't figure out how to change it.


The answer appears to be:

  • Remove old kernels via Synaptic, and their boot entry will be automatically removed
  • You can kill other extraneous entries by making their entries in /etc/grub.d/ non-executable

So to get rid of the memtest entry, you would run:

sudo chmod -x /etc/grub.d/20_memtest86+
  • My reading of /etc/grub.d/README is that Grub determines the order of menu entries based on the leading number of its filename. I don't have any dual-boot systems to verify this on, but Windows should have its own entry file here. So if you wanted to keep the memtest entry, but have the Windows entry display first, you'd rename the files so that the Windows entry had a lower numerical tag on the filename
  • After you make your changes, run update-grub at the CLI to commit them.

Answers pulled from this guide to Grub 2 at the Ubuntu Forums.