User Tools

Site Tools


microsoft:cli:command-line-mountvol

Mountvol - Creates, deletes, or lists a volume mount point

Creates, deletes, or lists a volume mount point.

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

    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.
    /P          Removes the volume mount point from the specified directory,
                dismounts the volume, and makes the volume not mountable.
                You can make the volume mountable again by creating a volume
                mount point.
    /R          Removes volume mount point directories and registry settings
                for volumes that are no longer in the system.
    /N          Disables automatic mounting of new volumes.
    /E          Re-enables automatic mounting of new volumes.
    /S          Mount the EFI System Partition on the given drive.

Possible values for VolumeName along with current mount points are:

    \\?\Volume{e8b9efe5-0000-0000-0000-100000000000}\
        D:\

    \\?\Volume{50e992b4-f4b3-423a-b279-e29987bd82ce}\
        *** NO MOUNT POINTS ***

    \\?\Volume{a5357360-01aa-4bbc-bc6d-51e748ae0544}\
        C:\

    \\?\Volume{6a3748b8-0000-0000-0000-100000000000}\
        *** NO MOUNT POINTS ***

    \\?\Volume{e9df0e8b-e374-493d-b90d-0cba88984dd9}\
        V:\

    The EFI System Partition is mounted at V:\
microsoft/cli/command-line-mountvol.txt · Last modified: 2022/06/07 07:20 by rplecko