Code: Select all
@echo off
REM Be sure to change this to the drive letter you want to mount the drive to!
set drive=R
REM Be sure to change this to the Volume Name of the drive you want to mount!
set volume=\\?\Volume{b8af929f-559f-4a08-81d9-0f52e5cb0886}\
:start
echo Mounting Drive...
mountvol %drive%: %volume%
echo Drive R(APPS) Mounted!
pause
exit
Code: Select all
C:\Program Files\Oracle\VirtualBox>VBoxManage internalcommands createrawvmdk -filename L:\APPS-FAT32.vmdk -rawdisk \\.\PhysicalDrive5 -partitions 1
VBoxManage.exe: error: Cannot open the raw disk '\\.\PhysicalDrive5': VERR_SHARING_VIOLATION
VBoxManage.exe: error: The raw disk vmdk file was not created
Thank you for help.
Miro