DISCLAIMER: You are responsible for your own actions. I AM NOT responsible for any damage that you could possibly cause to your computer or laptop by trying anything outlined below.
Upon doing some research, I found THIS Instructable, detailing how to mount and unmount drives using the Windows command MOUNTVOL
.
Tutorial
First, open Command Prompt as Administrator.
Run the command mountvol
and take note of the volume name above the drive letter that you want to mount/unmount (e.g. \\?\Volume{########-####-####-####-############}\
)
To unmount a drive, type mountvol [DriveLetter] /p
. Be sure to replace [DriveLetter]
with the letter assigned to the drive you wish to unmount. (For example, G:
)
To mount a drive, type mountvol [DriveLetter] [VolumeName]
. Make sure you replace [DriveLetter]
with the letter you wish to mount the drive to (for example, G:
), and [VolumeName]
with the volume name you noted in Step 2.
Batch Script
This is an example of two simple batch scripts you could use to mount and unmount the drive of your choice.
In order to make the batch files work, you will need to run them with administrative privileges, or the batch file will return an Access Denied
error.
Unmounting:
@echo off
REM Be sure to change this to the drive you want to unmount!
set drive=G:
echo Unmounting Drive...
mountvol %drive% /p
echo Drive Unmounted!
pause
exit
Mounting:
@echo off
REM Be sure to change this to the drive letter you want to mount the drive to!
set drive=G
REM Be sure to change this to the Volume Name of the drive you want to mount!
set volume=\\?\Volume{ae101d9f-7653-11e3-be83-8056f23387a6}\
:start
echo Mounting Drive...
mountvol %drive%: %volume%
echo Drive Mounted!
pause
exit
Make sure you alter the batch files at the top before running them, to make sure you are mounting/unmounting the correct drive.
Do NOT use /D
, which only removes the drive letter assignment. Use /p
. From mountvol /?
:
/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.