What do I create a Mount point from the command line?

John Savill

January 8, 2000

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. In line with Microsoft's goal of everything being possible from thecommand line, Windows 2000 has a utility MOUNTVOL.EXE which can be used tocreate mount points from the command prompt.

Typing MOUNTVOL on its own will list all available volumes that can bemounted:

C:>mountvol
Creates, deletes, or lists a volume mount point.

MOUNTVOL [drive:]path VolumeName
MOUNTVOL [drive:]path /D
MOUNTVOL [drive:]path /L

    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.
    /D          Removes the volume mount point from the specified directory.
    /L          Lists the mounted volume name for the specified directory.

Possible values for VolumeName along with current mount points are:

    \?Volume{123504dc-643c-11d3-843d-806d6172696f}
        C:

    \?Volume{123504dd-643c-11d3-843d-806d6172696f}
        *** NO MOUNT POINTS ***

    \?Volume{123504db-643c-11d3-843d-806d6172696f}
        D:

    \?Volume{123504da-643c-11d3-843d-806d6172696f}
        A:

To create a mount point manually create a new directory, then create themount point using the volume ID listed from the MOUNTVOL command, e.g.:

  1. Create a CD directory

    C:> md CD
  2. Create a mount point to the CD-ROM drive

    C:> mountvol CD \?Volume{123504db-643c-11d3-843d-806d6172696f}

That's it!

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like