How-to : Access to a nfs share from windows 7 client

nfs for windows

Introduction

Yes it is true: you can use Networked File System under windows! (and even more). This has been possible since windows 2000, using the SFU (Services For Unix) package, downloadable from Microsoft TechNet site.
To gain access to a fast network share file system (nfs) you just need to activate the SFU from the “Program and Functionalities” menu or download them from the microsoft TechNet site.

Update : SFU is now called SUA (Subsystem for UNIX-based applications), it will be first deprecated on windows 8 and then removed for version after windows 8. Also you may need to know that the nfs client from SUA is only supporting NFS V3.

 

1 Generalities

Two syntax may be used, the classic windows net use syntax or the unix-like mount, here is some examples for unix-like syntax.

 

2 Syntax

2.1 Unix-like syntax

2.1.1 mount

  • mount the /media/Downloads nfs shared on server to S:drive
    mount 192.168.33.201:/media/Downloads S:
  • same as above with user1 as username and passwd as password
    mount -u:user1 -p:passwd 192.168.33.201:/media/Downloads S:
  • same again but instead of having the password in clear text (e.g in a logon script), you will be prompt to enter the password
    mount -u:user1 -p:* 192.168.33.201:/media/Downloads S:
  • again… but without explicitely define the drive letter, instead we give the *(joker/wildcard) for the OS to use the first available drive letter
    mount -u:user1 -p:* 192.168.33.201:/media/Downloads *

Note : Some of the unix mount command options are available, see the --help option for a list.

 

2.1.2 Unmount

  • unmount the nfs share mounted on the Tdrive
    umount T:

Note : Possible options are -a to unmount ALL nfs share, and -f to FORCE the drive to be unmounted

Bonus: The showmount command is also available  (-e ; -a ; -d options also comes with)

 

Resources

  • For full SFU mount syntax see here
Tagged on: , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site supports SyntaxHighlighter via WP SyntaxHighlighter. It can highlight your code.
How to highlight your code: Paste your code in the comment form, select it and then click the language link button below. This will wrap your code in a <pre> tag and format it when submitted.