Changing Default Option in Grub Boot Loader

For a while now, I have dual booted my PC with Linux and Windows 10. Windows came first so when I added Linux, that was made the default option. That was OK for a while, but the siren song of Microsoft and many of my favourite applications came beckoning so I wanted to make Windows my default option again. But how?

As with many things, there are various ways, but this is the simplest and requires no installation of applications.

  1. Start your PC and pay close attention to where Windows is on the list of options. In my case, it was in 5th position.
  2. Choose Linux as your option.
  3. Open up a terminal and change to the directory: /etc/default
  4. Edit the file grub with your favourite editor, as root.
  • Change the line which reads: DEFAULT=0 to use the position number of your Windows option (bear in mind it is zero-based, meaning the count starts from 0). In my case, Windows was option 5 so I used the number 4.
  • Save and exit the file.
  • Now update the grub loader with the following command:

That’s it. Restart your PC and all should be changed.


Written by Stephen Moon
email: stephen at

Hey! Did you enjoy reading this? If you did and would like an email when I add new content, just subscribe to my list. You can unsubscribe at any time.

Leave a Reply

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