Changing default boot option in grub2 [duplicate]
By Mia Morrison •
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?
21 Answer
- 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+Oand exit by pressingCRTL+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.
More in general
"Zoraya ter Beek, age 29, just died by assisted suicide in the Netherlands. She was physically healthy, but psychologically depressed. It's an abomination that an entire society would actively facilitate, even encourage, someone ending their own life because they had no hope. Th…"