LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   How to edit grub.conf (https://www.linuxquestions.org/questions/red-hat-31/how-to-edit-grub-conf-142951/)

filosophem 02-06-2004 08:29 AM

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!!

jtshaw 02-06-2004 08:43 AM

Change the default=1 line to say default=0.

Shrike Valhalla 02-06-2004 09:00 AM

just go in there and start editing. if this does not work try a fresh install..........problem solved!

jtshaw 02-06-2004 09:05 AM

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.

filosophem 02-07-2004 03:04 AM

I did change default=0 and it's working fine, thanx jtshaw.


All times are GMT -5. The time now is 10:45 AM.