Ubuntu – How to edit the boot order in the GRUB menu to have Windows first?


I have a dual boot on my computer of Windows 7 and Xubuntu 12.10. The Linux boot is 1st and the Windows 2nd. I would like to reverse the boot order in the GRUB menu. I need to know the steps to go about editing GRUB. I do most of my work on Windows and need it to be 1st so I can boot up and not watch it.

Best Answer

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