How to change grub for defaut to Win first

Asked by Willem van der Poeln

I have a six line boot: Ubuntu first
and Windows on the sixth line.
I want to change grub so that Windows is on the first line and the other five shifted down.
All on Ubuntu 10.4

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

cd /etc/grub.d; sudo mv 30_os-prober 06_os-prober; sudo update-grub

Should do it

Revision history for this message
Willem van der Poeln (w-l-vanderpoel) said :
#2

You were almost right..
Items 00 05 06 10 29 40 existed in grubd. 30 did not.
I did it in the following way in the terminal
sudo su making me master
nano 40_custom and adding a first line " default 5" (The Windows entry was on line 6)
update-grub was necessary to effect the change. It worked. Now Windows was the first boot choice.

Thanks for the help

Revision history for this message
delance (olivier-delance) said :
#3

Each time you will add a new kernel, Windows entry number will be increase of a value of 2. So you can:
1) change default value (to 7 next time) for each kernel delivery
2) remove oldest linux kernel and run again "sudo update-grub" for each kernel delivery
3) run actionparsnip command only a single time
Was Windows entry added manually or automatically detected. In last case, you should have file /etc/grub.d/30_os-prober