LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-19-2011, 12:31 AM   #1
arezemi
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
ss81
LQ Newbie
 
Registered: Dec 2010
Posts: 1

Rep: Reputation: 0
Grub

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_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

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

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 help.ubuntu.com website on grub2.


--Regard,
Sumit.
 
Old 04-19-2011, 01:07 AM   #3
mayursingru
Member
 
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.
Code:
 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".



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

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:53 PM.

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