Changing Default OS On Dual-Boot System (Ubuntu)
By Rich Menga on Oct 22, 2008 in Linux, Operating Systems | comments(7)
For those of you out there that run a dual-boot system with Windows XP and Ubuntu, you’ve noticed that Ubuntu is the default OS that loads on each system startup. There is a way to change this so that XP is the default OS instead.
Full documentation:
https://help.ubuntu.com/community/GrubHowto/ChangeDefaultOS
What that documentation instructs you to do:
The boot order list is in a text file called menu.lst. You can edit this using a terminal text editor or by using gedit (a GUI-based text editor).
The OS choice in menu.lst is defined by the default line and title.
If for example the default num is set to 0 and you have the following in your grub.lst:
title Ubuntu, kernel 2.6.15-27-amd64-generic ... title Ubuntu, memtest86+ ... title Other operating systems: ... title Microsoft Windows XP Home
“0″ is representative of the first title (it starts from 0, not 1), so you would want the default num to be 4 to start Windows XP first.
For those asking “Um.. okay, so Other operating systems: is technically treated as an OS choice?” Yes it is. That’s the way it’s done in order to display it in the menu on boot.
On my personal system, Windows XP Professional is listed as title 6.
This may sound confusing but it isn’t. All you have to do is when counting the title entries, find the first one (which is 0) then count down until you find the Windows XP entry. Change default num to that number, save the file and reboot. If successful, XP will start first on boot.


