Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-07-2006, 05:55 AM   #1
LQ Newbie
Registered: Mar 2006
Posts: 6

Rep: Reputation: 0
configure ubuntu boot loader

Hi every body
I had installed ubuntu 6 on my computer and when i want to go automaticaly to windows the boot loader load ubuntu. I want to change it to windows.
How can i do that?
In fedora, redhat, suse and... there is a small program that we can configure boot loader.
Is there that brogram in ubuntu?
Thanks to all
Old 07-07-2006, 06:05 AM   #2
Senior Member
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
i think ubuntu uses grub?

either /etc/grub.conf or /boot/grub/menu.lst (or something similar) check the file, there is a line for default, just put the windows entry number in instead.

be very careful editing this file btw
Old 07-07-2006, 06:06 AM   #3
Senior Member
Registered: Nov 2002
Location: Birmingham UK
Distribution: Various
Posts: 1,736

Rep: Reputation: 146Reputation: 146
You mean you want Windows to be the first entry in the boot loader menu?

You need to edit the following file... /boot/grub/menu.lst

In a terminal type;

sudo gedit /boot/grub/menu.lst

and when the file opens in the text editor you need to have a good look at the file and then block copy the Windows section so it is above the first Ubuntu section.
If you get stuck, post the contents of menu.lst here.
Old 07-07-2006, 06:09 AM   #4
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Not that I'd be aware of such a program..but it's really as simple as editing a text file /boot/grub/menu.lst

You need to be root to do this, so open a console and do

sudo editorname
where editorname is your favourite text editor, like gedit for example. Now once the editor is open, open /boot/grub/menu.lst with it and scroll down the file; at the bottom you should see a few lines where Grub describes your Windows operating system (I think there are something like four lines there, but you'll see which ones they are, they're one after another; the first title line has the entry title Windows XP (for example) in it, so that's the first line and the rest are below that).

Now cut the lines describing Windows and scroll up the file. Somewhere on your way up you'll see a line telling you "here starts the automatic kernel list" (not exactly with those words, but you can't miss). Go a few lines above that, search a place where there is no text (a blank line) and paste the Windows-lines (those you cut'ed) there. Fine. Now your Windows entry should be on top of the list; all the Linux kernels are added below (so this config won't change even when you upgrade your kernel); because the default option is the first in the list (0th), your Windows now gets loaded by default, and Linux only if you choose to do so. Save and exit the editor.
Old 07-07-2006, 08:39 AM   #5
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
All you have to do is change the line that says "default= "
"0" for the first OS on the list, etc.
Old 07-07-2006, 11:31 AM   #6
Senior Member
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
And remember Grub counts from 0.

The number after the "defalut" means the system Grub must boot if the user couldn't make up his/her mind after the time stayed in the "timeout" elapses.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu installed, but with no boot loader dotancohen Linux - Newbie 4 12-28-2006 08:07 PM
Ubuntu and GRUB loader miickEe. Ubuntu 11 08-23-2005 11:49 PM
How to configure boot-loader. quaylet Linux - Software 1 04-05-2005 04:17 PM
which Boot Loader I should use to configure Linux Redhat Advance Server 2.1 ashley75 Linux - General 1 08-25-2003 04:59 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration