Change Default Boot Order for Grub 2 in Ubuntu 11.10 Oneiric Ocelot

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading ... Loading ...

Ubuntus 11.10 use Grub2. This post discusses the procedure to change the default boot choice for Grub for multi OS setting. If you want to make Windows to boot automatically by default, read on.

With Grub 2 you can no longer edit grub.conf or menu.lst files located in /boot/grub folder. The file to be edited is now “grub” located in /etc/default/ folder, you can edit it by running the following command from terminal (sudo gedit /etc/default/grub). The contents would look like this:

If you change this file, run ‘update-grub’ afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”
GRUB_CMDLINE_LINUX=”"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD …)
#GRUB_BADRAM=”0×01234567,0xfefefefe,0x89abcdef,0xefefefef”

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo’
#GRUB_GFXMODE=640×480

# Uncomment if you don’t want GRUB to pass “root=UUID=xxx” parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entrys
#GRUB_DISABLE_LINUX_RECOVERY=”true”

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE=”480 440 1″

To change the default boot option, you just need to change the GRUB_DEFAULT parameter. 0 refers to the first entry, so if you want windows to be your default boot option which is, say at, 5th position in the grub menu (see screenshot below)

then you just need to change the GRUB_DEFAULT value to 4 and save the file and close it. If you want to change the Auto Boot preset time then you would need to change the value of GRUB_TIMEOUT parameter, it should be assigned a value in seconds and would determine the delay in seconds before grub boots the default choice, automatically. Now from the terminal run following command and your grub default boot order would be changed when you boot the next time:

sudo update-grub

GUI Approach

Just install the startup manager by using synaptic or running the following command

sudo apt-get install startupmanager

Now launch it by typing following at command line

sudo startupmanager

and you can change the boot order using graphical interface by selecting your choice from the drop-down menu

On reboot Windows 7 should be the default choice and should boot automatically

 

If you found this useful, please consider leaving a comment or liking us on Facebook or following us on Twitter or subscribing to the RSS feed to have future articles delivered to your feed reader.

Possibly related posts (generated automatically):

  1. Change Default Boot Order for Grub 2 in Ubuntu 11.04 Natty or 10.10, 10.04 etc
  2. Change Default Boot Order for Grub in Ubuntu 10.10 Maverick Meerkat
  3. Change Default Boot Order in Grub for Fedora 13
  4. Change Default Boot Order Fedora 15 Lovelock
  5. Change Default Boot Order / Sequence for Grub2 in Fedora 16 Verne
  6. How to Change Default Grub Theme or Splash Image in Ubuntu 11.04 and 10.10
  7. Dual Boot Windows 7 and Ubuntu 11.10 Oneiric Ocelot
  8. Uninstall Grub (Replace Grub with Windows 7 Boot Loader)

You might also like

Change Default Boot Order / Sequence for Grub2 in Fedora 16 Verne Fedora finally...
Change Default Boot Order for Grub 2 in Ubuntu 11.04 Natty or 10.10, 10.04 etc Ubuntus 9.10,...
Change Default Boot Order in Grub for Fedora 13 You might need...
Change Default Boot Order Fedora 15 Lovelock To change default...

About the Author

has written 1314 posts on this blog.

Meditating towards his "nerdvana", lifehacker is a teacher by the day and a nerdy blogger by the night. He lives to learn and yearns to learn living.

Write a Comment

Gravatars are small images that can show your personality. You can get your gravatar for free today!

*
Your Ad Here

Copyright © 2012 Hack Your Life!. All rights reserved.
Proudly powered by WordPress. Developed by Deluxe Themes