Posted 16 July 2012 - 04:26 PM
First of all, to understand my scenario, I use imdisk in a similar way as Google Earth cache but for my browser cache. In other words, as a solid cache file to avoid fragmentation.
Using an image file involves saving or backup the data of the RAM disk so, the requests are these (if possible, of course):
1.- when windows is closed (restarted, shutdown) imdisk doesn't save the current RAM disk information to the image file, then, I request to fix this by telling windows to wait until imdisk has finished the copy of the RAM disk to image file. Also, in case you forgot to unmount or is impossible to unmount because it is in use, it can be done on windows close.
2.- in a normal use, could be interesting to add the functionality to save periodically the RAM disk data to the image file. For example, if you are 5 minutes in idle mode (as now, that I'm writting this topic ;-) ) without I/O to the RAM disk (remember that I'm using it as a browser cache, but could be interesting in other scenarios), could be interesting to save to image file to avoid lost of data.
3.- use a file extension by default (related to the next request). For example, I changed the registry value added by imdisk in classes_root, instead an asterisk (*, every file), to .imd. So the context menu entry doesn't appear with every file and just only with image files. To use other files, or other files extension, we can use already the control panel applet.
4.- add additional headers to the image files telling imdisk to use an specified driver letter every time is mounted and an specified device type. Would help when mounting through context menu. Easier than by commands and faster.
What do you think? aren't bad ideas, are them impossible?
Posted 16 July 2012 - 07:13 PM
I'm reading that your are not interested (by difficulty or let users do whatever) in change the points 1 and 2.
Lets focus in 3 and 4 then
Posted 17 July 2012 - 01:23 AM
1.) Start, Run, gpedit.msc
2.) Select Computer Configuration, Windows Settings, Scripts (Startup/Shutdown)
3.) Double Click Shutdown
4.) Click Add, and browse to the script.
5.) Click OK, and OK again.
6.) Close Group Policy and Restart Computer.
7.) The script should now be run on shutdown.
The above have been copied from here: http://forum.drc.su/...-xp-vt4369.html
In the 4th step just browse for a .bat with the following text inside if you only have one ram disk and is used with an image file as I do:
imdisk -d -u 0
The only thing to change in this bat is adding lines for more ram disks and/or change the number after the -u parameter to match the mounted disk.
With this the ram disk will be saved to the image file without problems. Well, one, a delay on Windows reboot/shutdown.
Edited by draisp, 17 July 2012 - 01:24 AM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users