LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-02-2003, 04:35 PM   #1
reetep
Member
 
Registered: Oct 2003
Location: UK
Distribution: Debian
Posts: 122

Rep: Reputation: 15
trouble changing default boot to linux


I currently boot into XP by default, but I'd like to change the default to Linux. I have editted the /boot/grub/grub.conf file as suggested by this tutorial:

http://www.redhat.com/docs/manuals/l...ootloader.html

(with particular reference to the paragraph just above the LILO sectiontwo thirds of the way down).

The grub.conf file now looks like this:

# 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,1)
# kernel /boot/vmlinuz-version ro root=/dev/hda2
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,1)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi
initrd /boot/initrd-2.4.20-8.img
title DOS
rootnoverify (hd0,0)
chainloader +1


It still boots into XP by default. Can anyone tell me what I've done wrong please? Many thanks, reetep.
 
Old 11-02-2003, 04:39 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I'm not an expert on grub by any means
(in fact, I've never used it! ;}) but I'd assume
that in the statement
default = 0
the 0 refers to
Code:
 rootnoverify (hd0,0)
                   ^this 0
I suggest trying a 1 ;)

Cheers,
Tink
 
Old 11-02-2003, 05:54 PM   #3
reetep
Member
 
Registered: Oct 2003
Location: UK
Distribution: Debian
Posts: 122

Original Poster
Rep: Reputation: 15
Thanks very much for taking the time to reply Tink. Unfortunately your suggestion hasn't worked. In fact there's no noticable difference - both OSs boot as before with no errors or problems, with XP being the default after the timeout.

Does anybody have any other suggestions? Thank you in advance, reetep.
 
Old 11-02-2003, 05:59 PM   #4
reetep
Member
 
Registered: Oct 2003
Location: UK
Distribution: Debian
Posts: 122

Original Poster
Rep: Reputation: 15
PS my understanding of the number 0 in (default=0) is that it refers to the first entry in the list; 1 refers to the second; 2 to the third etc.
 
Old 11-02-2003, 06:03 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Again, I don't know grub too well, but with
lilo, I need to run lilo after a modification
to the config file (otherwise all I achieved
was a config file that doesn't match what's
installed) :)

Cheers,
Tink
 
Old 11-04-2003, 08:30 AM   #6
reetep
Member
 
Registered: Oct 2003
Location: UK
Distribution: Debian
Posts: 122

Original Poster
Rep: Reputation: 15
Thanks a lot - that's what I wasn't doing. I thought that simply editting the config file was all I had to do.

reetep.
 
Old 11-04-2003, 01:14 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Well, I'm glad I helped in the end! :)

Cheers,
Tink, and God bless :)
 
  


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
HELP: changing default OS to boot.... kevingpo Fedora - Installation 4 12-13-2004 02:41 PM
Trouble changing default editor downinthemine Linux - Software 4 12-11-2003 04:48 PM
changing grub default boot sbcdivision63 Red Hat 5 11-09-2003 01:55 AM
changing grub boot default tumnus Linux - Newbie 2 02-04-2003 04:53 PM
lilo changing default boot pilotncontrol Linux - Software 2 04-02-2002 03:17 PM

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

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