LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   CentOS - Kernal Panic -not syncing Attempted to Kill init (https://www.linuxquestions.org/questions/linux-newbie-8/centos-kernal-panic-not-syncing-attempted-to-kill-init-873672/)

rtsai123 04-07-2011 05:55 PM

CentOS - Kernal Panic -not syncing Attempted to Kill init
 
HI I have a Dell 1900 running CentOS 2.6.18-194.11.3.el5.centos.plus.

I was unable to access the server and had to reboot it. When the server was booting after the Grub, it errored out with

Kernal Panic -not syncing Attempted to Kill init!!
exec of init (/sbin/init/) failed No such directory

I reboot into the recuse mode from the CD and when looking for the installed OS.
I got an error like this

Found OS but with errors. Mounting part or all of your system at /mnt/sysimage.. something of the sort. I've run fsk -y on the /boot and root drives and rebooted but still the same issues.

Here is my grub.conf:


# 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,0)
# kernel /vmlinuz-version ro root=/dev/sda3
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-194.11.3.el5.centos.plus)
root (hd0,0)
kernel /vmlinuz-2.6.18-194.11.3.el5.centos.plus ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-194.11.3.el5.centos.plus.img
title CentOS (2.6.18-194.11.1.el5.centos.plus)
root (hd0,0)
kernel /vmlinuz-2.6.18-194.11.1.el5.centos.plus ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-194.11.1.el5.centos.plus.img
title CentOS (2.6.18-128.1.14.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-128.1.14.el5 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-128.1.14.el5.img


Here is my fstab:

LABEL=/ / ext3 defaults 1 1
LABEL=/data /data ext3 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda2 swap swap defaults 0 0
/dev/sda2 /mirror ext3 defaults 0 0


I've also tried to chroot /mnt/sysimage /bin/bash but I get and error of no such file or directory
I can see my files under /mnt/sysimage and everything seems to be intact.

Thanks in advance!!

ongte 04-07-2011 09:37 PM

Suspect some kind of filesystem corruption or partition damage. Possibly even Hard Drive failure?
When in Rescue mode (from the CD) - Choose Continue.
Before running 'chroot /mnt/sysimage'
Run:
# df -h
# fdisk -l

Please paste the output here so we can help figure it out.

jmc1987 04-08-2011 02:33 AM

Try to look at smartd logs or what ever hwmonitor you might have for your drives. I does sound like file system corruption. But indeed you could have a failed hd.

rtsai123 04-08-2011 12:03 PM

Thank guys! I will post the outputs or fdisk -l and df -h a bit later today.

-R

rtsai123 04-08-2011 12:27 PM

output of fdisk -l:


Disk /dev/sdb: 31.4 GB, 31457280000 bytes
255 heads, 63 sectors/track, 3824 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13 104391 83 Linux
/dev/sdb2 14 535 4192965 82 Linux swap / Solaris
/dev/sdb3 536 3824 26418892+ 83 Linux

Disk /dev/sdc: 1215.4 GB, 1215425413120 bytes
255 heads, 63 sectors/track, 147767 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 147767 1186938396 83 Linux

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 60801 488384001 c W95 FAT32 (LBA)



output of df -h:

Filesystem Size Used Avail Use% Mounted on
/dev 2.0G 0 2.0G 0% /dev
/tmp/loop0 108M 108M 0 100% /mnt/runtime
/dev/sdb3 25G 7.6G 16G 33% /mnt/sysimage
/dev/sdb1 99M 54M 41M 58% /mnt/sysimage/boot
/dev/sda1 466G 413G 54G 89% /mnt/usb

ongte 04-09-2011 10:54 AM

Well, your root & boot partitions are still mounting at least in rescue mode. There does appear to be a partition missing, judging from ur fstab.

You could not chroot into /mnt/sysimage?
if so, look inside /mnt/sysimage. Check if /mnt/sysimage/bin/bash is actually there, what's it's permissions.

Look in /var/log/messages. Look for any errors at around the time the trouble started.
Look in /var/log/dmesg for any hardware errors.

rtsai123 04-21-2011 09:25 AM

Sorry for the late response, I've been out of town but I'll take a look at it today and get back to you.

Thanks for the assistance!


Update: I still can't chroot into /mnt/sysimage. I checked the permissions of /mnt/sysimage/bin/bash and its root.root


All times are GMT -5. The time now is 08:35 PM.