Export (0) Print
Expand All

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.

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.

You can validate that Services for NFS is activated by following these procedures:

JJ984565.note(en-us,WinEmbedded.81).gifNote:
The following procedures all require that you use a command prompt with administrator rights.

  1. Open a command prompt with administrator rights.

  2. 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
    
  3. Type the following command to restart your device in 60 seconds:

    shutdown -r -f -t 60
    

  1. Open a command prompt with administrator rights.

  2. At the command prompt, type the following command, setting the NFSSharePath variable to the location of the NFS share:

    SET NFSSharePath=<NFS share location>
    
  3. Type the following command to set the volume letter for the NFS share:

    SET TargetDrive=N:
    
  4. Type the following command to mount the NFS share:

    mount %NFSSharePath% %TargetDrive%
    

  1. At the command prompt, type the following command to create a temporary text file:

    @echo NFS test > “C:\NFSTestFile.txt”
    
  2. Type the following command to create a temporary folder on the NFS share:

    mkdir N:\NFSTestFolder
    
  3. Type the following command to copy the temporary text file to the NFS share:

    copy C:\NFSTestFile.txt N:\NFSTestFolder
    
  4. 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”)
    

  1. At the command prompt, type the following command to create a temporary folder on the device:

    if not exist C:\NFSTestFolder mkdir C:\NFSTestFolder
    
  2. Type the following command to copy the temporary text file from the NFS share:

    copy N:\NFSTestFolder\NFSTestFile.txt C:\NFSTestFolder
    
  3. 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”)
    

  1. At the command prompt, type the following command to delete the temporary text file from the NFS share:

    del N:\NFSTestFolder\NFSTestFile.txt
    
  2. 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”)
    
  3. Type the following command to remove the temporary directory on the NFS share:

    rmdir N:\NFSTestFolder
    
  4. Type the following commands to remove temporary files from your device:

    del C:\NFSTestFolder\NFSTestFile.txt
    
    rmdir C:\NFSTestFolder
    
    del C:\NFSTestFile.txt
    

  1. At the command prompt, type the following command to unmount the NFS share:

    umount N:
    

  1. 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
    
  2. Type the following command to restart your device in 60 seconds:

    shutdown -r -f -t 60
    
Show:
© 2014 Microsoft