LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-07-2006, 04:55 AM   #1
japloy
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, 05:05 AM   #2
ethics
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, 05:06 AM   #3
salparadise
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, 05:09 AM   #4
b0uncer
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

Code:
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, 07:39 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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, 10:31 AM   #6
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

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


Reply



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 07:07 PM
Ubuntu and GRUB loader miickEe. Ubuntu 11 08-23-2005 10:49 PM
How to configure boot-loader. quaylet Linux - Software 1 04-05-2005 03:17 PM
which Boot Loader I should use to configure Linux Redhat Advance Server 2.1 ashley75 Linux - General 1 08-25-2003 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:15 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