PDA

View Full Version : Grub problem after up2date


ihadam1
12th May 2004, 01:51 AM
First of all, I'm new to all this, so I'm sure I'm just overlooking something very simple.

I recently installed Fedora onto my machine along with Windows XP, using GRUB to choose between to the two at startup. Everything was working great at this point. GRUB would start up with two options:
"Fedora Core (2.4.22-1.2115.nptl)"
"DOS"

Once I loaded Fedora for the first time, I ran up2date and I believe what I did was download the newer version of the Fedora kernel. Now when I boot up, GRUB lists three options (all of which work):
"Fedora Core (2.4.22-1.2188.nptl)"
"Fedora Core (2.4.22-1.2115.nptl)"
"DOS"

All I want are the most recent version of Fedora and DOS; I don't need the older version to still be an option.

How would I go about getting rid of this old version either from my computer or just from the GRUB list? Any help would be greatly appreciated.

Thanks! - Adam

jrblevin
12th May 2004, 02:31 AM
up2date installs the new kernel alongside the old one in case there is a problem, so you can boot the old one. If you only want to remove the Grub entry, you could just edit boot/grub/grub.conf and remove the lines associated with the old kernel. This is the sloppy way of going about it and will leave behind lots of files on your system.

If you want to be proper about it and remove all the files from the old kernel, you should uninstall the RPM for the old kernel. Running "rpm -e kernel-2.4.22-1.2115.nptl" as root should remove the old kernel files and the associated Grub menu entry.

You should doublecheck the package name first though by running "rpm -q kernel". This will list the kernel packages you have, then just choose the name of the old package and do "rpm -e kernel-<oldversion>".

jrblevin
12th May 2004, 02:32 AM

Also, if you installed the kernel source code, you will want to uninstall the old "kernel-source" package.

gonzalo76
14th May 2004, 01:24 AM
You should follow jrblevin's instruccion for deleting a kernel, anyway it's a good idea to leave it just in case of anything goes wrong with the actual running kernel.
You can 'comment' the old kernel lines with '#' if you don't want this kernel to appear as a boot option in /boot/grub/menu.lst.
Open a Terminal, log in as root with 'su -" command and type:
gedit /boot/grub/menu.lst
#title GNU/Linux Fedora Core 1
# root (hd0,2)
# kernel /boot/vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hdc=ide-scsi hdd=ide-scsi apm=off acpi=on vga=788
# initrd /boot/initrd-2.4.22-1.2115.nptl.img

Something stupid:
If I have Windows XP or 98 or whatever, I would like to see the exact Windows version in GRUB's boot menu. I mean, I don't like to see DOS as an option if I don't have it. DOS is not Windows XP, so why do I have to select DOS to start Windows XP?

Well, the solution is editing /boot/grub/menu.lst like this:

1. Open a Terminal, log in as root with 'su -' command and type:
gedit /boot/grub/menu.lst
2. Delete 'DOS' and add "Windows XP' like this:
title Microsoft Windows XP Pro
rootnoverify (hd0,0)
chainloader +1
3. Save it and reboot.
Good Luck !