LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 08-20-2005, 06:37 PM   #1
dyserq
LQ Newbie
 
Registered: Aug 2005
Posts: 26

Rep: Reputation: 15
Which Boots First ?


Ok ... well here is the problem
When i boot my computer
All i get is the selection of Fedora Core 4 but i would appreciate it if i wa able to have the Windows XP partition boot by default
If i am able to do this, how should i switch to Fedora Core 4 when i want to, would it be pressing F8 when the computer is starting up ?



Lol, i find that quite humourus
Best describes me with FC4
 
Old 08-20-2005, 06:38 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
If your using grub, edit your grub.conf file to change the default. The same if your using Lilo. I do believe grub is the default boot loader for Fedora so that's most likely what your going to have to edit.
 
Old 08-20-2005, 06:45 PM   #3
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 363

Rep: Reputation: 32
Depends if you have already installed windows or not. If you are going to install windows, then it will overwrite your MBR - which means you must either have a backup of the MBR or a boot floppy.

If you already have windows installed, then Fedora should have already detected it for you, if not, you will need to edit the grub configuration (I believe there are some GUI front-ends in Fedora for doing this).
 
Old 08-20-2005, 07:31 PM   #4
dyserq
LQ Newbie
 
Registered: Aug 2005
Posts: 26

Original Poster
Rep: Reputation: 15
I already have Windows installed in the partition at the front of the hard drive
Fedora Core 4 does notice it but you have to select which one you want to boot first, which is a real pain and would like windows to boot by default first
How do you edit the GRUB by the way ?
 
Old 08-20-2005, 09:32 PM   #5
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Hi there,
Its the partial content of my "grub.conf"

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 (hd0,8)
#          kernel /boot/vmlinuz-version ro root=/dev/hda9
#          initrd /boot/initrd-version.img
#boot=/dev/hda
default=3
timeout=10
splashimage=(hd0,8)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
	root (hd0,8)
	kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/
	initrd /boot/initrd-2.4.20-8.img
"default = 3"............if you have only two o/s then this value be either 0 or 1.
so accordingly is your boot sequence.
Change it and change your default boot option

#vi /etc/grub.conf ( path to grub.conf )

regards
 
Old 08-20-2005, 10:25 PM   #6
dyserq
LQ Newbie
 
Registered: Aug 2005
Posts: 26

Original Poster
Rep: Reputation: 15
Umm ... i'm kind of new at this
How do you change the GRUB sequence ?
 
Old 08-20-2005, 10:42 PM   #7
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Umm ... i'm kind of new at this
How do you change the GRUB sequence ?
Let me spoon feed you a bit more......... lol

I stated clearly that in order to change the default boot o/s you only need
to make change in your grub.conf.
There is a line in grub.conf "default = x"
since you have only two o/s, so the value of x is either 0 or 1
.
now it depends which o/s entry is first in your grub.conf
for x=0 it will boot the first entry o/s first ( by default )
and for x=1 it will boot the second entry o/s first ( by default )
play with this entry to learn something.

Hope now it will help you !!!
regards
 
Old 08-20-2005, 10:53 PM   #8
dyserq
LQ Newbie
 
Registered: Aug 2005
Posts: 26

Original Poster
Rep: Reputation: 15
Uhh ... ok
Thanks i will try it
 
Old 08-20-2005, 11:13 PM   #9
AngryLlama
Member
 
Registered: Sep 2004
Location: /dev/urandom
Distribution: Gentoo
Posts: 171

Rep: Reputation: 30
Maybe you don't know where to find grub.conf ?? It is usually in /boot/grub/grub.conf , you will need to be root to edit this file. You can change the order of the entries there. You can also change the line that says:
Code:
default n
where n is a number. Set n to 0 for the first entry, 1 for the second, etc..
 
Old 08-21-2005, 12:01 AM   #10
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Maybe you don't know where to find grub.conf ?? It is usually in /boot/grub/grub.conf
in which distro its there inside /boot ????
its iniside /etc

serious doubt man !!!
regards
 
Old 08-21-2005, 12:42 AM   #11
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally posted by ruudra
in which distro its there inside /boot ????
Gentoo for one has its grub.conf in /boot.
 
Old 08-21-2005, 01:26 PM   #12
AngryLlama
Member
 
Registered: Sep 2004
Location: /dev/urandom
Distribution: Gentoo
Posts: 171

Rep: Reputation: 30
I saw you suggest it being in /etc. This isn't true in all distributions. I was trying to help him/her find the file incase he/she is using such as distribution. I for one have my grub.conf inside /boot/grub.

Also note, you may have trouble finding it if:
A) grub.conf is in your boot partition
B) your boot partition is not automatically mounted (I don't auto mount mine since there is no reason to)

It this case you may have to mount /boot
 
Old 08-21-2005, 01:41 PM   #13
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 363

Rep: Reputation: 32
Quote:
Originally posted by ruudra
in which distro its there inside /boot ????
its iniside /etc

serious doubt man !!!
regards
In Debian, the grub configuration file is at /boot/grub/menu.lst
 
  


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
Install cd ignored, boots hd instead AlanH Linux - Software 1 05-10-2005 07:47 AM
Slackware 10 - Boots off the second cd but not first desiguy Linux - Newbie 6 07-03-2004 02:06 PM
Boots to CD, then says no CD entered Nevermore Fedora - Installation 2 07-03-2004 09:57 AM
dual boots................rather have rubber boots metal_monster Linux - Newbie 1 01-13-2004 12:24 PM
pc boots, but no video k4zau General 6 03-09-2003 09:58 PM


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