Grub2: Boot Windows by default

Grub2's default boot setting configuration is different from regular Grub. Whenever I search for it on the internet I have to sift through tonnes of advice regarding the menu.lst file.

Here are the steps for setting Windows as the default OS to boot in Grub2:

  1. Find out the name of Windows' boot entry. There are two ways
    1. Look at the Grub2 boot menu:
    2. Execute update-grub and check the output
  2. Edit /etc/default/grub, specifically the "GRUB_DEFAULT=", adding the name of the Windows boot entry. In this example it would be GRUB_DEFAULT="Windows 7 (loader) (on /dev/sda2)" (inverted commas included)
  3. Run update-grub

    In principle the Windows entry should show up in update-grub's output. It worked on my friend's computer a few minutes ago. I hope I haven't broken my grub configuration.

And that's it. After rebooting the Windows entry will be selected and booted by default.

About johnny

Computers have interested me since I can remember and conveniently I studied computer science. I also enjoy performing in a local amateur theatre group and cycling. This is where I post solutions to problems I've had in the office or any other project, hopefully clearly enough to refer back to in the future.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>