LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-18-2005, 02:51 AM   #1
newuser455
Member
 
Registered: May 2004
Location: Texas
Posts: 277

Rep: Reputation: 30
GRUB Default


I just installed Lindows 5-0 as my secondary OS to Windows XP. How can I reconfigure the Boot Loader to boot Windows by default, if no OS is selected after a certain amount of seconds (that was how FC4 was)?

Thanks in advance.

Last edited by newuser455; 07-18-2005 at 03:02 AM.
 
Old 07-18-2005, 03:13 AM   #2
Chuckinator
Member
 
Registered: Feb 2005
Distribution: Gentoo
Posts: 34

Rep: Reputation: 15
That's easy! Look in /boot/grub for a file called menu.lst or possibly grub.conf. Open up the file and find the line:
Code:
default 0
Next, look further down the file for the entries for the two operating system. It will look similar to this:
Code:
title=Linux
root (hd0,0)
kernel /boot/kernel root=/dev/sda1 vga=0x318 video=vesafb

title=Windows XP
root (hd0,3)
makeactive
chainloader +1
Change the number after "default" to match the position that the Windows entry appears at (positions start at the number zero). It will probably be the second entry so change the number to "1". I hope that was clear enough.
 
Old 07-18-2005, 03:21 AM   #3
newuser455
Member
 
Registered: May 2004
Location: Texas
Posts: 277

Original Poster
Rep: Reputation: 30
Thanks for the help. I have never done a dual boot, or anything to do with grub.
 
Old 07-18-2005, 03:33 AM   #4
newuser455
Member
 
Registered: May 2004
Location: Texas
Posts: 277

Original Poster
Rep: Reputation: 30
Oh.. one more thing.. how do i specify how long it should wait before booting the default? Currently, it just waits for me to select something..
 
Old 07-18-2005, 03:51 AM   #5
Chuckinator
Member
 
Registered: Feb 2005
Distribution: Gentoo
Posts: 34

Rep: Reputation: 15
Once again, very easy . Just add
Code:
timeout [number of seconds you want grub to wait]
to the top of the grub configuration file.
 
Old 07-18-2005, 06:37 PM   #6
newuser455
Member
 
Registered: May 2004
Location: Texas
Posts: 277

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Chuckinator
That's easy! Look in /boot/grub for a file called menu.lst or possibly grub.conf. Open up the file and find the line:
Code:
default 0
Next, look further down the file for the entries for the two operating system. It will look similar to this:
Code:
title=Linux
root (hd0,0)
kernel /boot/kernel root=/dev/sda1 vga=0x318 video=vesafb

title=Windows XP
root (hd0,3)
makeactive
chainloader +1
Change the number after "default" to match the position that the Windows entry appears at (positions start at the number zero). It will probably be the second entry so change the number to "1". I hope that was clear enough.
Ok. I just tried to do this... but there is no grub.conf in /boot/grub.
 
Old 07-18-2005, 07:02 PM   #7
newuser455
Member
 
Registered: May 2004
Location: Texas
Posts: 277

Original Poster
Rep: Reputation: 30
Nevermind, found it. The file was called something else. I can't remember the exact name, but it was xxxx.list. Thanks for your help. I now have it configureed how I want
 
  


Reply


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
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 08:01 PM
changing the default in grub hari78 Linux - Newbie 2 06-03-2005 10:43 AM
Changing default OS in Grub .95 gautcha Linux - Newbie 8 05-03-2005 11:30 PM
how to change default os in Grub eye Linux - Software 3 05-16-2003 08:10 AM
Grub default OS to be changed uttamsaxena Linux - General 4 06-14-2002 07:22 AM


All times are GMT -5. The time now is 02:57 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration