4

I am using Ubuntu 14.04 alongside Windows 10. Other family members of my family also use my pc. And they are not comfortable with Ubuntu as they are used to with Windows. Sometimes they face difficulties while selecting boot option from grub. Now my question is, can I edit grub2 and change the default boot option? If it is possible, how to do it?

1 Answers1

6
  • Open a terminal window and execute: sudo nano /boot/grub/grub.cfg
  • Enter your password.
  • In the file opened, find the text: set default="0"
  • Number 0 is for the first option, number 1 for the second one, etc. Change the number for your choice.
  • Save the file by pressing CTRL+O and exit by pressing CRTL+X.

This will change in every grub update. So, if you want to have it made permanently edit the file /etc/default/grub and set GRUB_DEFAULT=0 to the number of your choice.