LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 04-07-2011, 05:55 PM   #1
rtsai123
LQ Newbie
 
Registered: Apr 2011
Posts: 5

Rep: Reputation: 0
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!!
 
Old 04-07-2011, 09:37 PM   #2
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
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.
 
Old 04-08-2011, 02:33 AM   #3
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 893

Rep: Reputation: 119Reputation: 119
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.
 
Old 04-08-2011, 12:03 PM   #4
rtsai123
LQ Newbie
 
Registered: Apr 2011
Posts: 5

Original Poster
Rep: Reputation: 0
Thank guys! I will post the outputs or fdisk -l and df -h a bit later today.

-R
 
Old 04-08-2011, 12:27 PM   #5
rtsai123
LQ Newbie
 
Registered: Apr 2011
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 04-09-2011, 10:54 AM   #6
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
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.
 
Old 04-21-2011, 09:25 AM   #7
rtsai123
LQ Newbie
 
Registered: Apr 2011
Posts: 5

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

Last edited by rtsai123; 04-21-2011 at 11:03 AM.
 
  


Reply



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
PClinuxOS hangs on boot: "Kernal panic- not syncing: Attempted to kill init! redbuttelinux Linux - Newbie 7 06-09-2010 05:32 AM
/sbin/init: Kernel panic - not syncing: Attempted to kill init! jalejo08 Linux - Kernel 7 07-02-2009 01:16 PM
Kernel Panic - Not Syncing: Attempted To Kill Init! tegralens Linux - Software 13 06-23-2008 03:15 PM
"Kernel panic - not syncing: Attempted to kill init!" after Yum update, CentOS 4.4 TestedDoughnut Linux - General 7 02-15-2007 04:22 PM
kernel panic - no syncing: Attempted to kill init majara Linux - General 3 02-06-2006 01:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:12 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
Open Source Consulting | Domain Registration