Partager via


Mountvol

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

Mountvol

Creates, deletes, or lists a volume mount point. Mountvol is a way to link volumes without requiring a drive letter.

Syntax

mountvol [Drive**:**]Path VolumeName

mountvol [Drive**:]Path/d**

mountvol [Drive**:]Path/l**

mountvol [Drive**:]Path/p**

mountvol /r

mountvol /n

mountvol /e

mountvol Drive : /s

Parameters
  • [ Drive:]Path
    Specifies the existing NTFS directory folder where the mount point will reside.
  • VolumeName
    Specifies the volume name that is the target of the mount point. The volume name is of the form \\?\Volume{GUID}\, where {GUID} is a globally unique identifier (GUID) (for example, \\?\Volume\{2eca078d-5cbc-43d3-aff8-7e8511f60d0e}\).
  • /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. Volumes dismounted using /p are listed in the volumes list as NOT MOUNTED UNTIL A VOLUME MOUNT POINT IS CREATED. If the volume has more than one mount point, use /d to remove the additional mount points before using /p. You can make the basic volume mountable again by assigning a volume mount point.
  • /r
    Removes volume mount point directories and registry settings for volumes that are no longer in the system. This prevents volumes that were previously in the system 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
    Itanium-based computers only. Mounts the EFI system partition on the specified drive.
  • /?
    Displays help at the command prompt.
Remarks
  • If you are running out of drive letters to use, mount your local volumes with no drive letters.

  • If you need to expand your volume space without reformatting or replacing a hard drive, you can add a mount path to another volume.

  • The benefit is that if you use one volume with several mount paths, you can access all local volumes using a single drive letter (such as C:). You need not remember which volume corresponds to which drive letter, although you can mount local volumes and still have them assigned to drive letters.

Formatting legend

Format Meaning

Italic

Information that the user must supply

Bold

Elements that the user must type exactly as shown

Ellipsis (...)

Parameter that can be repeated several times in a command line

Between brackets ([])

Optional items

Between braces ({}); choices separated by pipe (|). Example: {even|odd}

Set of choices from which the user must choose only one

Courier font

Code or program output

See Also

Concepts

Dir
Net use
Command-line reference A-Z
Command shell overview