I compiled my kernel... RHEL5 and kernel version 2.6.18-8.el5. I compiled the new kernel 22.214.171.124. The steps i followed are:
First i unpatched the kernel into a directory /home/src and it came in a folder linux-126.96.36.199. 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-188.8.131.52.img 184.108.40.206
Then i copied the kenel and the system map
$cp arch/x86/boot/bzImage /boot/bzImage-220.127.116.11
$cp System.map /boot/System.map-18.104.22.168
$ln -s /boot/System.map-22.214.171.124 /boot/System.map
Then i changed the grub file in /etc/grub.conf and added the following lines:
title Test Kernel (126.96.36.199)
root(hd0,5) //this was given as in the earlier entry
kernel /bzImage-188.8.131.52 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?