Hi All,
I'm a newbie and couldn't find any information on this.
I was to setup a NFS Server running on my raspberry pi. Can anyone please tell me how to setup that? Also, do I need to overclock my Raspberry pi for it to work properly? Thanks

No need to overclock for NFS to work, but a few things to keep in mind when you use that tutorial:

1. Raspbian has no portmap in the repos, so don't worry when it doesn't install. Skip any steps involving it.
2. When you add the mount to the remote machine's /etc/fstab, the filesystem should be "nfs" instead of "nfs4" and you might have to add "nolock" to the mount options. My fstab line looks like this:

3. Copying to the NFS server from a remote machine seems to hang the transfer--though that could be related to my USB drive being the NFS export. If you have this problem, using scp is a good way around it. It's slower, but less likely to choke your Pi's connection.

however, i am trying to run it as nfs3+ higher since files over 2gb seems to have wrong file sizes.issue is related to nfs , and I am not sure how can I force nfs to use a higher version in the /etc/exports file.

however, i am trying to run it as nfs3+ higher since files over 2gb seems to have wrong file sizes.issue is related to nfs , and I am not sure how can I force nfs to use a higher version in the /etc/exports file.

Thanks just did that, nfs server is up and running even though I wasn't able to install portmapper (ignored it as suggested above). I'm now having issues having XBMC on apple TV2 access my NFS directory. I'm using the following /etc/export

I tried that but still no go, AppleTV would just not recognize the NFS server running on my raspberry pi. I then decided to try SMB instead and it worked immediately. So for now I'm going to stick with SMB until I can resolve the NFS server issues. Thanks everyone, this forum is a wonderful resource for newbies like me

I've tried XBMC on a Pi and had no success connecting to an NFS share. It works fine using Samba. Note that these shares are on a commercial NAS box and the NFS share is in daily use: it is entirely reliable. I tried to access it by using XBMC directly to access the share. When this failed I tried mounting the share and accessing it as part of the local filesystem. In both cases XBMC tended to hang.

So perhaps XBMC is having problems rather than your server.

I have also set up a Pi as an NFS server and have experienced the same issues as you. Firstly it only supports the version 2 protocol with a 2GB file size limit. And secondly it's unstable if you copy lmultiple gigabytes of data across to it. Hopefully these issues will be resolved in a future upgrade.

I now have an NFSV4 server running reliably on the Pi. I rebuilt the kernel using the instructions athttp://elinux.org/RPi_Kernel_Compilatio ... compiler_2
and copying the new kernel image in the raspberrypi directory tree at linux/arch/arm/boot/Image to /boot/kernel.img

After a reboot I could mount the Pi NFS shares, using the fstab line below to force a user mount command to use the V4 protocol:
pi01:/mnt/usb01 /mnt/pidisk nfs4 user,noauto 0 0
Note pi01 maps to the IP address of the pi on my system and /mnt/usb01 is the NFS share

To date it seems reliable, it can handle files much bigger than 2GB and also offers decent performance (7MB/s write, 5.7MB/s read). This is pretty much the most that can be expected of the Pi's 100Mbps network connection.

pythoncoder wrote:I now have an NFSV4 server running reliably on the Pi. I rebuilt the kernel using the instructions at

Latest kernel available through rpi-update has NFSV4 support.

When is this kernel expected to be available in stable? As I understand it rpi-update is bleeding-edge and apt-get update && apt-get upgrade is stable. I don't want to run bleeding-edge but running stable gives me the following kernel which doesn't seem to contain NFSV4 support:

pythoncoder wrote:To date it seems reliable, it can handle files much bigger than 2GB and also offers decent performance (7MB/s write, 5.7MB/s read). This is pretty much the most that can be expected of the Pi's 100Mbps network connection.

How do you (or others with decent speed) have your drive setup? What filesystem? I've tried NTFS and EXT4 on an external USB drive but I/O seems pretty slow. I guess I should try an older, simpler filesystem?