Linux – Make GRUB automatically boot Ubuntu

grublinuxUbuntu

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?

Best Answer

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.

Related Question