Mountvol


Applies To: Windows Vista,Windows Server 2008

Creates, deletes, or lists a volume mount point.

For examples of how to use this command see Examples.

Syntax


Copy Code

mountvol [<Drive>:]<Path VolumeName>
mountvol [<Drive>:]<Path> /d
mountvol [<Drive>:]<Path> /l
mountvol [<Drive>:]<Path> /p
mountvol /r
mountvol [/n | /e]
mountvol <Drive>: /s

Parameters

Parameter

Description

[<Drive>:]<Path>

Specifies the existing NTFS directory where the mount point will reside.

<VolumeName>

Specifies the volume name that is the target of the mount point. The volume name uses the following syntax, where GUID is a globally unique identifier:


Copy Code

\\?\Volume\{GUID}\

The brackets { } are required.

/d

Removes the volume mount point from the specified folder.

/l

Lists the mounted volume name for the specified folder.

/p

Removes the volume mount point from the specified directory, dismounts the basic volume, and takes the basic volume offline, making it unmountable. If other processes are using the volume, mountvol closes any open handles before dismounting the volume.

/r

Removes volume mount point directories and registry settings for volumes that are no longer in the system, preventing them from being automatically mounted and given their former volume mount point(s) when added back to the system.

/n

Disables automatic mounting of new basic volumes. New volumes are not mounted automatically when added to the system.

/e

Re-enables automatic mounting of new basic volumes.

/s

Mounts the EFI system partition on the specified drive. Available on Itanium-based computers only.

/?

Displays help at the command prompt.

Remarks

Examples

To create a mount point, type:


Copy Code

mountvol \sysmount \\?\Volume\{2eca078d-5cbc-43d3-aff8-7e8511f60d0e}\

Additional references

Command-Line Syntax Key