Operating System - Linux
1827822 Members
2627 Online
109969 Solutions
New Discussion

Problem in installing new kernel

 
Pranav Tendulkar
New Member

Problem in installing new kernel

hello,
i am a new user to Red Hat Linux Enterprise Edition 4.1
I am trying to install a new kernel 2.6.15.6 on my Linux.

I have compiled the kernel and copied bzImage to /boot partition.
Also I have modified the grub.conf file
it is listed as

# 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,2)
# kernel /vmlinuz-version ro root=/dev/sda6
# initrd /initrd-version.img
#boot=/dev/sda
default=2
timeout=5
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux 2.6.15.6
root (hd0,2)
kernel /vmlinuz-2.6.15.6.img ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.15.6.img
title Red Hat Enterprise Linux AS (2.6.9-5.ELsmp)
root (hd0,2)
kernel /vmlinuz-2.6.9-5.ELsmp ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-5.ELsmp.img
title Red Hat Enterprise Linux AS-up (2.6.9-5.EL)
root (hd0,2)
kernel /vmlinuz-2.6.9-5.EL ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-5.EL.img
title windows xp
rootnoverify (hd0,0)
chainloader +1

this is listing of /dev/sda

[root@localhost grub]# fdisk /dev/sda

Command (m for help): p

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2550 20482843+ c W95 FAT32 (LBA)
/dev/sda2 2551 5100 20482875 c W95 FAT32 (LBA)
/dev/sda3 5101 5138 305235 83 Linux
/dev/sda4 5139 9729 36877207+ 5 Extended
/dev/sda5 5139 7688 20482843+ 83 Linux
/dev/sda6 7689 8963 10241406 83 Linux
/dev/sda7 8964 9090 1020096 82 Linux swap
/dev/sda8 9091 9729 5132736 83 Linux

I managed to find out my hardware.
I have SCSI hard disk installed on my PC.

so I have enabled the SCSI support in the configuration.

But now this has given rise to new error solving the previous ones...

the last message that appears on the screen when i boot is

Enforcing mode requested but no policy loaded.Halting Now
Kernel Panic : No syncing : Attempted to kill init !!!
6 REPLIES 6
Vipulinux
Respected Contributor

Re: Problem in installing new kernel

Hi

Do you want to compile a new kernel or just install a newer one...if you just want a newer kernel, downlaod the latest kernel in rpm and then do rpm -ivh kernel-newxxxx.rpm

Cheers
Pranav Tendulkar
New Member

Re: Problem in installing new kernel

I have already downloaded the latest kernel which was in zipped format...
i have compiled that kernel and tried all the stuff mentioned above... :(
Ivan Ferreira
Honored Contributor

Re: Problem in installing new kernel

You did not described the steps used to build the kernel. As described before, installing a new kernel from the rpm file is the easyest way. Maybe you omitted required modules and your initial ram disk is not working.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Vitaly Karasik_1
Honored Contributor

Re: Problem in installing new kernel

You should copy initrd image to /boot directory.
And of course, using kernels provided by Red Hat is the recommended way.
Pranav Tendulkar
New Member

Re: Problem in installing new kernel

I have already created a new initrd into the boot directory with the help of a command called mkinitrd.
Pranav Tendulkar
New Member

Re: Problem in installing new kernel

Hey guys,

thanx a lot for all your support.
I have cracked the problem.
It was due to SELinux.
I disabled SELinux in /etc/selinux/config file.
And now my installation worked perfectly fine :)

Thanks a lot....