mountvol |
Creates, deletes, or displays a volume mount point.
mountvol [ drive :] path volumename mountvol [ drive :] path /d mountvol [ drive :] path /l
Displays existing mount points (if any) and volumes that can be targeted for new mount points
Specifies a directory (must be empty and on an NTFS volume) where the mount point will reside
Indicates the volume name targeted for the mount point (must be the GUID of the volume)
Deletes the mount point
Lists the mounted volume name for the specified directory
Display volumes on which empty directories can be targeted as mount points:
mountvol Possible values for VolumeName along with current mount points are: \?\Volume{efc6cef2-cd37-11d3-8139-806d6172696f}\ C:\ \?\Volume{886dfe07-d034-11d3-8142-0000b4a04774}\ E:\ \?\Volume{886dfe08-d034-11d3-8142-0000b4a04774}\ F:\ \?\Volume{886dfe09-d034-11d3-8142-0000b4a04774}\ G:\ \?\Volume{b5349550-d58e-11d3-8144-0000b4a04774}\ H:\ \?\Volume{0b77be43-ccff-11d3-b77a-806d6172696f}\ D:\ \?\Volume{0b77be42-ccff-11d3-b77a-806d6172696f}\ A:\
Notice that the Help file for mountvol is also printed (here omitted). Let's now create the empty directory C:\accounting and mount the H : drive to this directory. Working in the current directory, which is C: , do the following:
md accounting mountvol accounting \?\Volume{b5349550-d58e-11d3-8144-0000b4a04774}
To see if it worked:
dir accounting Volume in drive C has no label. Volume Serial Number is D839-4CFA Directory of C:\accounting 06/22/2000 01:40p 46 doc1.txt 06/22/2000 01:44p 30 doc2.txt 06/22/2000 02:12p DIR pub 2 File(s) 76 bytes 1 Dir(s) 497,959,936 bytes free
This is the contents of the H: drive that's mounted to the empty folder C:\accounting .
You can create mount points using Disk Management as well (see Disks in Chapter 4).
Mount points can be used if you are running out of drive letters for local volumes and to expand the space on a volume without reformatting it or replacing the hard drive (just add a mount path to another volume). You can also use one volume with several mount paths to enable access to all your local volumes using a single drive letter.
Don't delete a mount point using Windows Explorer or del /s because this removes the target directory and all its subdirectories. Use instead mountvol /d .
chkdsk , chkntfs , convert , defrag , diskpart , Disks , format , label