So, when you boot up your computer, you get a screen that shows you all the available boot options.
It will look something like
Ubuntu ....
Ubuntu ....
Ubuntu ....
Windows ....
In the above example, Windows is on line 4. Grub refers to the first line as 0, not 1. Find the line number that Windows is on in your machine
So,
Boot up into Ubuntu.
and press Alt+F2.
Type in
Code:
gksudo gedit /etc/default/grub
Type in the password when it asks.
Now, change GRUB_DEFAULT to the line number.
Save the file, press Alt+f2 again, and enter in gnome-terminal.
Run
and your next boot should start with windows.
Note that this will be offset when Ubuntu installs a new kernel, so I advise this method instead.
Press Alt + F2.
Type in 'gnome-terminal' (no quotes)
and enter the following (if it asks for a password, and you enter it, the input is invisible!)
Code:
sudo mv /etc/grub.d/10_linux /etc/grub.d/31_linux
sudo mv /etc/grub.d/20_memtest86+ /etc/grub.d/32_memtest86+
sudo mv /etc/grub.d/30_os-prober /etc/grub.d/10_os-prober
sudo update-grub
that should move your windows entry to the first line, and Windows should boot by default
Bookmarks