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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-04-2009, 01:19 PM
|
#1
|
|
Member
Registered: May 2006
Location: Mt Umunhum, CA, USA
Distribution: Debian/ Fedora
Posts: 408
Rep:
|
FATAL: Module binfmt_misc not found.
Hi group,
I starting having this problem at boot time. In my rc.local I have rgese lines:
Code:
modprobe binfmt_misc
echo ':rexx:M::/*::/usr/bin/rexx:' >> /proc/sys/fs/binfmt_misc/register
echo ':rexxcmd:E::cmd::/usr/bin/rexx:' >> /proc/sys/fs/binfmt_misc/register
All worked well for a long time, since FC5.
Now for some reason I get this:
Code:
$ modprobe binfmt_misc
FATAL: Module binfmt_misc not found.
FATAL: Error running install command for binfmt_misc
I am running Fedora Core 10 on a Fujitsu LifeBook.
Any ideas?
Thanks for your time.
|
|
|
|
08-04-2009, 05:02 PM
|
#2
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,394
|
It looks like your FC 10 kernel does not have the binfmt_misc module compiled in, unlike your old FC 5. If you still need it (to run rexx as I see in your rc.local), then you have to recompile your kernel adding it. Quoting from kernel help:
Quote:
CONFIG_BINFMT_MISC:
If you say Y here, it will be possible to plug wrapper-driven binary formats into the kernel. You will like this especially when you use programs that need an interpreter to run like Java, Python, .NET or Emacs-Lisp.
...
Once you have registered such a binary class with the kernel, you can start one of those programs simply by typing in its name at a shell prompt; Linux will automatically feed it to the correct interpreter.
...
To use binfmt_misc, you will need to mount it:
mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc You may say M here for module support and later load the module when you have use for it; the module is called binfmt_misc. If you don't know what to answer at this point, say Y.
Symbol: BINFMT_MISC [=m]
Prompt: Kernel support for MISC binaries
Defined at fs/Kconfig.binfmt:139
Location:
-> Executable file formats / Emulations
|
|
|
|
|
08-05-2009, 12:58 PM
|
#3
|
|
Member
Registered: May 2006
Location: Mt Umunhum, CA, USA
Distribution: Debian/ Fedora
Posts: 408
Original Poster
Rep:
|
It was working
Quote:
Originally Posted by bathory
It looks like your FC 10 kernel does not have the binfmt_misc module compiled in, unlike your old FC 5. If you still need it (to run rexx as I see in your rc.local), then you have to recompile your kernel adding it. Quoting from kernel help:
|
It was working until about a week ago. I just updated the kernel and it still is broken.
|
|
|
|
08-05-2009, 05:19 PM
|
#4
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,394
|
Quote:
$ modprobe binfmt_misc
FATAL: Module binfmt_misc not found.
FATAL: Error running install command for binfmt_misc
|
Try to run it as root and see what happens.
Also what is the output of
Code:
grep BINFMT_MISC /boot/config-`uname -r`
|
|
|
|
08-06-2009, 01:45 PM
|
#5
|
|
Member
Registered: May 2006
Location: Mt Umunhum, CA, USA
Distribution: Debian/ Fedora
Posts: 408
Original Poster
Rep:
|
Quote:
Originally Posted by bathory
Try to run it as root and see what happens.
Also what is the output of
Code:
grep BINFMT_MISC /boot/config-`uname -r`
|
$ grep BINFMT_MISC /boot/config-`uname -r`
500:CONFIG_BINFMT_MISC=y
[root@laptop ~]# modprobe binfmt_misc
FATAL: Module binfmt_misc not found.
FATAL: Error running install command for binfmt_misc
|
|
|
|
08-06-2009, 03:33 PM
|
#6
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,394
|
So you have binfmt_misc built-in the kernel and not as a module. This means that you can skip the modprobe command and use the rest to do what you want.
|
|
|
|
08-07-2009, 12:41 PM
|
#7
|
|
Member
Registered: May 2006
Location: Mt Umunhum, CA, USA
Distribution: Debian/ Fedora
Posts: 408
Original Poster
Rep:
|
Quote:
Originally Posted by bathory
So you have binfmt_misc built-in the kernel and not as a module. This means that you can skip the modprobe command and use the rest to do what you want.
|
But it is not working. Not sure why?
|
|
|
|
08-07-2009, 01:07 PM
|
#8
|
|
Member
Registered: May 2006
Location: Mt Umunhum, CA, USA
Distribution: Debian/ Fedora
Posts: 408
Original Poster
Rep:
|
fixed
Quote:
Originally Posted by MrUmunhum
But it is not working. Not sure why?
|
OK, I figured it out. The problem was that the entry pointed /usr/local/bin/rexx and not /usr/bin/rexx. Don't know why this has changed?
The quick fix was 'sudo ln -s /usr/bin/rexx /usr/local/bin/rexx'.
This was the give away.
Code:
# cat /proc/sys/fs/binfmt_misc/rexx
enabled
interpreter /usr/local/bin/rexx
flags:
offset 0
magic 2f2a
Working on proper fix.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:54 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|