Validate Services for Network File System Capability
2/13/2013
Services for Network File System (NFS) allows Windows Embedded 8 Standard (Standard 8) clients to connect and mount the NFS shares exported from network-attached storage products not based on Windows, such as UNIX/Linux-based NFS servers and other storage vendor products.
Test Setup
Before you can run the following tests, you need the following:
- A Standard 8 device that has enterprise capabilities activated with a volume license key.
- A connection to a network-attached storage product.
Validate Services for NFS functionality
You can validate that Services for NFS is activated by following these procedures:
Note
The following procedures all require that you use a command prompt with administrator rights.
To enable NFS client features on your device
Open a command prompt with administrator rights.
At the command prompt, type the following commands to enable NFS client features:
dism /online /enable-feature /featurename:ServicesForNFS-ClientOnly /NoRestart dism /online /enable-feature /featurename:ClientForNFS-Infrastructure /NoRestart dism /online /enable-feature /featurename:NFS-Administration /NoRestart
Type the following command to restart your device in 60 seconds:
shutdown -r -f -t 60
To mount an NFS share
Open a command prompt with administrator rights.
At the command prompt, type the following command, setting the
NFSSharePath
variable to the location of the NFS share:SET NFSSharePath=<NFS share location>
Type the following command to set the volume letter for the NFS share:
SET TargetDrive=N:
Type the following command to mount the NFS share:
mount %NFSSharePath% %TargetDrive%
To copy files to the NFS share
At the command prompt, type the following command to create a temporary text file:
@echo NFS test > “C:\NFSTestFile.txt”
Type the following command to create a temporary folder on the NFS share:
mkdir N:\NFSTestFolder
Type the following command to copy the temporary text file to the NFS share:
copy C:\NFSTestFile.txt N:\NFSTestFolder
Type the following command to verify that the file was copied successfully:
if exist N:\NFSTestFolder\NFSTestFile.txt (echo “File copied successfully”) else (echo “File not copied”)
To copy files from the NFS share
At the command prompt, type the following command to create a temporary folder on the device:
if not exist C:\NFSTestFolder mkdir C:\NFSTestFolder
Type the following command to copy the temporary text file from the NFS share:
copy N:\NFSTestFolder\NFSTestFile.txt C:\NFSTestFolder
Type the following command to verify that the file was copied successfully:
if exist C:\NFSTestFolder\NFSTestFile.txt (echo “File copied successfully”) else (echo “File not copied”)
To delete files from the NFS share
At the command prompt, type the following command to delete the temporary text file from the NFS share:
del N:\NFSTestFolder\NFSTestFile.txt
Type the following command to verify that the file no longer exists on the NFS share:
if exist N:\NFSTestFolder\NFSTestFile.txt (echo “File still exists!”) else (echo “File was removed”)
Type the following command to remove the temporary directory on the NFS share:
rmdir N:\NFSTestFolder
Type the following commands to remove temporary files from your device:
del C:\NFSTestFolder\NFSTestFile.txt rmdir C:\NFSTestFolder del C:\NFSTestFile.txt
To unmount the NFS share
At the command prompt, type the following command to unmount the NFS share:
umount N:
To disable NFS client features on your device
At the command prompt, type the following commands to disable NFS features:
dism /online /disable-feature /featurename:NFS-Administration /NoRestart dism /online /disable-feature /featurename:ClientForNFS-Infrastructure /NoRestart dism /online /disable-feature /featurename:ServicesForNFS-ClientOnly /NoRestart
Type the following command to restart your device in 60 seconds:
shutdown -r -f -t 60
See Also
Reference
Test Kit for Windows Embedded 8 Standard Enterprise Capabilities