I have set up a RAMDisk with IMDisk and it is working great. I do have one headache though. I want to persist my data at shutdown. Let me shortly describe how my setup works right now.
With a scheduled task the following lines is executed in a bat file:
Load Image into RAMDisk
imdisk -a -t vm -f D:RAMDiskRAMDisk.img -m F:
I have a group policy that handles shutdown with the following commands in a bat file:
Mount image directly as drive
imdisk -a -f "D:RAMDiskRAMDisk.img" -o fix -o hd -o rw -m K:
Copies differences from drive E to drive K.
robocopy F: K: /M /COPYALL /MIR
Unmount drive K.
imdisk.exe -D -m K:
When I run the shutdown script inside windows robocopy acts as i'd expect and is very fast as long as I only make small changes, but when I do a proper shutdown and the script is invoked it seems as if the whole image is saved to the disk again. It takes a long time ~1 minute for 22 GB. Can anyone help me with what my problem might be?
Edited by schliemann, 14 September 2012 - 08:58 AM.