LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-06-2007, 01:43 PM   #1
marvelade
LQ Newbie
 
Registered: Dec 2006
Location: Belgium
Distribution: Mac OS X; Ubuntu 8.04 in a VM
Posts: 29

Rep: Reputation: 16
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
 
Old 04-06-2007, 02:03 PM   #2
cgjones
Member
 
Registered: Nov 2005
Location: Central New York
Distribution: Ubuntu
Posts: 405

Rep: Reputation: 31
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.
 
Old 04-06-2007, 02:07 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.

Last edited by acid_kewpie; 04-06-2007 at 02:08 PM.
 
  


Reply

Tags
boot, grub, windows



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to boot dual operating systems from grub shahz Linux - Server 5 09-19-2006 02:42 PM
3 Operating Systems James_the_Great Linux - Newbie 10 08-23-2006 06:40 PM
two operating systems at once scales Linux - Newbie 1 08-12-2006 11:40 PM
GRUB and Multiple operating systems jughead Linux - Software 2 11-21-2005 03:36 PM
Quick question: Adding operating systems to Grub. Fenster Linux - Newbie 5 08-21-2004 05:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:18 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration