Mount Command In Windows Server 2008

This article describes the Mount command in Windows Server 2008 operating system and syntax related with it.
  • 2439


Mount command is command-line tool that is built in Windows Server 2008 and also applies to Windows 7 and Windows Vista. This command line tool is used to mount file systems. Basic purpose of this command is to makes the file system available for use. Mount command mounts the file system identified by Share Name exported by the NFS server identified by Computer Name and associates it with the drive letter (Device Name) or, if an asterisk (*) is used, by the first available driver letter. Now user can access the exported file system.  Basic syntax for using More command is given below.


mount [-o <Option>[...]] [-u:<Username>] [-p:{<Password> | *}] {\\<Computer Name>\<Share Name> | <Computer Name>:/<Share Name>} {<Device Name> *}

In above syntax

Parameter Description
-o rsize=<buffer size> Sets the read buffer size to kilobytes.Values for buffer size: 1, 2, 4, 8, 16, and 32; the default is 32 KB.
-o wsize=<buffer size> Sets the write buffer size to kilobytes. Values for buffer size: 1, 2, 4, 8, 16, and 32; the default is 32 KB.
-o timeout=<seconds> Sets the Remote Procedure Call (RPC) timeout in seconds. Values for time in seconds: 0.8, 0.9, and any integer in the range 1-60; the default is 0.8.
-o retry=<number> Sets the number of times the mount is attempted to n. Values for n: integers in the range 1-10; the default is 1.
-o mtype={soft | hard} Returns an error if it cannot immediately mount the share. If the mount type is hard, Client for NFS will continue to try to access the share until it is successful.
-o anon Mounts as an anonymous user.
-o nolock It disables the locking. By default locking is enabled.
-o casesensitive Forces file lookups on the server to be case sensitive.
-o fileaccess=<mode> Defines on mode of new files created on the NFS share.
  • 0: no access
  • 1: x (execute access)
  • 2: x (write access)
  • 3: wx
  • 4: x (read access)
  • 5: rx
  • 6: rw
  • 7: rwx
-o lang={euc-jp|euc-tw|euc-kr|shift-jis|big5|ksc5601|gb2312-80|ansi} Defines encoding used for file and directory names.
  • ansi
  • big5 (Chinese)
  • euc-jp (Japanese)
  • euc-kr (Korean)
  • euc-tw (Chinese)
  • gb2312-80 (Simplified Chinese)
  • ksc5601 (Korean)
  • shift-jis (Japanese)
-u:<UserName> Specifies the user name to be used when mounting remote drives (if necessary). If this parameter is not used, mount uses the current user name.
-p:<Password> Specifies the password to be used when mounting remote drives. If this parameter is not provided, you are prompted to provide it. If machine is already connected,  no password is needed.

 Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here


More Articles

© 2020 DotNetHeaven. All rights reserved.