public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: How to mount /proc/sys/fs/binfmt_misc ?
@ 2001-03-16 16:12 Wayne.Brown
  0 siblings, 0 replies; 15+ messages in thread
From: Wayne.Brown @ 2001-03-16 16:12 UTC (permalink / raw)
  To: Alexander Viro; +Cc: linux-kernel



Thanks for the quick response.  I took your suggestion (a) and created
/etc/binfmt_misc, and set up a test in my rc.local to mount it and register my
usual entries there if /proc/sys/fs/binfmt_misc doesn't exist.  So now it works
with both 2.4.3-pre4 and 2.4.2-ac20.

Wayne




Alexander Viro <viro@math.psu.edu> on 03/16/2001 09:37:49 AM

To:   Wayne Brown/Corporate/Altec@Altec
cc:   linux-kernel@vger.kernel.org

Subject:  Re: How to mount /proc/sys/fs/binfmt_misc ?





On Fri, 16 Mar 2001 Wayne.Brown@altec.com wrote:

>   The release notes specify this:
>
>      mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
>
> but this doesn't work because
>
>      mount: mount point /proc/sys/fs/binfmt_misc does not exist

Grr... OK, I've been an overoptimistic idiot and missed that ugliness.

Solutions:
     a) mount it on some real place. And write there to register
entries instead of the bogus /proc/sys/fs/binfmt_misc
     b) add a couple of proc_mkdir() into fs/proc/root.c
That is, add
     proc_mkdir("sys/fs", 0):
     proc_mkdir("sys/fs/binfmt_misc", 0);
after the line that says
     proc_mkdir("sys", 0);

I would strongly recommend (a). In the long run we'll need to go that
way.




^ permalink raw reply	[flat|nested] 15+ messages in thread
* How to mount /proc/sys/fs/binfmt_misc ?
@ 2001-03-16 15:23 Wayne.Brown
  2001-03-16 15:37 ` Alexander Viro
  2001-03-16 16:02 ` Thomas Dodd
  0 siblings, 2 replies; 15+ messages in thread
From: Wayne.Brown @ 2001-03-16 15:23 UTC (permalink / raw)
  To: linux-kernel



OK, I've been struggling with this (off and on) since Tuesday, and I give up.
Since going from 2.4.3-pre4 to 2.4.2-ac20 I have been unable to use binfmt_misc.
Thanks to a hint from Michael Meissner, I found a mention in the release notes
for 2.4.2-ac12 that binfmt_misc should be mounted separately.  However, I still
have a problem.

  The release notes specify this:

     mount -t binfmt_misc none /proc/sys/fs/binfmt_misc

but this doesn't work because

     mount: mount point /proc/sys/fs/binfmt_misc does not exist

And if I try to mkdir -p /proc/sys/fs/binfmt_misc with /proc mounted I get

     mkdir: cannot create directory `/proc/sys/fs/binfmt_misc': No such file or
directory

which makes sense, I guess, because proc isn't a "real" filesystem.  So how do I
get binfmt_misc mounted?

Wayne



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2001-03-23  9:36 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-16 16:12 How to mount /proc/sys/fs/binfmt_misc ? Wayne.Brown
  -- strict thread matches above, loose matches on Subject: below --
2001-03-16 15:23 Wayne.Brown
2001-03-16 15:37 ` Alexander Viro
2001-03-16 17:49   ` Richard Guenther
2001-03-16 17:58     ` Alexander Viro
2001-03-16 18:07       ` Alexander Viro
2001-03-16 18:32         ` David Weinehall
2001-03-16 18:48           ` Alexander Viro
2001-03-19 19:29             ` Colin Watson
2001-03-20 10:12               ` Richard Guenther
2001-03-22 18:28                 ` Colin Watson
2001-03-22 19:07                   ` Alexander Viro
2001-03-23  9:34                     ` Richard Guenther
2001-03-21 19:18     ` Alan Cox
2001-03-16 16:02 ` Thomas Dodd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox