17

I have recently installed Ubuntu in my laptop alongside Windows 10 by dual booting. And at the start grub is showing up to give options between Ubuntu os and Windows boot loader.

If I don't do anything for some time, Ubuntu gets selected automatically. Instead of Ubuntu I want Windows to get selected if I don't do anything. How can I do that?

Suman
  • 175

2 Answers2

30

To change the default loading entry, you need to change the GRUB_DEFAULT as given below.

you need to edit /etc/default/grub . To do that,

Execute : sudo nano /etc/default/grub

Now change the GRUB_DEFAULT=0 to any entry you wish.

The first entry is 0 , second Entry is 1 and so on..

enter image description here

After editing, update your grub by executing : sudo update-grub

Severus Tux
  • 9,866
7

If you would like to have a graphical interface, you may want to use Grub Customizer: As Tico pointed out, install it by adding the ppa first:

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

This tool lets you modify grub rather safely. It allows you to re-order grub's menu entries, set the default entry, and remove an entry, etc.

lamino
  • 616
  • 1
    I believe you'll nedd the PPA for it: https://launchpad.net/~danielrichter2007/+archive/ubuntu/grub-customizer – trinaldi Jun 03 '16 at 11:38