[SOLVED] Dual Boot - Boot order

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
nono

[SOLVED] Dual Boot - Boot order

Post by nono »

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 LockBot on Wed Dec 28, 2022 7:16 am, edited 4 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Fred

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

Post by Fred »

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
nono

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

Post by nono »

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?
Aging Technogeek

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

Post by Aging Technogeek »

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.
nono

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

Post by nono »

Thank you for the information!

I love this community! 8)

My problem is now solved.
Locked

Return to “Installation & Boot”