Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-25-2004, 03:44 PM   #1
LQ Newbie
Registered: Feb 2004
Posts: 6

Rep: Reputation: 0
HELP ! Where to find ?

Hi !

A patch I tried to install on Fedora (Core 1) erased the /etc/ file.
Since then I can't run no binaries any more - at all. Rebooting results into kernel panic. Nice !

I corrected the error in the patch - gcc was not reachable - using the "linux rescue" feature of the boot cdrom. Problem is now that I can't have it recompiled because it looks for libraries into the /usr/lib directory. Which are not there in linux rescue because it is mounted as /mnt/sysimage/usr/lib. ld always comes up that it doesn't find "/usr/lib/libc_nonshared.a". Adding the /mnt/sysimage/usr/lib directory to the LD_LIBRARY_PATH variable has the same result.

Trying with chroot /mnt/sysimage doesn't work either ... because /etc/ is missing !

So, before reinstalling Fedora completely for this one single missing file, I'm trying to find a copy of this file to put it there during rescue mode and reboot with it.

Is there somebody here who can help me with or recompiling this file or finding a copy somewhere ? Any clue and help is more then welcome ! Thanks !

Kind Regards,

Old 02-27-2004, 03:57 PM   #2
Senior Member
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
Something is ODD here, I've googled for a half hour now, and everything I've read....including this post @ LQ.............

says that the file your missing is located in /lib or /usr/lib..............

Last edited by 320mb; 02-27-2004 at 04:11 PM.
Old 03-03-2004, 11:19 AM   #3
LQ Newbie
Registered: Feb 2004
Posts: 6

Original Poster
Rep: Reputation: 0
I finally made it work. In fact there was a file "" - or something like that - that was referencing to Removing this file solved the problem.

So simple it was ...
Old 06-22-2004, 02:50 AM   #4
LQ Newbie
Registered: Apr 2004
Posts: 5

Rep: Reputation: 0

I am also having the same problem - a patch I installed led to kernel panic and I cannot load any libraries.
I get "error while loading shared libraries : /etc/ : cannot open shared object file..."

Where can I find the file?

And one more question, why is this error happening? Is the patch linking some files wrongly?

Old 02-09-2006, 11:23 AM   #5
Registered: Jan 2005
Location: Nice, France
Distribution: Ubuntu,RHES, Mandriva, RHAS, AIX 4.3.3, 5.2 & 5.3, Debian,Solaris8/10
Posts: 119

Rep: Reputation: 20
Hi all,

I know that it's a bit too late but I reply to this post for thos who stuck again.

I have encoutered the same problem in a RHES 3 with Oracle 9i. After an electrical break down, I can't have this box boot again. It was complaining about a </usr/lib/>.
So I boot with "linux rescue", chroot /mnt/sysimage and I find that this library was corrupt. Instead of 4431 octets, it was 4438.
I pick up a new one in another box and reboot and it's work fine now.

Old 09-29-2008, 09:54 AM   #6
LQ Newbie
Registered: Sep 2008
Posts: 2

Rep: Reputation: 0

hello all,

I had the same issue last week (kernel panick! file missing or something like that!) on RHES V3. If I understood the early warning sign ("relocation error: GLIBC_2.0 not defined......." error when trying to use the Oracle report engine "runrep" command) after restoring production data on a test server, the issue would have been resolved a lot quicker - using scenario 1 below.

In my case, the program i was trying to execute "runrep" called /etc/ using glibc(see more about the files here). in turn pointed to /etc/ The file was missing hence the issue.

It can be fundamentally resolved within the scope of two scenarios.

1. Scenario one - if detected before a shutdown/reboot (i.e with the relocation error) then recompile another file (instructions here) OR copy the file from another server (assumption is that there is a replicated environment) and paste in /etc/.

2. Scenario two - if in the event you reboot and have the "kernel panick" issue (which I had) then reboot in rescue mode (using the RH cd). Most likely, if you try 'chroot /mnt/sysimage', it would not work as the file is not in /mnt/sysimage/etc/ directory. Get the file from another node (or recompile as indicated in scenario 1) and drop in /mnt/sysimage/ which is actually the root directory of the OS (if it were not in rescue mode). Then edit the pointer in /mnt/sysimage/ from /etc/ to /mnt/sysimage/ Now do 'chroot /mnt/sysimage' IT SHOULD WORK if the issue is with the link in the file. Now place the in /etc/ and reboot. VOILA!!!



Last edited by dudulives; 09-29-2008 at 10:01 AM.


error, glibc, kernel

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
linux find to find files with multiple patterns subu_s Programming 6 12-15-2010 01:15 AM
Can`t find C-compiler in Debian ,or at least can`t find one that can make executables hemmelig Linux - Software 4 05-26-2008 04:07 AM
I can find the camera but can't find the images? sneckert Linux - Newbie 2 02-02-2005 09:51 AM
find: . changed during execution of find suse degraffenried13 Linux - General 3 12-12-2004 08:13 PM
linux 'find' to find text files subu_s Programming 2 12-02-2004 03:56 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration