Mr Lazy

August 4, 2009

How to setup NFS shares on WD TV using haneWIN

Filed under: NFS,WD TV — Mr Lazy @ 13:16
Tags: , , , , , ,

Purpose: describe how to set up NFS shares on a Windows Vista PC using haneWIN NFS Server and mount them from your WD TV.  This how-to assumes you are already running one of the community firmwares, have a working USB LAN adaptor and have set up networking (ie. your WD TV has an IP address and you can see it from your PC).  I’ve only tested it with ext3-boot, but it should work with WDLXTV (plus the NFS app pack of course).

UPDATE 27Aug09: after having tried again with haneWIN, I have finally settled on TrueGrid.  The day after I started using haneWIN again, the NFS service would not start for no obvious reason, even after I’d deleted and re-created the exports file (something which had previously fixed this problem).  Another time, the service simply refused to stop.  I can’t recall ever having had problems with TrueGrid.  The way I see it, the only reason to use haneWIN over TrueGrid is if you have files larger than 2.2GB (I’ve yet to try Labtam ProNFS other than just a brief test).

Note: although the program states that there is a 30-day evaluation period, in my experience the program keeps on working.

1.  Download haneWIN NFS Server from

2.  install the software using the setup utility.  By default, the program installs into Program Files\nfsd, but I chose to install to Program Files\haneWIN, as it’s more meaningful

3.  this should also automatically install and start the two necessary services.  To check: Start > All Programs -> Administrative Tools -> Services

screenshot of nfs service hanewin

screenshot of sunrpc service hanewin

 4.   from either the Desktop or the Start menu, select the NFS Server program.  Note that this ‘control panel’ doesn’t have to be running for the NFS server to work (just the two Windows services above, which should start with Windows), it is only used to setup the server.  You can also start the program from the Windows Control Panel

screenshot of start menu hanewin

5.  select the Exports tab and select the ‘Edit exports file’ button.  The exports file is how you tell the NFS Server what shares you want to share with your WD TV.  An example exports file is included with haneWIN and this will have opened in Notepad when you selected this button

6.  modify the exports file according to your needs.  You need to insert the Windows path, followed by a space, followed by ‘-name:’ and then the name you want to call the share (this is how you will reference it from the WD TV).  Below is an example:

screenshot of exports hanewin

Note that the exports file has no extension – the filetype is just ‘File’, so don’t try and save it with a .txt extension because haneWIN won’t like it.

7.  select the ‘Restart Server’ button

NOTE: when you make changes in the future, I would advise you to stop the NFS Server service before editing the exports file.  Then, either restart it manually or select the Restart Server button.  This is because sometimes I found that the exports file would get corrupted if I tried to edit it whilst the server was still running and I had to delete and create a new exports file.

8.  the Exports tab should now auto-update.  This is what my Exports tab now looks like:

screenshot of exports tab hanewin

Notice that the Exports tab shows only the name I gave the share, not the full path.

That should be all we need to do on the PC side – you should be able to leave all the other haneWIN settings at default.  Before we set things up permanently on the WD TV we’ll first test to make sure we can see the NFS share from the WD TV.  [If you are not comfortable with using telnet/SSH and/or the command line, you don’t have to do this, but it’s a lot quicker because you don’t have to edit any files or reboot the WD TV etc.] 

10.  login to your WD TV, using a username of ‘root’ and a blank password (ie. press return)

11.  type the following:

xmount <IP address>:/DVDs DVDs nfs

where <IP address> is the IP address of your PC, for example xmount DVDs nfs.  If the command has been successful you will receive no messages (though just because you receive no message does not necessarily mean the share is mounted)

12.  type:

mount -t nfs

this will show you all the mounted NFS shares, if any.  If you don’t get anything back, it didn’t work.  You should see something like this: on /tmp/media/usb/USB1/DVDs type nfs (rw,v3,rsize=8192,wsize=8192,soft,intr,lock,proto=udp,addr= on /tmp/media/usb/DVDs type nfs (rw,v3,rsize=8192,wsize=8192,soft,intr,lock,proto=udp,addr= on /tmp/media/usb/USB1/8AA6-71D0/DVDs type nfs (rw,v3,rsize=8192,wsize=8192,soft,intr,lock,proto=udp,addr=

the pathnames may be slightly different with the WDLXTV custom firmware and the parameters at the end may be different (regardless of firmware), but don’t worry about this for the moment

13.  on the haneWIN control panel, select the Mounts tab.  It should now reflect the shares that the WD TV has mounted:

screenshot of mounts tab hanewin

14.  if all is well, you can now set things up on a permanent basis on the WD TV.  You need to edit the net.mounts file, either by copying it to your PC, editing it using your favourite text editor and writing it back to the USB stick (or hard drive in the case of WDLXTV) or, if you are feeling adventurous, use vi (or another text editor) directly on the WD TV.

Here’s the relevant line for my share:

xmount DVDs nfs udp,rsize=32768,wsize=32768

the UDP parameter forces haneWIN to use the UDP protocol as opposed to TCP – most people, including myself, have found UDP to be faster.   The rsize and wsize parameters tell NFS what transfer block size to use – because haneWIN supports NFS v3, it allows us a maximum of 32768 bytes.  However, you may have better results using a smaller size depending on your network etc.

15.  you will now need to reboot your WD TV.  Test that the share is visible by going in to the relevant folder from the GUI/OSD.  Make sure the share contains at least one file of the relevant type (ie. a video file if you are going via ‘Video’).

If you have any problems disable any firewall on your PC and try again.  If  problems persist I would recommend starting a new topic at


Create a free website or blog at