LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 08-10-2013, 07:26 PM   #1
wlaw
Member
 
Registered: Jun 2004
Location: HK
Distribution: Ubuntu
Posts: 242

Rep: Reputation: 30
How to change the boot sequence in grub ?


I have ubuntu as default OS, however, I would like to change the default OS to win xp. How can this be done? Thank you.
 
Old 08-10-2013, 09:35 PM   #2
superweijiafeng
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Rep: Reputation: Disabled
When boot up, remember the line number where xp lies.

After login. Open a terminal,
Quote:
sudo gedit /etc/default/grub
change the line "GRUB_DEFAULT=0" to the xp line number, then save and quit.

Quote:
sudo update-grub
to update the grub.

reboot to see if it works.

Last edited by superweijiafeng; 08-10-2013 at 09:37 PM.
 
Old 08-11-2013, 04:48 AM   #3
wlaw
Member
 
Registered: Jun 2004
Location: HK
Distribution: Ubuntu
Posts: 242

Original Poster
Rep: Reputation: 30
Thank you ! BUt I could not find the xp line, can you help ???Thanks !

Quote:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'

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 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="0x01234567,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=640x480

# 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 entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
 
Old 08-11-2013, 04:54 AM   #4
wlaw
Member
 
Registered: Jun 2004
Location: HK
Distribution: Ubuntu
Posts: 242

Original Poster
Rep: Reputation: 30
How to change the boot sequence in grub ?

It's done. Thank you.
 
Old 08-16-2013, 08:45 AM   #5
rsleventhal
Member
 
Registered: Apr 2007
Location: Sunny Florida, USA
Distribution: CentOS, RHEL, U/X/Kubuntu
Posts: 36

Rep: Reputation: 15
Quote:
Originally Posted by wlaw View Post
It's done. Thank you.
For completion, please post your solution so that others may benefit from it

Thanks,
-Ray
 
  


Reply

Tags
boot


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
How to change the boot sequence in Grub ? wlaw Linux - Newbie 5 08-10-2013 09:38 AM
[SOLVED] Boot sequence change scopiansl Linux - Server 1 09-30-2011 03:44 AM
how can I change the boot sequence? stevendkurtz Linux - Newbie 6 01-13-2008 07:25 PM
can't change boot sequence er20ic Linux - Newbie 6 11-06-2006 02:51 PM
How can I change my boot sequence chinaundead Mandriva 4 03-11-2004 03:57 AM


All times are GMT -5. The time now is 01:10 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration