LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-03-2010, 05:19 AM   #1
newbe
LQ Newbie
 
Registered: Feb 2010
Posts: 2

Rep: Reputation: 0
Kernel panic - error while loading shared libraries


Hello,

I'm newbie in linux so, please be patient.
My os is CentOS 5.
I have a problem at booting kernel, i had an error like:
/sbin/init: error while loading shared libraries: /lib/libdl.so.2: file to short
kernel panic - not synicing: attempted to kill init!

This happnes after I installed Apache and restart server.

Is this a way to skip loading this library?
Do you have any idea how to boot system now?

Thank you in advance.
 
Old 02-03-2010, 07:11 AM   #2
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hi

the problem seems to be not your apache installation. The problem is a possibly damaged library. The error message stated point to a file which is part of glibc. During system tries to load the library it detect that the file seems to be not complete.

Try booting in rescue mode from cd and check the files of glibc using
Code:
rpm -V glibc
. If the file is damaged, replace it by a complete working version. If the size of the file is not the problem your hard disk or settings for the disk creates the problems, so that not all data can be read. You can try stopping the use of DMA by parsing
Code:
ide=nodma
on boot prompt.
 
Old 02-04-2010, 08:50 AM   #3
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by mesiol View Post
Hi

the problem seems to be not your apache installation. The problem is a possibly damaged library. The error message stated point to a file which is part of glibc. During system tries to load the library it detect that the file seems to be not complete.

Try booting in rescue mode from cd and check the files of glibc using
Code:
rpm -V glibc
. If the file is damaged, replace it by a complete working version. If the size of the file is not the problem your hard disk or settings for the disk creates the problems, so that not all data can be read. You can try stopping the use of DMA by parsing
Code:
ide=nodma
on boot prompt.
I suggest to verify not only glibc, but all packages. may be more than one file was damaged and may be not only in in glibc.

If it's only one file - do as mesiol said. If damage is serious - I recommend reinstall the system
 
Old 02-05-2010, 08:05 AM   #4
newbe
LQ Newbie
 
Registered: Feb 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you for your answears.

I resolve the problem for my own.

I booted a system from liveCD and copy all of libraries which were empty, and then almost succesfully run the server.
I wrote "almost" beacouse system and all of services started, but i can't login to the system. The message sayes something like "login incorrect".

I'm not sure that login 'root' is correct beacouse of non-knowing of this server. Is this possible to change the root password from livecd? passwd or something?
 
Old 02-06-2010, 01:28 AM   #5
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hi,

did you check where your data loss comes from? It's very strange to me to have files lost on a system. Possibly there's a hard disk problem.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error while loading shared libraries: libhid.so.0: cannot open shared object file: No misungs Linux - Software 4 06-10-2009 12:05 PM
Urgent !!! rpm: error while loading shared libraries: libelf.so.1: cannot open shared tinaa Linux - Software 5 12-02-2008 03:19 PM
gxine: error while loading shared libraries: libmozjs.so: cannot open shared object.. khronosschoty Slackware 10 11-10-2008 07:33 PM
error while loading shared libraries: libstdc++.so.5: cannot open shared object file PaulyWally Debian 2 10-18-2008 05:59 PM
error while loading shared libraries: libdb-4.1.so: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 07:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:12 PM.

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