Hints and Tips Topic
   >  Changing the Hostname
   >  Finding your IP & Mac Address
   >  Creating Users and Groups
   >  Running Scripts at Startup
   >  Network Interface Configuration
   >  Changing the Grub Default Option

 

Changing the Boot Default in Grub 2

How to Change your Default O/S

If you have multiple operating systems or O/S versions on your computer, the option that Grub chooses as the default is sometimes not the one you want; here is how to change it:

If you have multiple operating systems or O/S versions on your computer, the option that Grub chooses as the default is sometimes not the one you want ..

  • Open up a command line window on the PC that you want to change

  • Backup the current Grub configuration file:

    $ sudo cp /etc/default/grub /etc/default/grub.orig
  • Edit the Grub configuration file:

    $ sudo vi /etc/default/grub
  • Change the following line in the file to the option you want as default. Note that options are numbered from top to bottom in the order shown on the boot screen and starting at zero (0):

    default <option number>
  • Save your changes and exit the editor

  • Regenerate to Grub configuration:

    sudo update-grub

The next time you reboot your machine, the option you entered above should be activated by default!


References and Further Reading:


HomeSite IndexDesktop GuideServer GuideHints and TipsHardware CornerVideo SectionContact Us

 sitelock verified Firefox Download Button