Mounting an NFS shared resource to a drive letter
Applies To: Windows Server 2003 R2
To mount an NFS shared resource to a drive letter using the command line
Open a command prompt (this does not need to be an elevated command prompt).
At a command prompt, type the following:
mount [–o Options] ComputerName:/ShareName {DeviceName | *}
or
mount [–o Options] \\ComputerName\ShareName {DeviceName | *}
Argument Description –o rsize=n
The read buffer size, in kilobytes. Acceptable values are 1, 2, 4, 8, 16, and 32. The default is 32 kilobytes (KB).
–o wsize=n
The write buffer size, in kilobytes. Acceptable values are 1, 2, 4, 8, 16, and 32. The default is 32 KB.
–o timeout=n
The time-out for a remote procedure call (RPC), in seconds. Acceptable values are 0.8, 0.9, and any integer in the range 1-60. The default is 0.8.
–o retry=n
The number of retries for a soft mount. Acceptable values are integers in the range 1-10. The default is 1.
–o mtype={soft | hard}
Soft or hard mount. Regardless of the mount type, the mount will return if it cannot immediately mount the shared resource. However, once the shared resource has been successfully mounted, if the mount type is a hard mount and the Network File System (NFS) server becomes unavailable, Client for NFS will retry accessing the shared resource until the NFS server is once again available. As a result, Windows applications that are trying to access the shared resource will appear to stop responding.
–o anon
Mounts as anonymous user.
–o nolock
Disables locking. This option might improve performance if you only need to read files.
-o lang={euc-jp | euc-tw | euc-kr | shift-jis | big5 | ksc5601 | gb2312-80 | ansi}
Specifies the default encoding used for file and directory names and, if used, must be set to one of the following:
- ansi
- big5 (Chinese)
- euc-jp (Japanese)
- euc-kr (Korean)
- euc-tw (Chinese)
- gb2312-80 (Simplified Chinese)
- ksc5601 (Korean)
- shift-jis (Japanese)
If this option is set to ANSI on systems configured for non-English locales, the encoding scheme is set to the default encoding scheme for the locale. The following are the default encoding schemes for the indicated locales:
Japanese: SHIFT-JIS
Korean: KS_C_5601-1987
Simplified Chinese: GB2312-80
Traditional Chinese: BIG5
-o fileaccess=mode
Specifies the default permission mode of new files that are created on the NFS shared resource. Specify the mode as a three-digit number in the form ogw, where o, g, and w are each a digit that represents the access granted to the file owner, group, and the world. The digits must be in the range 0–7 with the following meaning:
- 0: No access
- 1: x (execute access)
- 2: w (write access)
- 3: wx (write and execute access)
- 4: r (read access)
- 5: rx (read and execute access)
- 6: rw (read and write access)
- 7: rwx (read, write, and execute access)
-o casesensitive
Forces case-sensitive file lookup (similar to that of UNIX-based NFS clients).
ComputerName
The name of the server with the shared resource to mount.
ShareName
The name of the shared directory to mount.
DeviceName | *
The drive letter to assign to the mounted shared resource. The asterisk (*) means to use the next available letter.
- ansi
Note
To view the complete syntax for this command, at a command prompt, type: mount /?
When Mounting an NFS shared resource to a drive letter, we recommend the first format shown (ComputerName:/ShareName).
You can also use the net use command to mount an NFS shared resource to a drive letter. For more information about using the net use command, see Windows Help or, at a command prompt, type: net use /?