LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 07-17-2009, 02:56 PM   #1
peeths003
Member
 
Registered: Jun 2008
Distribution: Fedora 12 i686, Debian 5.0.1 i686, Fedora 14 x86_64, Debian Lenny 5.0.1x86_64 and CentOS_5.4_x86-64
Posts: 311

Rep: Reputation: 32
-bash: /bin/umount: cannot execute binary file


[root@localhost bin]# umount
-bash: /bin/umount: cannot execute binary file


I am getting this error while trying to unmount a partition , what should i do ?

I am using Fedora 10 x86_64.

Last edited by peeths003; 07-17-2009 at 02:57 PM.
 
Old 07-17-2009, 03:43 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 18,481

Rep: Reputation: 2770Reputation: 2770Reputation: 2770Reputation: 2770Reputation: 2770Reputation: 2770Reputation: 2770Reputation: 2770Reputation: 2770Reputation: 2770Reputation: 2770
You type only the word unmount?
 
Old 07-17-2009, 04:13 PM   #3
peeths003
Member
 
Registered: Jun 2008
Distribution: Fedora 12 i686, Debian 5.0.1 i686, Fedora 14 x86_64, Debian Lenny 5.0.1x86_64 and CentOS_5.4_x86-64
Posts: 311

Original Poster
Rep: Reputation: 32
Even it is umount it should give the options , rite ?

eg:-
Quote:
[root@localhost ~]# mount
/dev/sdc2 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sdc6 on /home type ext3 (rw)
/dev/sdc1 on /boot type ext3 (rw)
I have typed the entire command also

Quote:
[root@localhost ~]# umount /mnt/mount/
-bash: /bin/umount: cannot execute binary file
Please help...

And also the command is umount , not unmount ( )

Last edited by peeths003; 07-17-2009 at 04:14 PM.
 
Old 07-17-2009, 04:18 PM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,577
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Hello peeths003

Chances are the executable is either corrupted or for the wrong architecture, for example 32 bit executable on 64 bit system. If you're using SELinux it could be a security problem ???

If you have a similar working system you could checksum the executable on both.

What is the output from
Code:
file /bin/umount
.

Best

Charles
 
Old 07-17-2009, 05:11 PM   #5
peeths003
Member
 
Registered: Jun 2008
Distribution: Fedora 12 i686, Debian 5.0.1 i686, Fedora 14 x86_64, Debian Lenny 5.0.1x86_64 and CentOS_5.4_x86-64
Posts: 311

Original Poster
Rep: Reputation: 32
Hi , if they are corrupted , how can I re-install or repair it .

The output is :

Quote:
root@localhost ~]# file /bin/umount
/bin/umount: setuid data
I am using Fedora 10 x86_64

Thanks
Peeths
 
Old 07-18-2009, 02:25 AM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,577
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Hello Peeths

"data" doesn't look too good! You could edit it and see what's in there. Maybe a root process overwrote the file contents. Simplest way to repair would be to copy from an identical system if you have one -- or get somebody to mail it to you.

Best

Charles
 
Old 07-18-2009, 02:32 AM   #7
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
FWIW, my umount gives this:
Code:
~$ file /bin/umount
/bin/umount: setuid ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
I agree with catkin. "data" doesn't look too good. You might want to reinstall the mount package (or whatever it's called in Fedora).
cheers,
jdk

Last edited by jdkaye; 07-18-2009 at 02:35 AM.
 
Old 07-18-2009, 02:49 AM   #8
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,577
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by catkin View Post
Hello Peeths

"data" doesn't look too good! You could edit it and see what's in there. Maybe a root process overwrote the file contents. Simplest way to repair would be to copy from an identical system if you have one -- or get somebody to mail it to you.

Best

Charles
Or restore from backup ... ?
 
Old 07-18-2009, 04:24 AM   #9
peeths003
Member
 
Registered: Jun 2008
Distribution: Fedora 12 i686, Debian 5.0.1 i686, Fedora 14 x86_64, Debian Lenny 5.0.1x86_64 and CentOS_5.4_x86-64
Posts: 311

Original Poster
Rep: Reputation: 32
I dont have a backup or an identical machine , How can I get the mount packages , I have enabled most of the respositories for Fedora. Please let me know the package that I might need to install ?

Thanks
Peeths
 
Old 07-18-2009, 04:31 AM   #10
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by peeths003 View Post
I dont have a backup or an identical machine , How can I get the mount packages , I have enabled most of the respositories for Fedora. Please let me know the package that I might need to install ?

Thanks
Peeths
It's called "mount" in debian. It may be called that or something close to that in Fedora. Doesn't yum have a search facility? Just look for it.
jdk
 
Old 07-18-2009, 09:30 AM   #11
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,577
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
It might also be useful to examine the contents of the executable in case it gives you a clue how it happened so you can stop it happening again.
 
Old 07-18-2009, 11:26 AM   #12
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Quote:
Originally Posted by peeths003 View Post
I dont have a backup or an identical machine , How can I get the mount packages , I have enabled most of the respositories for Fedora. Please let me know the package that I might need to install ?

Thanks
Peeths
In Fedora the package is util-linux-ng. First you can try
Code:
rpm -V util-linux-ng
to verify the integrity of the package and see if other files are corrupted (the util-linux-ng package provides a lot of basic administration commands). Then you can try to reinstall, by downloading the package and using
Code:
rpm -Uvh --force util-linux-ng-2.14.1-3.fc10.x86_64.rpm
 
Old 07-19-2009, 09:14 AM   #13
peeths003
Member
 
Registered: Jun 2008
Distribution: Fedora 12 i686, Debian 5.0.1 i686, Fedora 14 x86_64, Debian Lenny 5.0.1x86_64 and CentOS_5.4_x86-64
Posts: 311

Original Poster
Rep: Reputation: 32
I re-installed the package
Quote:
util-linux-ng-2.14.1-3.3.fc10.x86_64
and its fine now.

Thanks everyone
Peeths
 
  


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
/jdk1.5.0_11/bin/java: cannot execute binary file philosophia Programming 3 12-20-2007 09:20 AM
bash: /usr/local/bin/CMIX: cannot execute binary file orenmagid Linux - Software 1 07-18-2007 03:16 PM
/bin/basename: cannot execute binary file KasperLotus Linux - Software 7 02-14-2007 02:17 PM
/bin/tar: cannot execute binary file dhammika Linux - General 8 11-08-2005 04:17 PM
bash: /bin/cat: cannot execute binary file inTUXicated Linux - General 9 08-06-2003 07:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration