LinuxQuestions.org
Help answer threads with 0 replies.
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 12-07-2004, 04:38 PM   #1
BorderPatrol
LQ Newbie
 
Registered: Dec 2004
Location: Look outside your window
Distribution: FC3, DSL, PALM OS, XP
Posts: 12

Rep: Reputation: 0
Grub loader


I have FC3 and XP on a dual boot. How do i change it so that it defaults to XP? I need it that way for the family.
 
Old 12-07-2004, 04:50 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,025

Rep: Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890
Edit the /etc/grub.conf file and change the default value. The value starts at 0 (zero) for the first menu i.e. title entry and counts up from there.
Example:
...
default=1
...
title linux (value = 0)
.....
title windows (value = 1)
...
title kernel xxxx (value = 2)
....
The default boot is windows.

Last edited by michaelk; 12-07-2004 at 05:05 PM.
 
Old 12-07-2004, 04:51 PM   #3
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
Hi!

You need to edit the file (in Linux) /etc/grub.conf

Open the file in some kind of text editor. It looks a little like this:
Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,1)
#          kernel /vmlinuz-version ro root=/dev/hda3
#          initrd /initrd-version.img
#boot=/dev/hda2
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Red Hat Linux (2.4.7-10)
	root (hd0,1)
	kernel /vmlinuz-2.4.7-10 ro root=/dev/hda3 hdc=ide-scsi
	initrd /initrd-2.4.7-10.img
title Windows 2000
	rootnoverify (hd0,0)
	chainloader +1
The easiest thing is to move the block starting with "title" and ending with "chainloader +1" above the block starting with "title Red Hat Linux". Alternatively, change "default=0" to "default=1". Next time you boot, it will be as you wanted.

If your file looks very different from this, or if you hesitate, post your file here and we can help you sort it out.

Good luck!
Martin
 
Old 12-08-2004, 12:03 PM   #4
BorderPatrol
LQ Newbie
 
Registered: Dec 2004
Location: Look outside your window
Distribution: FC3, DSL, PALM OS, XP
Posts: 12

Original Poster
Rep: Reputation: 0
Ok I will give it a try when I get home from school and see what happens.
 
Old 12-12-2004, 02:18 PM   #5
BorderPatrol
LQ Newbie
 
Registered: Dec 2004
Location: Look outside your window
Distribution: FC3, DSL, PALM OS, XP
Posts: 12

Original Poster
Rep: Reputation: 0
Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd1,0)
#          kernel /boot/vmlinuz-version ro root=/dev/hdb1
#          initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd1,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.9-1.681_FC3)
	root (hd1,0)
	kernel /boot/vmlinuz-2.6.9-1.681_FC3 ro root=LABEL=/ rhgb quiet
	initrd /boot/initrd-2.6.9-1.681_FC3.img
title Fedora Core (2.6.9-1.667)
	root (hd1,0)
	kernel /boot/vmlinuz-2.6.9-1.667 ro root=LABEL=/ rhgb quiet
	initrd /boot/initrd-2.6.9-1.667.img
title Other
	rootnoverify (hd0,0)
	chainloader +1
That is what mine looks like. Should I just change "default=0" to default=2"?
 
Old 12-12-2004, 02:46 PM   #6
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Yes.
Change "default=0" to "default=2"
 
Old 12-12-2004, 06:36 PM   #7
BorderPatrol
LQ Newbie
 
Registered: Dec 2004
Location: Look outside your window
Distribution: FC3, DSL, PALM OS, XP
Posts: 12

Original Poster
Rep: Reputation: 0
Thank you
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub Loader MacaveliMC Ubuntu 5 09-29-2005 12:07 AM
GRUB loader glenn69 Linux - Newbie 10 08-31-2003 12:32 PM
grub loader derekandjac Linux - Newbie 2 02-26-2003 03:06 PM
GRUB loader tszhim Linux - General 4 02-09-2003 01:00 PM
Help! Grub Loader! djsktbrd Linux - Newbie 5 12-27-2002 01:34 AM

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

All times are GMT -5. The time now is 11:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration