OpenWrt Forum Archive

Topic: [Howto] Installing a NFS server

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

Installing a NFS server

1. Install the unfs3 package (dependencies: portmap)

ipkg install unfs3

2. Change /etc/exports if needed

3. Start the NFS server and enable it on the next boot

/etc/init.d/unfs3 start
/etc/init.d/unfs3 enable

Check with 'pidof unfsd' or 'netstat -an' (port 2049 TCP and UDP) if the NFS server is running.

4. Configure /etc/hosts.allow and /etc/hosts.deny (optional)

5. On a Linux NFS client mount the share on the router with e.g.:

sudo mkdir -p /mnt/router
sudo mount -t nfs -o ro 192.168.178.3:/mnt/ /mnt/router

Note: I decided to use (ported and packaged) unfs3 because nfs-server and nfs-kernel-server packages didn't worked for me. Later I'll write a config file to configure some options via UCI.

(Last edited by forum2006 on 29 Jul 2007, 00:26)

Can we get a link to your unfs3 ipkg file?

With Kamikaze 7.09 all packages have been built and you find it after you flash 7.09 and run 'ipkg update'.

(Last edited by forum2006 on 30 Sep 2007, 21:45)

Hi,

before i could start the NFS server i also had to start and enable the the portmap server.

/etc/init.d/portmap start
/etc/init.d/portmap enable

Otherwise you will receive the following error:

Cannot register service: RPC: Unable to receive; errno = Connection refused
unable to register (NFS3_PROGRAM, NFS_V3, udp).

regards

Rooster

The discussion might have continued from here.