LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 02-06-2004, 08:29 AM   #1
filosophem
Member
 
Registered: Oct 2003
Location: FR
Distribution: Slackware / Ubuntu
Posts: 32

Rep: Reputation: 15
How to edit grub.conf


I'm currently running WinXP and RH9 (kernel 2.4.20-8). Since i'm using linux more often than XP, how do I modify grub.conf (if I'm not mistaken of course) to make linux the default OS to load?

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


Cheers!!
 
Old 02-06-2004, 08:43 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Change the default=1 line to say default=0.

Last edited by jtshaw; 02-06-2004 at 09:06 AM.
 
Old 02-06-2004, 09:00 AM   #3
Shrike Valhalla
LQ Newbie
 
Registered: Feb 2004
Location: here
Distribution: all
Posts: 2

Rep: Reputation: 0
just go in there and start editing. if this does not work try a fresh install..........problem solved!
 
Old 02-06-2004, 09:05 AM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Heh... well see, the beauty of grub is even if you screw up the configuration file (though I am 100% possitive changed default=1 to default=0 is what you want... for the record) you can still boot your system by passing in commands manually through grubs command line on boot. So you should never need to reinstall if grub is on your mbr and there is a semi-working linux system on a partition somewhere.

Last edited by jtshaw; 02-06-2004 at 09:06 AM.
 
Old 02-07-2004, 03:04 AM   #5
filosophem
Member
 
Registered: Oct 2003
Location: FR
Distribution: Slackware / Ubuntu
Posts: 32

Original Poster
Rep: Reputation: 15
I did change default=0 and it's working fine, thanx jtshaw.
 
  


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
Edit the Grub.conf reply2vinay Linux - Hardware 1 07-26-2005 09:38 AM
I cannot edit grub.conf file!! Azzath Linux - Software 3 03-23-2005 02:00 PM
How to edit grub.conf? zeroz52 Linux - Newbie 27 03-02-2005 12:58 PM
How to edit grub.conf file? hnash53 Linux - Software 1 12-12-2003 12:33 AM
Edit grub.conf NoviceW Linux - General 1 11-11-2003 05:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:13 PM.

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