Related Items  

Linux and Windows IT Support  

We make IT Support easy!

Windows, Apple and Linux IT support and services.

For Software and Web Development.

Login or Register  

If you wish to contribute an article, please login or register.

Save previous choice in GRUB bootloader


Q. I would like GRUB to remember my last OS choice and make that the selected option on the next boot. How do I do that?

A. This example is for GRUB2 - for GRUB 1 the options are slightly different.

Boot into Linux and make a backup of the following file:

sudo cp /etc/default/grub /etc/default/grub.bak

You can restore that file, if need be, using the following command:

sudo cp /etc/default/grub.bak /etc/default/grub

Using your favorite editor, modify this file:

sudo vim /etc/default/grub





and add the following line:


Save and close the file. Once done, update grub:

sudo update-grub


Add your comment

Your name:
  The word for verification. Lowercase letters only with no spaces.
Word verification:
yvComment v.1.24.0
Copyright © 1999 - 2018 Virtual Helpme | IT Services Catered to Your Business | Original Template: Allrounder