I compiled my kernel... RHEL5 and kernel version 2.6.18-8.el5. I compiled the new kernel 188.8.131.52. The steps i followed are:
First i unpatched the kernel into a directory /home/src and it came in a folder linux-184.108.40.206. Then i cd'd into the folder
After that i ran the following command:
$make xconfig (where i removed the ext3 file system, only change i made)
Then i created initial ramdisk
$mkinitrd /boot/initrd-220.127.116.11.img 18.104.22.168
Then i copied the kenel and the system map
$cp arch/x86/boot/bzImage /boot/bzImage-22.214.171.124
$cp System.map /boot/System.map-126.96.36.199
$ln -s /boot/System.map-188.8.131.52 /boot/System.map
Then i changed the grub file in /etc/grub.conf and added the following lines:
title Test Kernel (184.108.40.206)
root(hd0,5) //this was given as in the earlier entry
kernel /bzImage-220.127.116.11 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
Then i rebooted the system... and from the grub menu chose the Test Kernel..
but it gives the error...
mount: error mounting /dev/root on /sysroot as ext3: No such device
setuproot: moving /dev failed: No such file or directory
setuproot: error mouting /proc: No such file or directory
setuproot: error mouting /sys: No such file or directory
swutchroot: mount failed: No such file or directory
kernel panic - not sysncing : attempted to kill init!
Could anyone please help me in removing this error and properly compile the kernel?