Grub 2: Change default OS to boot to


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.

Advertisements

One Comment Add yours

  1. Prue says:

    Thankyouuuu

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s