October 20, 2020

Out Here In The Fields

…of musings and ramblings

Grub 2: Change default OS to boot to

1 min read

This is fairly a simple task.

First, on your grub screen, locate the entry that you want to setup as the default choice. In my case, it was my Maverick install, located at 7 from the top.

Next, open the /boot/grub/grub.cfg,

ikhsan@Mach5-NX:/$ sudo nano /boot/grub/grub.cfg

Find the line that says set default=”0″ , change it to set default=”7″  or whatever the correct number on your system is

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
set default="7"

…and then reboot.

1 thought on “Grub 2: Change default OS to boot to

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Copyright © All rights reserved. | Newsphere by AF themes.