Hi,
First, I would like to say that Imdisk is an awesome tool and I use it every day. Thanks!
Second, my problem I have actually two problems. I'm using Windows 7.
I have a script to mount a ramdisk with a 4gb disk image file
imdisk -a -t vm -f file.img -m Z:
The script is running fast but in fact the mounting process (and copying I guess) is not finished and the drive is not accessible on windows. I have to wait around 5 minutes to access it (which is normal because you have to read/copy 4gb in the RAm). In my script I would like to use the drive Z: after the mounting but I can't because Imdisk is releasing before the drive is ready.
So I was wondering if there is a way to know when the drive is ready in command-line or force imdisk to wait until the drive is ready ?
My second problem has been already raised in the forum but I didn't find the right answer. I never manage to unmount a drive without using -D option.
I mount my image using:
imdisk -a -f file.img -m Z:
and if I unmount (with administrator privilege) using:
imdisk -d -m Z:
I always get "Z: access is denied".
I checked with handle.exe and process explorer but couldn't find any locked files.
With:
handle.exe -a | find "Z:"
I get the following answer:
BDC: File <---> Z:\
15F8: File <---> Z:\
I don't know what is it.
and FYI, I have no antivirus and I use truecrypt for other drives (don't know if it could interfere?).
If someone has any tips it would be great Thanks!