mounts file systems 



mount [-o option] [-v|-q] object path


The mount utility grafts a file system object onto the file tree at the point indicated by path. mount can graft objects in three different ways. Not all operating systems support all three ways.

Remote Drive Mounts or Network Mounts: 

This method maps a drive letter to a network share point.

When you specify + as the value of path, mount assigns the next drive letter available alphabetically.

Mounts created using this method optionally persist over a logon of the current user.

You may specify path in the form of a UNC name (that is, //hostname/sharepoint) or in the form hostname:/sharepoint).

Here are a couple of examples:

mount //tkbuild/share s:/
mount tkbuild:/share +
Substitution Mounts: 

This method substitutes a drive letter for a path name.

When you specify + as the value of path, mount assigns the next drive letter available alphabetically.

Mounts created using this method do not persist over a reboot.

This method is available for Vista/7/2008/8/2012/10.

For example,

mount c:/winnt w:/
File System Mounts: 

This method mounts a Windows volume into a subdirectory of the file system or a drive. For example:

mount d:/  c:/d_drive


mount //?/Volume{2a537b5c-924e-11d7-a242-806e6f6e6963}/ c:/mnt/flash_card


You should be careful with this method because it is possible to create a recursive mount such that programs that walk the file tree loop forever.

For example, the command

mount c:/ c:/dir

makes the following infinite path valid:


Similarly, the commands

mount d:/ c:/d_dir
mount c:/ d:/c_dir

make the following infinite path valid:


Mounts created using this method persist until manually removed.

This method is only available on Vista/7/2008/8/2012/10.

The mount utility determines the type of mount to use based on how the object and path arguments are specified.

object path Mount type used
//?/Volume{...} anything If the object is a valid Windows object, this is treated as a file system mount; otherwise, this is treated as a UNC name.
UNC name anything network mount
machine_name:/pathname anything network mount
pathname drive root substitution mount
other anything file system mount

When you specify no arguments, mount displays all current network shares, volume mounts, and substs. For example:

$ mount

C:/mnt/old_x/ on //?/Volume{2a537b5c-924e-11d7-a242-806e6f6e6963}/      read/write
C:/mnt/old_i/ on //?/Volume{2a537b5d-924e-11d7-a242-806e6f6e6963}/      read/write
C:/mnt/20G/ on //?/Volume{e1587f8c-e325-11d7-920f-806e6f6e6963}/        read/write
C:/mnt/syjet/ on //?/Volume{7d665155-9920-11d7-a24b-00018036a2fe}/      read/write
A:/        on //?/Volume{cc91f042-920f-11d7-9b28-806e6f6e6963}/ read/write
C:/        on //?/Volume{022cd01d-920f-11d7-ad0b-806e6f6e6963}/ read/write
D:/        on //?/Volume{cc91f043-920f-11d7-9b28-806e6f6e6963}/ read/write
E:/        on //?/Volume{cc91f044-920f-11d7-9b28-806e6f6e6963}/ read/write
M:/        on //MYHOST-AFS/auto1        read/write
N:/        on //myofficemachine/c$    read/write
X:/        on //mybuildserver/build3   read/write
Y:/        on //mysambabox/joe read/write
Z:/        on //myfileserver/users/joe     read/write


-o option 

specifies optional information for mount to use. The following values for option can be specified.


specifies the user name to be used when mounting remote drives (if necessary). If a user name is needed and none is specified using this option, mount uses the current user name.


specifies the password to be used when mounting remote drives. If a password is required and you do not specify one with this option, you are prompted to provide it. Normally, no password is required if the machine is already connected.


specifies whether or not the mounts to remote drives are persistent across reboots. If this option is not specified, the default is yes (that is, remote drive mounts are persistent).


does not prompt you for a password, If a password is required and not specified on the command line with the -o p=password option, the mount will fail.


displays information about the actions performed by mount (verbose mode). Normally, mount produces no output unless an error occurs. When used with no other arguments, mount lists all Windows volumes even if they are not mounted anywhere.


Possible exit status values are:


Successful completion.


An error occurred.


Windows Vista. Windows 7. Windows Server 2008. Windows 8. Windows Server 2012. Windows 10.

This version of the mount utility does not support the concept of a mnttab, it uses Windows-specific ways of determining if something is a mount point or not. See the DESCRIPTION section for details on persistence.


PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition



PTC MKS Toolkit 10.0 Documentation Build 6.