About a month ago I did a write up on setting up Samba sharing in WHS. Today I will take a look at setting up Network File System (NFS)in WHS. Like SMB and HTTP, NFS is another mechanism that some media streaming devices use to allow access to your files over the network. The main reason why I decided to test out NFS is because I kept running into performance issues with SMB on some of my media players (i.e. PCH C-200 and Xtreamer) and NFS has been noted to perform better with large files. We are going to use the free Windows Services for UNIX software.
Files Needed:
- Windows Services for UNIX Version 3.5 (download to your desktop)
- group.txt (you can just download this to your My Documents folder or really any folder)
- password.txt (you can just download this to your My Documents folder or really any folder)
Installing The Windows Services Software in WHS:
- Extract all files from the Windows Services download (I just extract to a folder labeled “NFS” on my desktop) and run “SfuSetup.msi”. Click “Next” on the welcome screen to get started. The installation process is relatively easy with most selections being the default selections, but I will go through each step.
- Customer Information – Verify your customer information. I just left the default information in place
- License and Support Information – Accept the End-User License Agreement
- Installation Options – We are only going to need the NFS components, so select “Custom Installation”
- Select Components – Select only “Server for NFS” and “Server for NFS authentication”. Make sure a red X is next to all other components
- Security settings - leave this unchecked and hit Next
- User Name Mapping – Make sure “Local User Name Mapping Server” and “Network Information Service (NIS)” are selected and click Next. Make sure your Windows Domain Name is selected (in my case \\HPSTORAGE for the EX495) and click Next.
- Installation Location – choose the drive you want the Windows Services installed, I chose the C: drive.
- You should have now successfully completed the Microsoft Windows Services for UNIX Setup wizard.
Configuring The NFS Server Mapping:
With everything now installed it is time to configure the user name mapping for the NFS server. Go to Start Menu -> All Programs -> Windows Services for UNIX -> Services for UNIX Administration
- Highlight “User Name Mapping”. Under Configuration select “Use Password and Group files”. In the section below click “Browse…” and select the “password.txt” file for “Password file path and name:”, and “group.txt” file for “Group file path and name:”. Once done click the Apply button at the upper right hand corner.
- Now go to the “Maps” section and do the following:
- select “Show User Maps”
- click “Lists Windows Users” and “List UNIX Users”
- select “Guest” under “Windows users:”, and “root” under “UNIX users:”
- click “Add” button and the entry will appear at the bottom “Mapped users:” box
- select “Show Group Maps”
- click “Lists Windows Groups” and “List UNIX Groups”
- select “Guests” under “Windows groups:”, and “root” under “UNIX groups:”
- click “Add” button and the entry will appear at the bottom “Mapped groups:” box
- finally click the upper right “Apply” button.
Configuring Windows Firewall:
- To make sure the NFS Server works properly the next step is to add exceptions to the Windows Firewall. Go to Control Panel -> Windows Firewall, click on the “Exception” tab, and then click on the “Add Port” button. The following exceptions should be added:
- RPC portmap port: TCP and UDP 111
- Sun Neo port: TCP and UDP 1048
- NFS port: TCP and UDP 2049
- When completed you should now see the six exceptions created in the list of “Programs and Services:”
Enabling NFS Sharing:
- We are almost there! The last step is to enable nfs sharing for the folder(s) you wish to share. Navigate to the folder you wish to share via Windows Explorer (in my case I wanted to share my “shares” folder on my D: drive). Right click on the folder, select properties, go to the “NFS Sharing” tab, and select “Share this folder”. If you decide to change the Share Name make sure you use only alphanumeric characters and the name is case sensitive.
- Now click the “Permissions” button, select “Allow root access” and click “Apply”
- Finally, go to the “Sharing” tab, select “Share this folder”, and click “Apply”
- As a confirmation to make sure the NFS Server is running go into Services under the Control Panel. Locate “Server for NFS” and hopefully its status should be “Started”. You can also stop and restart the service from here.
Miscellaneous:
- If you are going to connect a media player to your WHS via NFS the address used is slightly different then with smb. Using my PCH C-200 as an example, under smb my network share address would be smb://MyServer/Videos. Under NFS the network share address would be nfs://MyServer:/Videos (take note of the additional “:”).
- If you are unable to download the Password.txt and/or Group.txt files you can create easily. Open up notepad and copy/paste the below text:
(for group.txt)
root:x:0:
nmt:x:1001:
(for password.txt)
root:x:0:0:root:/root:/bin/sh
nmt:x:1001:1001:nmt:/nmt:/bin/sh
- I can confirm that issues I had streaming via SMB were resolved by streaming via NFS. This seems to be device specific though, so I would try SMB first before attempting NFS.
Source:
























{ 80 comments… read them below or add one }
← Previous Comments
@ geir,
That is very strange, NFS should be the same if not slightly higher then SMB. Do you videos play back fine?
No, not from the NFS mount. They shutter. From the SMB mount everythings works fine. I’m about to take a new install of WHS with new disks, so I will come back to you. Thanks for your help so far
Hi!
I followed the instructions but when I going to add the IP/Host name (Popcorn C-200, Last Firmware), I could not add symbol “:” after IP/Host name –I have alert “Invalid IP Address or host name”.
When I try access via Network browser, I can see shared directory, but I have message “Request cannot be processed”.
Can anyone help me?
Instead of typing in the address manually, go into your Setup Menu on your PCH, go to Network Shared, Browse, and navigate to your NFS share. You should be able to add it directly from there instead of having to type in.
Hi, Demian!
I do it, but I have message “Request cannot be processed” again.
Nothing happened. Again I received a message “Request cannot be processed”.
Did you try either restarting your WHS or restarting the NFS server. For whatever reason I have to do that once in a while
Hi, Demian!
I downloaded the latest firmware,
Several times I rebooted the NMT C-200, WHS, Server for NFS.
Settings all the correct, as in your guide.
In the log appears the message:
DATE TIME TASK RESULT ADDRESS DESCRIPTION…
————————————————————————-
03-20-2010 19:58:24 MOUNT SUCCESS 192.168.1.99 D:\shares\BT_Downloads
But I have message “Request cannot be processed” again.
Any Ideas
Anatoly
I have the same problem as Anatoly after uppgrade to 3.0
“Request cannot be processed om my Popcorn!?
So it was working fine until you guys upgraded to the latest HP 3.0 software? I don’t have an MSS anymore so just confirming, my WHS is up to date I believe
Yes, before 3.0 everything worked perfect!
P.S. I have Acer Aspire easyStore H340 (updated).
Is it possible to test the NFS server without using Popcorn C-200?
You would need a player (or maybe another PC?) that can access the NFS. I have an Xtreamer which can access the NFS, so t hat is what I use to determine whether NFS is down or it is just a PCH issue.
Got it working now… You need to add some rights to the Windows share!
So did 3.0 reset some rights as it was working before the update, correct?
What rights for the share do you have to set? This isn’t working for me, the movies won’t play at all. I had a similar problem with a SMB share, and adding in an account and giving that account rights fixed it, but I don’t see where to do this for NFS…
I have the same problem like Chris: I followed the instructions. The browser shows my WHS server under NFS server. Selecting the WHS server shows the folders videos and music which are shared. Selecting videos shows the message that the request could not be completed. So I see the NFS shared folder “videos” but cannot acces the files within that folder. Any idea?
THX
digger
@ digger,
Sounds like a rights issue. Mike mentioned that he had to add some rights to his window share, not sure what he did though
Hi Damain,
I’m having the same issue as Steve back on Feb 7th. I can see the root folder, but as soon as I select it, I get a hard lock and my A200 cant see the folders inside. Samba works fine. Any ideas? Thanks!?!?
I think the people with the cant be completed issue, did you try enabling the guest account?
Ok, Im an idiot. I had jumbo frames enabled on my whs. Once I turned that off, everything worked like a charm.
FYI to others out there with the same issue. Disable jumbo frames till Sybas fixes their gigabit adapters
@ Tony,
Interesting, I would have never thought of that. I wonder how many other people who have had problems with NFS was due to Jumbo Frames. Thanks for sharing the info
Hello,
I also got the problem, that I can see the NFS share but when I try to access it (I use a C-200) I get an error.
I once used it on a Acer h340, worked, a bit later on a XP Pro System, also ok.
Now I got my self a new selfbuild Homeserver, it wont do it any more.
It is a fresh installed system, with all Updates, is this may the problem?
To me it look’s as I have got the same problem as Digger.
Did anyone figure out, what Mike did, so that it is working for him?
Would be nice to tell the others, what You have done to solfe the problem…..
Thanks Damian for an excellent guide. It made it simple for me to setup NFS on my WHS last night. However after setting it up and creating the share on my PCH C200 the PCH couldn’t see any of the files. After reading all the comments here and noticing the comment from “Mike” on sharing changes, I did the following to my “WHS” share of the D:\shares drive:
Under “Sharing->Permissions” I added the user “Guest” with read-only access.
Under “Permissions” I added the user “Guest” with read&execute, list and read permissions.
Once I did that my PCH read the share just fine and now my YAMJ is running fine with an NFS share instead of SMB. I can also use the Lundman shell into my PCH and cd to /opt/sybhttpd/localhost.drives/NETWORK_SHARE/WHS and do an ‘ls’ to see what’s there. Before changing the sharing/security settings above I couldn’t see anything.
Hi Kevin,
Thanks for sharing. When I have a moment I will update the guide to reflect the changes you made.
Damian
I have been reading your posts here and your blog looking for some answers. I have just built my first HTPC and DIY home server. I am looking for the best front end player to access my media files while using the best way to back up my media files (dont want to mirror because i am already at 10TB of DVD and Bluray and dont want to use up another 10TB for backup). I have windows 7 on my HTPC and am setting up the bitstreaming using MPC HC after reading your post. I am installing WHS on my tower that is very similar to your build. Any thoughts would be great. I live on a military base overseas right now and all we have is dialup on base so downloading and testing is not really an option for me at this point as downloads take forever. I am hoping you can give me some input on what you think is best player to use, best DVD/Blu-ray ripper to use (i have used DVDfab for DVDs to .avi format, but never blurays), and best way to have some redundancy without mirroring.
@ islander84,
When you say player, are you talking about a front end (such as WMC or XBMC) for your HTPC to use for playback, or are you talking about a separate media player (such as a Popcorn Hour or Dune) for playback?
I honestly prefer to put all my movies (DVDs and Blu Rays) into mkv format. I don’t encode, I only keep the main movie and main HD audio track. You can see some of the methods for creating mkvs here (http://www.mediasmartserver.net/tag/mkv/)
Whether NFS will work on WHS Vail v.2?
I am refering to a front end player for my HTPC. i downloaded the MPC HC, but am waiting on a receiver to arrive before setting up the bitsreaming and checking it out. My process is much slower as i have to find places that will ship to APO addresses and my download times are probably the slowest on earth. We are dial up which then goes over a satellite to california. Anything larger than a song usually times out before it downloads so i have to retry over and over until it finally finishes. I am also looking for a backup method that is reliable, but less space required as mirroring.
I looked into FlexRAID after seeing it on AVSForum, but i am not sure if i have the tech savvy to set it up.
@ islander84,
MPC HC is definitely the best to use for bitstreaming. I would recommend using W7MC + Mediabrowser. Other alternatives would be W7MC + MyMovies or XBMC. For all three of t hese choices it is easy to set up MPC HC to launch as a 3rd party player and it integrates fairly seemless. Let me know if you have any other questions that I can help out on.
I was curious about FlexRaid as well, but just didn’t feel like messing around with my 16TB worth of data. WHS just works for me, even if I do lose half my space due to duplication.
← Previous Comments