LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-14-2006, 06:06 AM   #1
rajtendulkar
Member
 
Registered: Mar 2006
Posts: 34

Rep: Reputation: 15
Unhappy Problem on New Kernel Installation


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 am unable to understand the problem.
Could anybody please help???
 
Old 03-14-2006, 06:35 AM   #2
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
OK, you compiled kernel 2.6.15 and modified grub.conf. Kernel 2.6.15 compiled successfully and assuming you installed the modules along with the kernel. Changes to grub.conf seem right. All right ! Now WHERE IS THE PROBLEM ? You never mentioned any !!?
Is it that you don't get the option to boot into the new kernel or is it that the new kernel boots but panics at some stage or ......... ????
 
Old 03-14-2006, 06:52 AM   #3
rajtendulkar
Member
 
Registered: Mar 2006
Posts: 34

Original Poster
Rep: Reputation: 15
Thanks for th reply.
after uncompressing the kernel it gives me error message as follows

insmod : error inserting 'lib/ata_piix.ko' -1
mkrootdev : label / not found
umount /sys failed : 16
mount : error 2 mounting ext3
mount : error 2 mounting none

here is a screen shot of my /etc/fstab

# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/home /home ext3 defaults 1 2
LABEL=/opt /opt ext3 defaults 1 2
none /proc proc defaults 0 0
/dev/sda1 /mnt/win_1 auto defaults 0 0
/dev/sda2 /mnt/win_2 auto defaults 0 0
none /sys sysfs defaults 0 0
LABEL=SWAP-sda7 swap swap defaults 0 0
/dev/fd0 /media/floppy auto pamconsole,fscontext=system_ubject_r:removable_t,exec,noauto,managed 0 0
~
 
Old 03-14-2006, 07:06 AM   #4
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
Recheck your configuration i.e your /usr/src/linux/.config file. You root filesystem is on a SCSI or SATA disk, therefore, you should either have the SATA and/or SCSI support compiled in the kernel or if you are using initrd to boot, you should create a new initrd image for the new kernel.
Looking into grub.conf file from you first posting and the error messages you've posted, the problem seems to be 'lib/ata_piix.ko' module. Check your initrd for this module and make sure it exists, if not, create another to include the required libs not just ata_piix.ko . Otherwise recompile kernel to include the necessary support into the kernel itself.
 
Old 03-14-2006, 07:11 AM   #5
rajtendulkar
Member
 
Registered: Mar 2006
Posts: 34

Original Poster
Rep: Reputation: 15
I have already created a initrd file using mkinitrd command.
As I am new to this PC in my company, i am unaware whether its SATA or PATA. Is there any way to check this out?
I am currently running Red Hat Linux Enterprise 4 with 2.6.9.5 kernel.

The problem will be - i am not accessible to the hardware
not allowed to open the cabinet of CPU.

Last edited by rajtendulkar; 03-14-2006 at 07:19 AM.
 
Old 03-14-2006, 08:38 AM   #6
rajtendulkar
Member
 
Registered: Mar 2006
Posts: 34

Original Poster
Rep: Reputation: 15
I managed to find out my hardware.
I have SCSI hard disk installed on my PC.

so I have now 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 !!!

Please help...
 
Old 03-14-2006, 10:50 AM   #7
rajtendulkar
Member
 
Registered: Mar 2006
Posts: 34

Original Poster
Rep: Reputation: 15
can anyone please help me with this ???
 
Old 03-14-2006, 01:55 PM   #8
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 7,177

Rep: Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210
Sure...

(1) The LABEL= syntax has never worked for me. I simply identify devices by their address.

(2) "Attempting to kill init" really means that the init process died, which it is not allowed to do. The reasons will be found in the messages that precede this one.
 
Old 03-15-2006, 10:29 PM   #9
rajtendulkar
Member
 
Registered: Mar 2006
Posts: 34

Original Poster
Rep: Reputation: 15
I am unable to understand the reason.
Can you please tell me that how to trace that from which file the statement got printed.
Then maybe I will be able to get it out.

The error was...
Enforcing the mode requested but not policy loaded. Halting now.

What is really meaning of this???
 
Old 03-16-2006, 12:30 AM   #10
rajtendulkar
Member
 
Registered: Mar 2006
Posts: 34

Original Poster
Rep: Reputation: 15
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....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel problem after installation kpachopoulos Fedora 1 09-06-2005 05:20 AM
kernel installation problem hk_michael Red Hat 1 04-06-2005 02:39 AM
Problem with Kernel Installation... darkarcon2015 Slackware 13 01-04-2005 10:05 AM
kernel installation problem? fredgt Linux - Software 2 11-18-2004 05:23 PM
installation problem with kernel halovivek Linux - Newbie 1 03-27-2004 01:52 PM


All times are GMT -5. The time now is 04:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration