1.i've made a copy of exixting kernel as testlinux.
2.configured,compiled,and copied the bzimage to /boot
3.renamed the old system.map as systemold.map and copied the new system.map into the /boot and made a symlink to it.
4.then executed: mkinitrd initrd-new.img 2.4.21-4.EL
5.copied this initrd-new.img to /boot
6.modified the existing grub.conf to accomodate the new testlinux option.
7.my grub.conf now looks like this:
# 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,5)
# kernel /vmlinuz-version ro root=/dev/hda7
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,5)/grub/splash.xpm.gz
title Red Hat Enterprise Linux WS (2.4.21-4.EL)
root (hd0,5)
kernel /vmlinuz-2.4.21-4.EL ro root=LABEL=/
initrd /initrd-2.4.21-4.EL.img
title DOS
rootnoverify (hd0,0)
chainloader +1
title Test Linux WS (2.4.21-4.EL)
root (hd0,5)
kernel /testlinuz ro root=LABEL=/
initrd /initrd-new.img
# 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,5)
# kernel /vmlinuz-version ro root=/dev/hda7
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,5)/grub/splash.xpm.gz
title Red Hat Enterprise Linux WS (2.4.21-4.EL)
root (hd0,5)
kernel /vmlinuz-2.4.21-4.EL ro root=LABEL=/
initrd /initrd-2.4.21-4.EL.img
title DOS
rootnoverify (hd0,0)
chainloader +1
title Test Linux WS (2.4.21-4.EL)
root (hd0,5)
kernel /testlinuz ro root=LABEL=/
initrd /initrd-new.img
i'm getting the following errors during booting:
VFS: cannot open root device "LABEL=/"
Please append a corect "root=" boot option
Kernel panic:VFS :Unable to mount root fs on 00.00
The booting process then stopped
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com