Removing a mount point for a volume

About this task

Mount point can be unmounted using either of the following methods:

  • Unmounting the drive using Windows PowerShell:

    1. Open Windows PowerShell command.

    2. Run the following cmdlet:

      Remove-PartitionAccessPath -DriveLetter [x] -AccessPath [y]

      x—is the drive letter of the mounted volume.

      y—is the path of the access path folder.

      Example:

      Remove-PartitionAccessPath -DriveLetter F -AccessPath E:\MountPointF

  • Unmounting the drive using DiskPart command:

    1. Open Command Prompt and run as Administrator.

    2. Run the following command:

      diskpart

    3. View the list of all available volumes, using the following command:

      list volume

    4. To select the drive on which you want to unmount the volume, use the following command:

      select volume DRIVE-LETTER

    5. Unmount the drive, using the following command:

      remove mount ACCESS-PATH

      Example:

      remove mount E:\MountPointF

  • Unmounting the drive using Mountvol command:

    1. Open Command Prompt and run as Administrator.

    2. To list a brief help text, list of volumes, mount points, and GUIDs on your system, use the following command:

      C:\> mountvol

    3. Unmount a mount point having access path, using the following command:

      mountvol ACCESS-PATH /d

      /d—removes the volume mount point from the specified directory.

      Example:

      C:\> mountvol E:\MountPointF /d