Click to See Complete Forum and Search --> : GRUB boot loader


altair
08-17-2003, 02:47 PM
I just installed RedHat Linux9 on my laptop w/ windows xp.

When the grub boot loader first loaded everything was fine. It showed my DOS (WIN XP) partition along w/ the new Linux partition. Both Load up just fine.

When I proceeded to update Linux everything seemed to go smoothly. I remember something about a kernal update along with a bunch of other programs that seemed to get updated. I new to linux so I just updated what it listed and rebooted my systems


When the grub loader initialized it list 2 linux choices along with my win xp. I can't remember what it says exactly but the two linux choices are identitcal except for some numbers at the end which look like version numbers? At any rate --- both linux choices boot up the linux OS. They seem to work fine as well as my Win Xp.

My question is how do I get rid of one of those linux choices so that my boot loader only lists win xp and linux? I tried doing an update with the installation disks so that I could sort of re-do the boot loader stuff but at the end of the update a message box popped up and said it didnt reconfigure the boot loader because a kernal wasn't installed. Again I'm very new to this and am trying to broaden my knowledge of OS such as linux. Any help would be greatly appreciated.

mdwatts
08-17-2003, 02:59 PM
The Redhat update has installed a newer kernel version and also kept the original.

You can manually edit /etc/grub.conf or /boot/grub/grub.conf and remove the section for the old kernel version.

Post the contents of grub.conf here if you need advise on what to delete.

altair
08-17-2003, 03:24 PM
Ok Here is the grub.conf file. I'm thinking the ..20-8 is the one to delete but i need to make sure.

Also, I'd like for the Loader to refer to my windows system as WinXP not DOS. Can I just rename it in this file to WinXP, or will that mess things up?


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

mdwatts
08-17-2003, 03:57 PM
Make the following changes (as root)

default=1
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-19.9)
root (hd0,1)
kernel /vmlinuz-2.4.20-19.9 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.20-19.9.img
# title Red Hat Linux (2.4.20-8)
# root (hd0,1)
# kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi
# initrd /initrd-2.4.20-8.img
title WinXP
rootnoverify (hd0,0)
chainloader +1

You will not see the old kernel version in the bootloader screen, DOS has been changed to WinXP and the default OS (default=1) will be WinXP.

altair
08-17-2003, 04:00 PM
thanks a bunch...I couldn't have done it w/out you.

SuperNu
08-18-2003, 12:13 AM
By making those changes, the old kernel is still installed on your system. You can use rpm -e kernel-2.4.20-8 to remove your old kernel. This will also remove the entry from /boot/grub/grub.conf. Just be careful when removing RPMs. Be sure to check man rpm from the command line if you need more assistance.

--SN