How do I edit the boot order in the GRUB menu to have Windows first? [duplicate]

Solution 1:

I dont know if you can change the order of the menu in an easy way, but you can set the default entry.

In terminal

sudo -H gedit /etc/default/grub

I don't know what your grub menu looks like but let's say you have:

  • Ubuntu
  • Memory test
  • Windows 7

in this case, if you want Windows 7 to boot by default you replace GRUB_DEFAULT=0 with GRUB_DEFAULT=2

Save the file and in terminal:

sudo update-grub

and reboot

Solution 2:

The menu entry of "Windows 7" in /boot/grub/grub.cfg may look like this:

...
menuentry "Windows 7 (/dev/sda1)" { #it's depend on your config
...

You can also write GRUB_DEFAULT="Windows 7 (/dev/sda1)" to /etc/default/grub to avoid the order problem in grub.cfg.