up one level
2014-10-23 05:07:46

Windows and Ubuntu Dual Boot – How to by Default Boot to Windows

I want to make Windows the default operating system that my PC boots into. (In other words I want Windows to appear first in the grub menu boot list.)

I search/google and find this article: I search/google and find this article: How do I set Windows to boot as the default in the boot loader?

In short, what did I find that worked for me?

In a terminal type:

fgrep menuentry /boot/grub/grub.cfg

Then find the entry for windows, for example. “Windows 8 (loader) (on /dev/sda1)”. Then run:

gksu gedit /etc/default/grub

Then Change the entry “GRUB_DEFAULT=0″ to:

GRUB_DEFAULT=”Windows 8 (loader) (on /dev/sda1)”

Save, then type:

sudo update-grub

*2014-12-05 edit: previously published at http://w̶i̶e̶l̶d̶l̶i̶n̶u̶x̶.̶c̶o̶m̶/?p=869
*2015-07-29 edit: edited whitespace to improve this article’s readability.

[2020 edit: Moved to: https://investorworker.com/2014/... .html.]