Set Windows as Default OS in Grub
Posted Under: General
If you’ve installed both Ubuntu and Windows in your computer,your system will be start up through grub and Ubuntu starts as the default OS in grub.you may use Windows more often than Ubuntu and you do not want to select to boot up Windows everytime you start the computer.Here is an easy way to set Windows as default OS.
First,in your Ubuntu open up a terminal window and run following command:
sudo gedit /boot/grub/menu.lst
Find the section in the file like this:

There are four titles match the four grub menu when you start the computer,count from above to below with the numbering starts at 0,in this screen Windows is number 3 and just change the line which says default 0 to default 3.
Another way,in the screen above cut the marked section and paste it to the above of the first title,save and close the file then restart.
Note:For grub2 (ubuntu 9.10 and higher version),see this to set default OS:http://ubuntuguide.net/3-ways-setting-xpvistawindows-7-as-default-bootup-os-in-grub-2
Related posts:
- 3 Ways Setting XP/Vista/Windows 7 as default bootup OS In Grub 2
- Add Windows into grub menu after install Ubuntu
- Grub missed after reinstall Windows,or Grub error17 after delete Ubuntu partition
- How to restore Grub 2 after reinstalling Windows XP/Vista/Win7
- Clean up Ubuntu old grub boot menu after upgrades

Reader Comments
thanks,I’m just looking for it.
[Reply]
Sir,
I’ve to edit my grub, by default ubuntu is selected. I need to set default as windows. I installed windows xp and ubuntu 9.10 version.
here I have seen many coments about that.
most of them saying to edit as
sudo gedit/boot/grub/menu.lst
but there is not menu.lst file in boot/grub directory.
insted there is one grub.cfg file..
how can I edit my grub.
while I was trying with “” sudo gedit/boot/grub/menu.lst “”
it showing there is no file message…
give a solution for this…
thank you
[Reply]
admin Reply:
December 16th, 2009 at 6:01 pm
Hi,Sajeesh.This post just works for old grub version(ubuntu 9.04 and old version.).Ubuntu 9.10 use grub2,so look this:http://ubuntuguide.net/3-ways-setting-xpvistawindows-7-as-default-bootup-os-in-grub-2
[Reply]