LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   order of operating systems in GRUB bootlaoder (https://www.linuxquestions.org/questions/linux-general-1/order-of-operating-systems-in-grub-bootlaoder-543853/)

marvelade 04-06-2007 02:43 PM

order of operating systems in GRUB bootlaoder
 
Hi,

Can I change the order of the operating systems in the GRUB bootloader? I see that the text in the file "menu.lst" resembles the options presented when I boot. Can I edit the contents of the file to have windows XP at the top?

The problem is that after a certain amount of seconds the top OS boots automatically. I'd like to have windows boot by default when I take no action.

Best regards,
Marvelade

P.S.: right now the contents are these. I'd like to move the last portion to the top but I guess this could lead to trouble:

title Ubuntu, kernel 2.6.17-10-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hdb1 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot

title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hdb1 ro single
initrd /boot/initrd.img-2.6.17-10-generic
boot

title Ubuntu, memtest86+
root (hd1,0)
kernel /boot/memtest86+.bin
quiet
boot

### 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/hda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1

cgjones 04-06-2007 03:03 PM

I'm basing this on a Debian system, but the results should be the same. On the first entry, remove the savedefault line.
Quote:

title Ubuntu, kernel 2.6.17-10-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hdb1 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot
I never remember how the numbering works, but I'm pretty sure that removing the savedefault line should work. You can also set the default to 0 towards the top of menu.lst.

acid_kewpie 04-06-2007 03:07 PM

you can edit them yes, you may prefer to use the option "default 1" in the top settings, which would boot the 2nd option (the list starts at number 0 like all good lists should)

yeah just found that savedefault command too... obviously you mightn't want to always boot the last one, so a formal default may still be preferred.


All times are GMT -5. The time now is 07:48 PM.