How to set Windows as Default OS in Grub
Some of us, or rather most of us dual boot windows and Linux. Bot the operating systems are equally important to me unless you are a Linux fanatic. Windows is as much my development platform as Linux. Now, most of us using Linux also use the Grub boot loader.

Grub
An installation of Linux after windows, places Linux on the top of the grub list and Windows at the end. That also initializes with Linux in selection and our workstation boots into Linux if allowed automatically.
To change this and put Windows as the default as well as the first OS in the list, use the steps below.
- Boot into Linux, that is where you will get the file to edit the boot menu for Grub.
- Open up the terminal, enter
gksudo gedit /boot/grub/menu.lstThis brings up the grub file in Gedit, the text editor. - Look for the lines :
title Microsoft Windows XP root (hd0,2) makeactive chainloader +1
without a ‘#’ comment at the line beginning.
- Bring it above the lines for booting into Linux. That should look something like
kernel/ vmlinuz****Version** root=**** . - You are all set. Save the file, reboot.
Your windows should be on top of the grub, and the selected OS as well. Alternatively, you can set the default selection to 1, in the same file or use SUM to change these settings. I will write about SUM in a future post.
Comment Using Facebook
3 Responses to this Article | Share your Opinions/Comments
We moderate comments to prevent spam. Moderation is done within few hours. Please try and stay on topic and refrain from using abusive language. If you think there is a problem with this post, please email the post author or send us an email at tips@techie-buzz.com with the URL and the problem you see and we will rectify it as soon as we can.


why would you want to set windows as default, but anyway it is handy if you install linux on a noobs PC
Ya, for that reason, and if you are primarily a windows user and use Linux for specific purpose, like development.
“Open up the terminal, enter gksudo gedit /boot/grub/menu.lst ”
when i openned it, i see nothing. i have ubuntu 10.04 64bit please help! thanks