Windows to top of boot menu in grub2?

Asked by Tom on 2010-04-30

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
or
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

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Solved by:
Marc Stewart
Solved:
2010-05-09
Last query:
2010-05-09
Last reply:
2010-04-30

Grub2 explained: http://ubuntuforums.org/showthread.php?t=1195275

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

Tom (tom6) said : #2

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 :)

Best Marc Stewart (marc.stewart) said : #3

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.

Tom (tom6) said : #4

Thanks Marc Stewart, that solved my question.

Tom (tom6) said : #5

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 :)

danilo (d-aguilarmiranda) said : #6

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,

danilo.

Tom (tom6) said : #7

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 :)