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.
- Start your PC and pay close attention to where Windows is on the list of options. In my case, it was in 5th position.
- Choose Linux as your option.
- Open up a terminal and change to the directory:
- Edit the file
grubwith your favourite editor, as
1sudo vi grub
- Change the line which reads:
DEFAULT=0to 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 logicalmoon.com