LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-13-2010, 07:46 AM   #1
mohdsuboor23
Member
 
Registered: Sep 2010
Posts: 71

Rep: Reputation: 2
binary file error


Hi guys when im typing any command its giving error
-bash: /bin/ls: cannot execute binary file
plz telme how to resolve this im using fedora 13.plz helpme on this.iam waiting for ur replys
 
Old 10-13-2010, 08:41 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Sounds like you have mixed architectures. What do "uname -a" and "file /bin/ls" return?
 
Old 10-13-2010, 09:08 AM   #3
mohdsuboor23
Member
 
Registered: Sep 2010
Posts: 71

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by AlucardZero View Post
Sounds like you have mixed architectures. What do "uname -a" and "file /bin/ls" return?
sir im really in a mess plz helpme.
any command im typing its giving bash /bin/ls cannot execute binary file.
this is virtual mail server
when i type file /bin/ls
/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (GNU/linux), dynamically linked (uses shared libs), for GNU/Linux 2.6.18,stripped


what does it mean.could u plz telme where is the problem how to over come this problem.this is our main server no backup server is present plz telme
how to solve this issue.
 
Old 10-13-2010, 09:18 AM   #4
mohdsuboor23
Member
 
Registered: Sep 2010
Posts: 71

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by mohdsuboor23 View Post
sir im really in a mess plz helpme.
any command im typing its giving bash /bin/ls cannot execute binary file.
this is virtual mail server
when i type file /bin/ls
/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (GNU/linux), dynamically linked (uses shared libs), for GNU/Linux 2.6.18,stripped


what does it mean.could u plz telme where is the problem how to over come this problem.this is our main server no backup server is present plz telme
how to solve this issue.
sir uname -a is also giving cannot execute file error plz telme how to solve this plz
 
Old 10-13-2010, 10:22 AM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Can you "cat /proc/version" ? What does that return?

You probably installed a 32-bit distro then updated it using 64-bit repositories. You probably need to reinstall.
 
Old 10-13-2010, 01:53 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
this is virtual mail server
you do relies that running fedora on a server is a VERY VERY bad idea

but i guess IF YOU DO LIKE to reinstall the os on a working production server EVERY 6 MONTHS then ....

ALSO VERY IMPORTANT
SPELL OUT YOUR WORDS !!!!!!!!!!!!!!!!!!!!!!!!!!!
please IS NOT plz
and
you IS NOT u

also seeing as it looks like you "fubar'ed" the operating system
do your self a big favor and install a long life distro , one MEANT to be running a server like CentOS 5.5 or the not free RHEL 5.5 )
 
Old 10-14-2010, 02:06 AM   #7
mohdsuboor23
Member
 
Registered: Sep 2010
Posts: 71

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by John VV View Post
this is virtual mail server
you do relies that running fedora on a server is a VERY VERY bad idea

but i guess IF YOU DO LIKE to reinstall the os on a working production server EVERY 6 MONTHS then ....

ALSO VERY IMPORTANT
SPELL OUT YOUR WORDS !!!!!!!!!!!!!!!!!!!!!!!!!!!
please IS NOT plz
and
you IS NOT u

also seeing as it looks like you "fubar'ed" the operating system
do your self a big favor and install a long life distro , one MEANT to be running a server like CentOS 5.5 or the not free RHEL 5.5 )
Thank you very much for ur support sir. I do realize fedora is not a good option but this setup is made by phillipene guy he left and i overtook it.so when im typing any command it was giving a error called cannot execute binary file.
so wht i did is logoff and logon again.but this time he is not accepting the password also.its giving permission denied error.GUYS this is running network.please telme wht should i do inorder to log in again.i suspect may be a virus or hacked issue.from last few days there was lot of spam was coming ....i cant figure out where is the problem.
SO PLEASE HELPME TO OVER COME FROM THIS PROBLEM.ANY SUGGESTIONS APPRECIATED.
 
Old 10-14-2010, 03:30 AM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
virus NO
hacked / cracked YES ? maybe

are you logging in as root ?

but it dose sound like you have incompatible software installed

if this was not a VM on a MS windows ?? ( guessing) i would have you use the fedora install dvd in "rescue mode "


at this point if you can not even loggin your options are very limited

you can try the fedora install dvd but ?? i do not know if that will work on a VM ( fedora was never designed to do that )


try this reboot
durring the fedora DEFAULT 3 second delay countdown hit enter
then use the arrow key < down> to select the last kernel . boot from that one
or the <e> key to enter into " edit" mode and boot into single user mode ( google "single user mode" )

Last edited by John VV; 10-14-2010 at 03:35 AM.
 
Old 10-14-2010, 09:53 AM   #9
zhaozhou
LQ Newbie
 
Registered: Oct 2009
Location: Sweden
Distribution: Gentoo
Posts: 23

Rep: Reputation: 1
Please give us the output of
Code:
file /bin/bash
 
0 members found this post helpful.
Old 10-16-2010, 03:08 AM   #10
mohdsuboor23
Member
 
Registered: Sep 2010
Posts: 71

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by zhaozhou View Post
Please give us the output of
Code:
file /bin/bash
Thanks all 4 ur replys.actually icant post that result because im not able to login its giving permission denied error.Is this happening because bash file is got corrupted or something else is wrong????Its our companys mail server.so can i remotely login with hostname.if yes could any one please telme how to do that. because i cant login with the ip address because its not accepting the password.
on FC13 there is a Virtual Box installed.on that there is a virtual server on which mail server is installed.
SO PLEASE COULD ANY ONE HELPME HOW CAN I GET LOGIN IN THE MAIL SERVER.ANY HELP GREATLY APPRECIATED.PLEASE HELPME.
 
Old 10-16-2010, 04:52 AM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
can you reboot the system and BOOT INTO single user mode .
no password needed
 
Old 10-30-2010, 06:13 AM   #12
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
While I understand the urge to have your problem fixed you should not spread your "/lib/ld-linux.so 2:bad ELF interpreter / cannot execute binary file" problem across multiple threads as you have done here, here and here. This is inefficient and dilutes efforts to help you.

I suggest FUP's go to http://www.linuxquestions.org/questi...e-mode-840957/.
 
  


Reply


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
Help: Opening GenICs binary file, writing to binary file for GADGET-2 (in C) parallax147 Programming 0 10-05-2010 11:06 AM
getting error 'cannot execute binary file' kapilbajpai88 Linux - Newbie 15 09-20-2010 06:00 AM
error in opening firmware binary file shariefbe Linux - Software 1 01-08-2010 08:27 PM
While installing informix-SE 7.0 it gives error as cannot execute binary file sp2797 Linux - Server 1 09-07-2006 09:56 AM
Exec format error. binary file not executable. kaz2100 Linux - General 2 08-19-2006 05:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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