[SOLVED] Dual Boot - Boot order

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read this

[SOLVED] Dual Boot - Boot order

Postby nono on Tue May 26, 2009 3:52 am

here is a part of my /boot/grub/menu.lst

Code: Select all
## ## End Default Options ##

title      Linux Mint 7 Gloria, kernel 2.6.28-11-generic
root      (hd0,5)
kernel      /boot/vmlinuz-2.6.28-11-generic root=/dev/sda6 ro quiet splash
initrd      /boot/initrd.img-2.6.28-11-generic
quiet

title      Linux Mint 7 Gloria, kernel 2.6.28-11-generic (recovery mode)
root      (hd0,5)
kernel      /boot/vmlinuz-2.6.28-11-generic root=/dev/sda6 ro single
initrd      /boot/initrd.img-2.6.28-11-generic

title      Linux Mint 7 Gloria, memtest86+
root      (hd0,5)
kernel      /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title      Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title      Windows XP Ultimate
rootnoverify   (hd0,1)
savedefault
makeactive
chainloader   +1
[/code]

How can I make my Windows XP Ultimate boot first then Linux Mint second?

I read that i should just rearrange the order, but I don't want to mess my system. (Maybe I'm just scared)
It will be great if anybody can edit my /boot/grub/menu.lst to my specific needs.

Again, I like xp to boot first, Mint should be second.

Thank you! More Power to Linux Mint and its people! :D
Last edited by nono on Fri May 07, 2010 2:31 am, edited 3 times in total.
Reminder: If your problem is already solved or your topic is fullfilled, kindly put [SOLVED] on your topic title.
User avatar
nono
Level 3
Level 3
 
Posts: 160
Joined: Sat Jun 28, 2008 11:50 pm
Location: Philippines

Linux Mint is funded by ads and donations.
 

Re: Boot order specific help. (Scared of setting up XP again)

Postby Fred on Tue May 26, 2009 4:33 am

nono,

Look up at the top of your menu.lst file and you will see what I have below, or something similar.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0

Change the default to 4 like I have below.

default 4

That should do it for you. :-)

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Boot order specific help. (Scared of setting up XP again)

Postby nono on Tue May 26, 2009 7:17 am

Thank you sir Fred!

That worked. :D
I've read your posts while browsing here in the forum, and I think you are a very bright person.

One last question here, when I changed the default to 4, it automatically highlighted the xp os on boot menu. (That's what I'm looking for, thank you)
Does this mean that I can choose what to boot according to their position in the boot menu?

For example, if I'd like to boot mem test first, then I should make the default to 3?
Reminder: If your problem is already solved or your topic is fullfilled, kindly put [SOLVED] on your topic title.
User avatar
nono
Level 3
Level 3
 
Posts: 160
Joined: Sat Jun 28, 2008 11:50 pm
Location: Philippines

Re: Boot order specific help. (Scared of setting up XP again)

Postby Aging Technogeek on Tue May 26, 2009 7:33 am

That is correct. Your default boot will be whatever the default number points to, even the line "Other Operating Systems". Although this is not bootable, it is listed in the menu as a title so if the wrong default number is entered, Grub will try to boot from it. When choosing a default OS to boot into, just count the title lines in the menu, always keeping in mind that Grub starts counting at zero, not one, so the fifth title will be number 4 to Grub.
Image

Registered Linux User 483387
User avatar
Aging Technogeek
Level 13
Level 13
 
Posts: 4605
Joined: Sun Jan 11, 2009 9:54 am
Location: Right about here

Re: Boot order specific help. (Scared of setting up XP again)

Postby nono on Tue May 26, 2009 7:48 am

Thank you for the information!

I love this community! 8)

My problem is now solved.
Reminder: If your problem is already solved or your topic is fullfilled, kindly put [SOLVED] on your topic title.
User avatar
nono
Level 3
Level 3
 
Posts: 160
Joined: Sat Jun 28, 2008 11:50 pm
Location: Philippines


Return to Installation & Boot

Who is online

Users browsing this forum: Bing [Bot] and 23 guests