LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 12-22-2006, 02:51 PM   #1
emperor_black
LQ Newbie
 
Registered: Sep 2005
Location: Milpitas, CA
Posts: 16

Rep: Reputation: 0
Help! ELF Interpreter problem


Hello
I was trying to get gmake to run and it kept saying that libc.so.6 or something was missing. So, I tried to change the search path for the /libexec and so I moved /libexec to /libexec_old and tried to see if gmake works. It didnt. Then I issued the command "mv /libexec_old /libexec" after that, I cannot run any commands. The ssh terminal is frozen, there is no prompt and all I get is "ELF interpreter /libexec/ld-elf.so.1 not found". I guess I have messed up big time. What do I do now? To make matters worse, its a virtual machine and not a physical machine. The virtual machine refuses to shut down for a reboot.

thanks
 
Old 12-22-2006, 03:55 PM   #2
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 43
I don't think rebooting is going to help, considering that the kernel's not going to run afterwards. Is it possible to do a rescue CD boot on a virtual machine? If not, I dare say you're probably hosed. (Although I would think that any process in memory would still work fine.)
 
Old 12-22-2006, 04:27 PM   #3
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
Were you able to run the mv command? If not, use /rescue/mv

The /rescue directory is populated with statically linked commands for just this situation. They will be able to help you fix the problem. To see what you have to work with, do:
"cd rescue; ./ls"

Do Not Reboot! If you do, you won't actually solve the problem and will be at the same point you're at now (having to use /rescue) but without everything mounted or clean. It's best to just fix it from the running system so you don't screw more things up. You don't want this problem combined with dirty filesystems.

Last edited by frob23; 12-22-2006 at 04:28 PM.
 
Old 12-22-2006, 04:42 PM   #4
emperor_black
LQ Newbie
 
Registered: Sep 2005
Location: Milpitas, CA
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by frob23
Were you able to run the mv command? If not, use /rescue/mv

The /rescue directory is populated with statically linked commands for just this situation. They will be able to help you fix the problem. To see what you have to work with, do:
"cd rescue; ./ls"

Do Not Reboot! If you do, you won't actually solve the problem and will be at the same point you're at now (having to use /rescue) but without everything mounted or clean. It's best to just fix it from the running system so you don't screw more things up. You don't want this problem combined with dirty filesystems.
Hmm.. too bad. I already rebooted and yes, I am hosed. Luckily, we had a back up of the virtual machine and we have used it to load it up again. but some of my customizations in this vm are gone. Thanks for all your help. I will keep that in mind the next time i encounter this type of situation.
 
Old 12-22-2006, 05:05 PM   #5
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
That happens sometimes. Next time something like this happens, try and remember that you're probably not the first person to do it. I've done it myself (actually) in my earlier days. All the BSDs come with a directory of statically linked tools which exist for situations like that. And almost every other big "Oops" you're likely to make has been done and might have a solution waiting for just that problem.

If you didn't waste the "hosed" copy (like if you just moved it aside) you can try and bring it back up. You're going to need to boot (it will go single-user automatically) and then fsck the drives before fixing things. It can be done. Or you could even boot from the image you're currently using, with the old image as a second disk, and clean and repair it from the backup system.

I hope you didn't waste the broken copy... because it could have been saved.
 
  


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
DDD and "/sysdeps/i386/elf/start.S no such file..." problem vegetta Programming 3 03-25-2010 08:48 AM
bad ELF interpreter kirtimaan_bkn Linux - Newbie 13 07-04-2006 11:11 PM
elf executable size problem magham_rajesh Programming 3 06-27-2006 12:31 PM
Linux Emulation problem "ELF file OS ABI invalid Error" man26 *BSD 0 08-03-2004 11:57 PM
X11 library problem wrong ELF size chewysplace Linux - Software 1 04-12-2004 02:40 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 07:16 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