Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-19-2011, 12:31 AM   #1
LQ Newbie
Registered: Apr 2011
Posts: 2

Rep: Reputation: 0
Smile How to Edit Boot Option for 2 OS install

Hi all.. im a newbie..
Need help from you all how to edit boot option. I had install Win7 and Ubuntu in my laptop. I want to change boot order win7 at up and ubuntu at down. so if i turn on laptop in 8sec if i not choose which OS to enter, by default it will choose win7 to boot. anybody can help?
Old 04-19-2011, 01:05 AM   #2
LQ Newbie
Registered: Dec 2010
Posts: 1

Rep: Reputation: 0

Hi arezemi,
I presume you have installed Ubuntu 10.04 or 10.10. If you want to change the boot order in you have to edit the grub file.I am copy and pasting the extract from a website.I hope it will help you.

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_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`

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

# 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’

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

# Uncomment to disable generation of recovery mode menu entrys

To change the default boot option, you just need to change the GRUB_DEFAULT parameter. 0 is the first entry, so if you want windows to be your default boot option which is, say at, 2nd position in the grub menu, then you just need to change the GRUB_DEFAULT value to 1 and save the file and close it.

After that type the command below:

sudo update-grub
The are good documents in website on grub2.

Old 04-19-2011, 01:07 AM   #3
Registered: Nov 2010
Location: Pune
Distribution: CentOS
Posts: 51

Rep: Reputation: 5
Hi arezemi,
Instead of changing Win 7 to boot first you can change the timeout.
 vi /etc/grub.conf
After entering this file change the "timeout" field to whatever you want. Then save the changes and exit the editor. The next time you boot your system you will have more time to select the option. By the way the "timeout" field values are in "seconds".

Mayur Singru
Old 04-20-2011, 04:03 AM   #4
LQ Newbie
Registered: Apr 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks All.. Good Info.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Edit Grub when XP install won't boot jhinds Linux - Newbie 16 04-06-2009 04:44 PM
Debian install boot option Black Hawk Debian 2 12-06-2006 11:21 AM
Kind souls: help getting Mandriva install 2 boot? edit boot.ini/grub /boot device or NoMoreReinstallMS Linux - Newbie 1 08-09-2006 04:34 AM
Install via network boot option davee Linux - Networking 3 07-30-2003 08:06 AM
Mandrake 9 - Edit boot option in grub explorer Linux - Distributions 6 02-28-2003 03:36 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration