public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Why cannot I do "insmod nfsd.ko" directly?
@ 2005-07-05 18:23 Xin Zhao
  2005-07-05 18:42 ` randy_dunlap
  2005-07-05 18:58 ` Horst von Brand
  0 siblings, 2 replies; 4+ messages in thread
From: Xin Zhao @ 2005-07-05 18:23 UTC (permalink / raw)
  To: linux-kernel

I tried to do "insmod nfsd.ko", but always got the error message
"insmod: error inserting 'nfsd.ko': -1 Unknown symbol in module"

Why?

The kernel is 2.6.11.10
The command I used is:
1. insmod lockd.ko  ---succeed
2. exportfs -r   ---succeed
3. insmod nfsd.ko --- failed 


Moreover, I noticed that if I do the following commands, nfsd.ko can
be inserted:

1. rpc.mountd
2. exportfs -r
3. rpc.nfsd 1

Can someone explain what trick rpc.mountd and rpc.nfsd do to make
nfsd.ko insertable?

Thanks in advance for your kind help!

-x

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

* Re: Why cannot I do "insmod nfsd.ko" directly?
  2005-07-05 18:23 Why cannot I do "insmod nfsd.ko" directly? Xin Zhao
@ 2005-07-05 18:42 ` randy_dunlap
  2005-07-05 18:58 ` Horst von Brand
  1 sibling, 0 replies; 4+ messages in thread
From: randy_dunlap @ 2005-07-05 18:42 UTC (permalink / raw)
  To: Xin Zhao; +Cc: linux-kernel

On Tue, 5 Jul 2005 14:23:39 -0400 Xin Zhao wrote:

| I tried to do "insmod nfsd.ko", but always got the error message
| "insmod: error inserting 'nfsd.ko': -1 Unknown symbol in module"

The kernel message log would at least tell you what symbol
is missing and then you/we can determnine why and where that
symbol is located.  Maybe there's just another module that needs
to be loaded before nfsd.ko.  And try using modprobe instead
of insmod since modprobe will look for module dependencies.


| Why?
| 
| The kernel is 2.6.11.10
| The command I used is:
| 1. insmod lockd.ko  ---succeed
| 2. exportfs -r   ---succeed
| 3. insmod nfsd.ko --- failed 
| 
| 
| Moreover, I noticed that if I do the following commands, nfsd.ko can
| be inserted:
| 
| 1. rpc.mountd
| 2. exportfs -r
| 3. rpc.nfsd 1
| 
| Can someone explain what trick rpc.mountd and rpc.nfsd do to make
| nfsd.ko insertable?
| 
| Thanks in advance for your kind help!


---
~Randy

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

* Re: Why cannot I do "insmod nfsd.ko" directly?
  2005-07-05 18:23 Why cannot I do "insmod nfsd.ko" directly? Xin Zhao
  2005-07-05 18:42 ` randy_dunlap
@ 2005-07-05 18:58 ` Horst von Brand
  2005-07-05 20:05   ` Xin Zhao
  1 sibling, 1 reply; 4+ messages in thread
From: Horst von Brand @ 2005-07-05 18:58 UTC (permalink / raw)
  To: Xin Zhao; +Cc: linux-kernel

Xin Zhao <uszhaoxin@gmail.com> wrote:
> I tried to do "insmod nfsd.ko", but always got the error message
> "insmod: error inserting 'nfsd.ko': -1 Unknown symbol in module"

Use modprobe(8), it knows about module dependencies and what to load.
-- 
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513

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

* Re: Why cannot I do "insmod nfsd.ko" directly?
  2005-07-05 18:58 ` Horst von Brand
@ 2005-07-05 20:05   ` Xin Zhao
  0 siblings, 0 replies; 4+ messages in thread
From: Xin Zhao @ 2005-07-05 20:05 UTC (permalink / raw)
  To: Horst von Brand; +Cc: linux-kernel

I just found the problem. I have to insmod exportfs.ko first. 

I can certainly use modprobe, but what I really want to do is to use
my own nfsd.ko instead of the default one.  But my nfsd.ko is not in
the default /lib/module/... directory. So if I use modprobe, it will
complaint cannot find nfsd.ko.

How to do this? Thanks!

-x

On 7/5/05, Horst von Brand <vonbrand@inf.utfsm.cl> wrote:
> Xin Zhao <uszhaoxin@gmail.com> wrote:
> > I tried to do "insmod nfsd.ko", but always got the error message
> > "insmod: error inserting 'nfsd.ko': -1 Unknown symbol in module"
> 
> Use modprobe(8), it knows about module dependencies and what to load.
> --
> Dr. Horst H. von Brand                   User #22616 counter.li.org
> Departamento de Informatica                     Fono: +56 32 654431
> Universidad Tecnica Federico Santa Maria              +56 32 654239
> Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513
>

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

end of thread, other threads:[~2005-07-05 20:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-05 18:23 Why cannot I do "insmod nfsd.ko" directly? Xin Zhao
2005-07-05 18:42 ` randy_dunlap
2005-07-05 18:58 ` Horst von Brand
2005-07-05 20:05   ` Xin Zhao

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