I am running a dual-boot with Ubuntu (10.10) and Windows 7. Recently I edited my /boot/grub/grub.cfg file to only show one version of Ubuntu (as opposed to several kernel versions) and Windows, simply by commenting out all other menu entries. My question is if I can edit GRUB to just boot a specific entry automatically.

I tried removing all other menu entries, but GRUB still showed the menu with only one entry. I've also considered just setting the timeout to either 0 or 1 second, as this would basically achieve the same thing.

What is the best way to do this?

migrated from stackoverflow.com Feb 17 '11 at 23:17

This question came from our site for professional and enthusiast programmers.


The correct way to modify your grub2 settings in Ubuntu is by editing /etc/default/grub and then running update-grub (the file /boot/grub/grub.cfg is not meant to be edited). You can find more information here.

Using Ubuntu Startup Manager can be of use if you prefer a GUI to do the changes.

  • StartUp-Manager is obsolete, its development stopped <2011. StartUp-Manager is incompatible with Ubuntu 11.10 and newer – Impulss Sep 21 '13 at 1:19

The Ubuntu StartUp Manager should do exactly what you want.


You could add following line to menu.lst:


this will hide the menu, and then maybe set timeout to 0 or 1 (I don't know how timeout=0 behaves exactly).

edit: oh yes, and set line


where ## is the menuitem number starting from 0

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.