LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to Edit Boot Option for 2 OS install (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-edit-boot-option-for-2-os-install-875790/)

arezemi 04-19-2011 12:31 AM

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?

ss81 04-19-2011 01:05 AM

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.

mayursingru 04-19-2011 01:07 AM

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

arezemi 04-20-2011 04:03 AM

Thanks All.. Good Info.


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