OpenWrt Forum Archive

Topic: nfs-kernel-server not working

The content of this topic has been archived on 1 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

I installed the nfs-kernel-server package on my Whiterussian 0.9 router (Asus WL-500GP). /etc/exports is configured to share the USB harddisk.

But trying to mount the NFS share from another machine, I get this error message:

RPC Error: 15 ( Program not registered )

Looking at the router, the problem appears to be that rpc.nfsd is not running. Although portmap, rpc.statd and rpc.mountd are running just fine, rpc.nfsd refuses to start. Trying to run it manually immediately brings me back to the command prompt, without any error messages, but no daemon is started.

Could this be a problem with my setup, or is the package somehow broken? I'd appreciate any help...

Thanks,
Dominic

Hi

Did you solve this problem already? I am at the same point now, nfsd doesn't want to start. In the forum i couldn't find any hint on how to solve this.

I am also using Whiterussian 0.9 on Asus WL-500GP.

Regards

Rooster

Hi,

nope, I haven't solved this yet, been using samba for now. But I'd still like to try and get nfs working.

It seems that one would need to build the nfsd kernel module, which is missing in Whiterussian. If someone can recommend an easy way to do this, please let me know.
Of course I don't know if that's really all there is to it, I still think it's odd that rpc.nfsd does not even give an error message ("missing kernel module" or something), but instead just appears to do nothing at all.

Dominic

Hi, I was also in trouble with the nfs-kernel-space server, found that P.Colberg compiled a newer module that worked for me! At now I'm on kamikaze latest build and since 28.3.2007 they updatet the package, since then it's works very well for me! Have a look at google for nfs and colberg or try search over here for colberg, you will find the link and the ipk's he built.

Regards

Joachim

PS: Forgot to say you will also need to install portmap if you don't have already!

(Last edited by jhinsch on 5 Apr 2007, 10:32)

Hi,

Thanks, I found packages here:
http://www.cip.ifi.lmu.de/~colberg/Open … ssian/rc6/

I installed kmod-nfsd from that site, and also nfs-kernel-server and nfs-kernel-server-utils (replacing those from the Whiterussian backports). This way, I managed to get the nfs server to start.

I had some more problems trying to mount the exported filesystem, getting this error message on the client:
mount: Unknown error 521

I was able to solve this by changing /etc/exports, so that the exported directory was on a ext3 filesystem, instead of jffs (i.e. exporting /mnt/disc0_1 instead of just /mnt).

Now nfs seems to be working quite well, and from the little testing I did so far, it appears to be almost twice as fast as samba on my router (though still a bit slower than ftp).

Thanks a lot,
Dominic

Hi there....

I´m trying to mount the NFS server on my Asus Router in to my Dreambox, and just like to ask:
What is the mount called when you mount /mnt/disc0_1 to an  other linux box ??

Is it just called /mnt/disc0_1 becource then my NFS server is still not working as it should.... :-(

--
Peter

pshdo wrote:

I´m trying to mount the NFS server on my Asus Router in to my Dreambox, and just like to ask:
What is the mount called when you mount /mnt/disc0_1 to an  other linux box ??

Is it just called /mnt/disc0_1 becource then my NFS server is still not working as it should.... :-(

If I understand your question correctly, that would be host:/mnt/disc0_1, where host ist the hostname of the router (e.g. in /etc/hosts on the client), or the routers IP address.
So the whole mount command would be:

mount -t nfs host:/mnt/disc0_1 /mountpoint

Also, you can verify that the NFS server is actually running and exporting the filesystem by running "showmount -e host" on the client.


Dominic

Thank you for the reply, that was exactly as i thought.....
- but i needed to get it confirmed... ;-)

If i should/could use a login:password, how would i enter that in the setup-files of the NFS-server ??
- it would (i think) be in the exports file, but i don´t know the syntax of the file to enter the login....

One more thing:
Can i use the same shared drive eg. /mnt/disc0_1 if i am also using that for my samba-server ??

At last:
Is there any way to get access to a NFS on my router from a Windows XP machine ??
It would be mutch easyer to try it that way, than it is to try it from my Dreambox (a linux satellite box)
My dreambox don´t have the showmount command, so i cant use that.....
- maybe i could try to boot from a DVD with a Linux on it and do it that way ??

--
Peter

(Last edited by pshdo on 23 Apr 2007, 12:01)

Hi again....

Pleace can you perhaps help me a little, as i feel that i have missed something......

I tey this:
mount nfs 192.168.1.1:/mnt/disc0_1 /hdd

And get this result:
mount: Mounting nfs on /192.168.1.1:/mnt/disc0_1 failed: No such file or directory

My exports file look like this:
/mnt/disc0_1 *(rw,all_squash,insecure,sync)

The discussion might have continued from here.