rh 7.2 + new kernel + grub
Hilast night i downloaded the linux 2.5.0 kernel, and recompiled it in /usr/local/src/linux
after i compiled, i copied the system map and vmlinuz files
cd /boot
cp /usr/local/src/linux-2.5.0/arch/i386/boot/bzImage ./vmlinuz-2.5.0
cp /usr/local/src/linux-2.5.0/System/map /boot/System.map-2.5.0
etc
however, this box is redhat 7.2 using grub to boot. I haven't used grub much, and i really don't want to mess up anything. I usually use lilo, alot easier for me.
i ran cat /etc/grub.conf
and i saw:
# 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,0)
# kernel /vmlinuz-version ro root=/dev/hda6
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.7-10)
root (hd0,0)
kernel /vmlinuz-2.4.7-10 ro root=/dev/hda6
initrd /initrd-2.4.7-10.img
So then what i did was i used the mkinitrd or whatever command to create a .img file
(in /boot) and made the file name:
initrd-2.5.0.img
then i backed up grub.conf
then i edited grub.conf and it now looks like this:
# cat /etc/grub.conf
# 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,0)
# kernel /vmlinuz-version ro root=/dev/hda6
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat (2.5.0)
root (hd0,0)
kernel /vmlinuz-2.5.0 ro root=/dev/hda6
initrd /initrd-2.5.0.img
title Red Hat Linux (2.4.7-10)
root (hd0,0)
kernel /vmlinuz-2.4.7-10 ro root=/dev/hda6
initrd /initrd-2.4.7-10.img
After saving, i ran ls -al /boot, and it looks like this now:
[root@mtr-internet root]# ll /boot/
total 3.3M
drwxr-xr-x 4 root root 1.0k Aug 27 15:31 .
drwxr-xr-x 20 root root 1.0k Aug 28 02:54 ..
-rw-r--r-- 1 root root 5.7k Jun 24 2001 boot.b
-rw-r--r-- 1 root root 612 Jun 24 2001 chain.b
drwxr-xr-x 2 root root 1.0k Feb 24 2002 grub
-rw-r--r-- 1 root root 320k Feb 24 2002 initrd-2.4.7-10.img
-rw-r--r-- 1 root root 258k Aug 27 14:56 initrd-2.5.0.img
lrwxrwxrwx 1 root root 14 Feb 24 2002 kernel.h -> kernel.h-2.4.7
-rw-r--r-- 1 root root 405 Feb 24 2002 kernel.h-2.4.7
drwxr-xr-x 2 root root 12k Feb 24 2002 lost+found
-rw-r--r-- 1 root root 23k Jun 24 2001 message
lrwxrwxrwx 1 root root 20 Feb 24 2002 module-info -> module-info-2.4.7-10
-rw-r--r-- 1 root root 13k Sep 6 2001 module-info-2.4.7-10
-rw-r--r-- 1 root root 640 Jun 24 2001 os2_d.b
lrwxrwxrwx 1 root root 19 Feb 24 2002 System.map -> System.map-2.4.7-10
-rw-r--r-- 1 root root 425k Sep 6 2001 System.map-2.4.7-10
-rw-r--r-- 1 root root 476k Aug 27 15:31 System.map-2.5.0
lrwxrwxrwx 1 root root 16 Feb 24 2002 vmlinuz -> vmlinuz-2.4.7-10
-rw-r--r-- 1 root root 783k Sep 6 2001 vmlinuz-2.4.7-10
-rw-r--r-- 1 root root 985k Aug 27 15:15 vmlinuz-2.5.0
====================================
The machine went down for a reboot, however when i run uname -a i still see the redhat defualt kernel
2.4.7-10 #1 Thu Sep 6 17:27:27 EDT 2001 i686 unknown
Does anyone konw what I am doing wrong?