Indunil Jayasooriya
2007-Feb-08 06:22 UTC
[CentOS] kernel 2.6.9-42.0.8.EL error while booting - CentOS 4.4
Hi , I am ruuning Senmail with MailScanner on CentOS 4.4. It has updated to kernel 2.6.9-42.0.8.EL from its past kernel 2.6.9-42.0.3.EL. Now the Server can not boot up and gives the below error. mkrootdev: label / not found Mounting root filesystem mount: error 2 mouting ext3 switchroot: mount failed: 22 Kernel panic - not syncing: Attempted to kill init! But I can boot up from its last kernel 2.6.9-42.0.3.EL. I have booted it up from that kernel. But I wnat to rectify that new kernel error in order to boot from that kernel. Help needed. -- Thank you Indunil Jayasooriya -- Thank you Indunil Jayasooriya -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20070208/74c407f1/attachment.html>
Feizhou
2007-Feb-08 06:41 UTC
[CentOS] kernel 2.6.9-42.0.8.EL error while booting - CentOS 4.4
Indunil Jayasooriya wrote:> Hi , > > I am ruuning Senmail with MailScanner on CentOS 4.4. It has updated to > kernel 2.6.9-42.0.8.EL from its past kernel 2.6.9-42.0.3.EL. > > Now the Server can not boot up and gives the below error. > > mkrootdev: label / not found > Mounting root filesystem > mount: error 2 mouting ext3 > switchroot: mount failed: 22 > Kernel panic - not syncing: Attempted to kill init! > > But I can boot up from its last kernel 2.6.9-42.0.3.EL. I have booted it > up from that kernel.The new kernel seems to have problems picking up the filesystem label.> > But I wnat to rectify that new kernel error in order to boot from that > kernel. > > Help needed.I think as a work around you can change the grub.conf to use the /dev/xxx instead of the disk label.> > -- > Thank you > Indunil Jayasooriya > > > -- > Thank you > Indunil Jayasooriya > > > ------------------------------------------------------------------------ > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos
Indunil Jayasooriya
2007-Feb-08 08:16 UTC
[CentOS] kernel 2.6.9-42.0.8.EL error while booting - CentOS 4.4
Hi , Thanks for your quick responce. How to build a new initrd ? On 2/8/07, Feizhou <feizhou at graffiti.net> wrote:> > > > last kernel contains more than the new kernel . > > Actually, the latest kernel is missing libata and maybe them scsi modules. > > > > > one is below > > lib/scsi_mod.ko > > > > that is scsi. Is is the one going with sata? > > You need libata, sd_mod too I guess. > > > > > how to solve thsi issuse? > > > > futher help needed. > > You need to build a new initrd. Hang on. > > > > > > > > > On 2/8/07, *Feizhou* <feizhou at graffiti.net > > <mailto:feizhou at graffiti.net>> wrote: > > > > Indunil Jayasooriya wrote: > > > > > > > > > eh? > > > > > > Is it sata? Maybe the sata driver is missing in your initrd > > image? > > > > > > > > > > > > Yeah, It is sata, Hpw to get to know wherether sata drivers are > > miinig > > > or not? > > > > > > iamge is below > > > > > > initrd-2.6.9-42.0.8.EL.img > > > > > > It is binary . > > > > > > futhernhelp is needed. > > > > It is a gzipped cpio image. > > > > Run 'gunzip -cd initrd-2.6.9-42.0.8.EL.img |cpio -t' to find out > what is > > in it. > > > > > > > > > > -- > > Thank you > > Indunil Jayasooriya > >-- Thank you Indunil Jayasooriya -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20070208/b9576a60/attachment.html>
Indunil Jayasooriya
2007-Feb-08 08:40 UTC
[CentOS] kernel 2.6.9-42.0.8.EL error while booting - CentOS 4.4
I have already set it. pls see below title CentOS (2.6.9-42.0.8.EL) root (hd0,0) kernel /vmlinuz-2.6.9-42.0.8.EL ro root=LABEL=/ rhgb quiet initrd /initrd-2.6.9-42.0.8.EL.img On 2/8/07, Feizhou <feizhou at graffiti.net> wrote:> > You can set your grub.conf back to the label /. >-- Thank you Indunil Jayasooriya -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20070208/2f605d54/attachment.html>
Indunil Jayasooriya
2007-Feb-08 08:54 UTC
[CentOS] kernel 2.6.9-42.0.8.EL error while booting - CentOS 4.4
i removed .ko from all and then gave the below error. [root at gateway etc]# cd /boot/ [root at gateway boot]# mkinitrd --with=sd_mod --with=scsi_mod with=ata_piix --with=libata /root/initrd-2.6.9-42.0.8.EL.img 2.6.9-42.0.8.EL usage: mkinitrd [--version] [-v] [-f] [--preload <module>] [--omit-scsi-modules] [--omit-raid-modules] [--omit-lvm-modules] [--with=<module>] [--image-version] [--fstab=<fstab>] [--nocompress] [--builtin=<module>] [--nopivot] <initrd-image> <kernel-version> (ex: mkinitrd /boot/initrd-2.2.5-15.img 2.2.5-15) I think path is not set properly. On 2/8/07, Feizhou <feizhou at graffiti.net> wrote:> > Indunil Jayasooriya wrote: > > On 2/8/07, *Feizhou* <feizhou at graffiti.net > > <mailto:feizhou at graffiti.net>> wrote: > > > > You are missing > > > > lib/sd_mod.ko > > lib/scsi_mod.ko > > lib/ata_piix.ko > > lib/libata.ko > > > > Try: mkinitrd --with=sd_mod.ko --with=scsi_mod.ko --with=ata_piix.ko > > --with=libata.ko /root/initrd-2.6.9-42.0.8.EL.img 2.6.9-42.0.8.EL > > > > > > > > i tried it . i did the below . I did the below , First I changed to > > /boot directory. > > > > [root at gateway ~]# cd /boot/ > > > > [root at gateway boot]# mkinitrd --with=sd_mod.ko --with=scsi_mod.ko > > --with=ata_piix.ko --with= libata.ko /root/initrd-2.6.9-42.0.8.EL.img > > 2.6.9-42.0.8.EL > > > > it says the below > > > > No module sd_mod.ko found for kernel 2.6.9-42.0.8.EL, aborting. > > oops, sorry, chop the '.ko' from all the module names. >-- Thank you Indunil Jayasooriya -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20070208/ae8fa6bb/attachment.html>
Indunil Jayasooriya
2007-Feb-08 09:33 UTC
[CentOS] kernel 2.6.9-42.0.8.EL error while booting - CentOS 4.4
Thanks. I did it. [root at gateway boot]# mkinitrd --with=sd_mod --with=scsi_mod --with=ata_piix --with=libata /root/initrd-2.6.9-42.0.8.EL.img 2.6.9-42.0.8.EL this time it worked. now it shows new modules. pls see below. [root at gateway boot]# gunzip -cd initrd-2.6.9-42.0.8.EL.img |cpio -t . etc etc/udev etc/udev/udev.conf init lib lib/libata.ko lib/jbd.ko lib/ext3.ko lib/sd_mod.ko lib/scsi_mod.ko lib/ata_piix.ko proc loopfs bin bin/udevstart bin/insmod bin/udev bin/hotplug bin/nash bin/modprobe sbin dev dev/console dev/null dev/tty1 dev/systty dev/tty2 dev/ram dev/tty3 dev/tty4 sysroot sys 2147 blocks then I did the below steps. [root at gateway etc]# cd /boot/ [root at gateway boot]# cp initrd-2.6.9-42.0.8.EL.img initrd-2.6.9-42.0.8.EL.img.8feb2007 [root at gateway boot]# cd [root at gateway ~]# cp initrd-2.6.9-42.0.8.EL.img /boot/ cp: overwrite `/boot/initrd-2.6.9-42.0.8.EL.img'? y Now it has newly rebiult /boot/initrd-2.6.9-42.0.8.EL.img. Now I only need to restart the Server. To do that, It takes some time as users are getting emails . After the reboot, I will let you know. THNAK YOU VERY MUCH. On 2/8/07, Feizhou <feizhou at graffiti.net> wrote:> > Indunil Jayasooriya wrote: > > i removed .ko from all and then gave the below error. > > > > [root at gateway etc]# cd /boot/ > > > > [root at gateway boot]# mkinitrd --with=sd_mod --with=scsi_mod > > with=ata_piix --with=libata /root/initrd-2.6.9-42.0.8.EL.img > > 2.6.9-42.0.8.EL > > usage: mkinitrd [--version] [-v] [-f] [--preload <module>] > > [--omit-scsi-modules] [--omit-raid-modules] [--omit-lvm-modules] > > [--with=<module>] [--image-version] [--fstab=<fstab>] > [--nocompress] > > [--builtin=<module>] [--nopivot] <initrd-image> <kernel-version> > > > > (ex: mkinitrd /boot/initrd-2.2.5-15.img 2.2.5-15) > > > > I think path is not set properly. > > No. You missed the '--' in with=ata_piix >-- Thank you Indunil Jayasooriya -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20070208/1222ef95/attachment.html>