I am trying to compile 2.6.7 kerne to upgrade my kernel to my server which has Red Hat Enterprise Linux ES release 3 . I am getting this error message does anybody know why do i get this error.
I tried everything still no luck spend around 7 hours :( any help should be good
mount: error 6 mounting ext3
pivot root: pivot_root (/sysroot/sysroot/initrd)failed: 2 umount /initrd/proc failed: 2
kernel panic: No init found. Try passing init = option to kernel.
Does anybody know whats wrong with it?
Info :
cat /etc/redhat-release
Red Hat Enterprise Linux ES release 3 (Taroon Update 2)
grep CONFIG_EXT3 .config
CONFIG_EXT3_FS=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT3_FS_SECURITY=y
/sbin/mkinitrd -f -v /boot/initrd-2.6.7-lnc.img 2.6.7
Looking for deps of module scsi_mod
Looking for deps of module sd_mod
Looking for deps of module unknown
Looking for deps of module 3w-xxxx
Looking for deps of module ata_piix libata
Looking for deps of module libata
Looking for deps of module ide-disk
Looking for deps of module ext3
Using modules: ./kernel/drivers/scsi/sd_mod.ko ./kernel/drivers/scsi/3w-xxxx.ko ./kernel/drivers/scsi/libata.ko ./kernel/drivers/scsi/ata_piix.ko
Using loopback device /dev/loop0
/sbin/nash -> /tmp/initrd.ecH1Tg/bin/nash
/sbin/insmod.static -> /tmp/initrd.ecH1Tg/bin/insmod
`/lib/modules/2.6.7/./kernel/drivers/scsi/sd_mod.ko' -> `/tmp/initrd.ecH1Tg/lib/sd_mod.ko'
`/lib/modules/2.6.7/./kernel/drivers/scsi/3w-xxxx.ko' -> `/tmp/initrd.ecH1Tg/lib/3w-xxxx.ko'
`/lib/modules/2.6.7/./kernel/drivers/scsi/libata.ko' -> `/tmp/initrd.ecH1Tg/lib/libata.ko'
`/lib/modules/2.6.7/./kernel/drivers/scsi/ata_piix.ko' -> `/tmp/initrd.ecH1Tg/lib/ata_piix.ko'
Loading module sd_mod
Loading module 3w-xxxx
Loading module libata
Loading module ata_piix
my grub.conf file :
title Red Hat Enterprise Linux ES (2.6.7)
root (hd0,0)
kernel /vmlinuz-2.6.7-lnc ro root=/dev/sda5
initrd /initrd-2.6.7-lnc.img
I also have :
drwxr-xr-x 2 root root 4096 Jun 20 11:36 sys/
drwxr-xr-x 2 root root 4096 Jan 24 2003 initrd/
Program Name :Required : System
Gnu_C : 2.95.3 : gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-34)
Gnu_make : 3.79.1 : GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
binutils : 2.12 : GNU ld version 2.14.90.0.4 20030523
util-linux : 2.10o : fdformat from util-linux-2.11y
module-init-tools : 0.9.10 : module-init-tools 3.0-pre1
e2fsprogs : 1.29 : tune2fs 1.32 (09-Nov-2002)
xfsprogs : 2.6.0 :
quota-tools : 3.09 : Quota utilities version 3.09.
procps : 3.2.0 : procps version 3.2.1
oprofile : 0.5.3 : oprofiled: oprofile 0.5.4 compiled on
rpm -qa | grep modu
modutils-2.4.21-23 (which installed from src rpm )
could you please "cat" your /
could you please "cat" your /etc/fstab?
Same problem
I have that problem in every kernel past 2.6.4, it has been reported here on KernelTrap lot's of times, and I've found no sollution yet, so, if you manage to fix it, please post here how.
Thanks.
kernel Name length
I was just having this problem recently and strange as it may sound, but my solution had to do with shortening the name. I had a Redhat Kernel called kernel-2.6.6-1.435.2.3smt-smp, which turns out to be about 32 characters. I got rid of the .2.3 part, recompiled and rebooted and it worked. Try shortening the name of your install kernel. It's located in the main Makefile of the kernel source. Must be some sort boot loader limit or something.
nik
try it
into grub dir and modify grub.conf:
kernel /vmlinuz-xxx.xxx ro root=LABEL=/
to
kernel /vmlinuz-xxx.xxx ro root=/dev/hdx
/dev/hdx is location your boot partition
good luck!
Make sure the IDE drivers are also built in the kernel
I had the same problem, first I set the filesystems to compile built-in, but it didn't solve. Then I set the IDE drivers to compile built-in, and it worked.
I don't know if it is really important, but I ran mkinitrd afterwards.
Well in your case, you should
Well in your case, you should built-in your scsi-drivers and you're problem will go away...
Or may this also works(in your grub config file):
initrd /boot/$(your init rd file)
mkinitrd leaves out a paramet
mkinitrd leaves out a parameter when creating the initrd:
mkdir /root/tmp
cd /root/tmp
cp -ax /boot/initrd-2.6.nn.img initrd.gz
gunzip initrd.gz
cpio -i < initrd
-edit the init file
-change the line:
switchroot /sysroot
-to this:
switchroot --movedev /sysroot
find . | cpio -co | gzip -9 > /boot/initrd-2.6.nn.img
Have you tested: initrd=/boo
Have you tested:
initrd=/boot/boot/initrd-2.6.7-lnc.img?
Or just compile in all your filesystems you need in you kernel...
This will work...