Windows to top of boot menu in grub2?

Asked by Tom

Hi :)

The options for booting into Windows are at the bottom of the grub menu. So as more kernel updates get added the Windows position changes to further and further down the list!

Does anyone know how to either
1. Get Windows to the top of the list
2. restrict the number of kernels that get shown in the boot menu?

Oh, this is with grub2 so there is no menu.lst to edit and we shouldn't be editing the .cfg file either.
Good luck and regards from
Tom :)

Question information

English Edit question
Ubuntu grub2 Edit question
No assignee Edit question
Solved by:
Marc Stewart
Last query:
Last reply:
Revision history for this message
Michael Lustfield (michaellustfield) said :

Grub2 explained:

There's also a computer-janitor application that will remove old kernels and other old apps.

Revision history for this message
Tom (tom6) said :

Hi :)

Thanks for the RTFM answer. A good link which i have tried to wade through before. I was really asking because i wondered if anyone has grokked grub2 yet and could give a quick answer.

Computer Janitor is great but it doesn't guarantee the boot-menu and does require a person to do stuff in this scary non-Windows strangeness lol. We are trying to set something up for a 90 year-young lady that will doubtless be programming in no time but is still a little daunted by the new strangeness

Anyway, thanks for trying and thanks for the bookmark link that i lost ages ago :)
Many regards from
Tom :)

Revision history for this message
Best Marc Stewart (marc.stewart) said :

It's trivial to move Windows to the top of the GRUB2 menu. Open a terminal and enter:
cd /etc/grub.d
sudo mv 30_os-prober 08_os-prober
sudo update-grub

That'll make GRUB look for non-Linux OSes first, putting Windows at the top.

Revision history for this message
Tom (tom6) said :

Thanks Marc Stewart, that solved my question.

Revision history for this message
Tom (tom6) said :

Hi :)

I felt really bad about my previous answer! Sorry about that! Also sorry for the delay in marking this one solved. I noticed both you chaps have a lot of karma points & the guy i slated has a beautiful lady in his picture so i would guess he's unruffled by a dumb response from a forum post :) Thanks both of you for excellent responses
Many regards from
Tom :)

Revision history for this message
danilo (d-aguilarmiranda) said :

hello, I would like to get windows to the top of the menu too.

Does this solution works only for grub2? How do I get to know if mine is grub2?

Many thanks,


Revision history for this message
Tom (tom6) said :

Hi :)

It is better to re-post this as a new question now as hardly anyone reads old threads. However, if you are using Ubuntu 10.04 then you are definitely using Grub2. Any Ubuntu before 9.04 is probably running Grub1. The best way is to get to a command-line

Applications - Accessories - Terminal

and type in (or copy&paste with the mouse)

grub --version

For Grub1 it would give the result "Grub 0.97" i think grub2 gives the result "Grub 1.98" because its not really finished yet! Of course you know that you can get help on any command-line command by adding the "--help" or "-h" tag after the command, in this case it would have been

grub --help

Good luck and regards from
Tom :)