Help with setting up a RAM Disk using ImDisk

xxstrikeholo

Reputable
Apr 19, 2014
2
0
4,510
Hello, I have attempted to set-up a ram disk using ImDisk, and everything goes fine until I shutdown, where my files are erased from the RAM and I need to restart the process of creating a new ram disk. I use Imdisk because it allows me to make a disk larger than 4GB for free, I followed this tutorial http:// and setup the disk, my question is, using this program can I set it so that the files I save on my ram disk do not delete at a reboot? Is there an easier way to do this for free, using more than 4GB of RAM?

Side information: I have 16GB of ram and I dedicate 9-10GB to the disk, I put a steam game on the disk using a junction and it works fine it just deletes everything including the drive after a shutdown or reboot. I have followed everything in the tutorial except setting up a paging file, any help here would be widely appreciated!
 
Solution
Setting up RAM disk(s) automatically when Windows starts

The surefire way to do this without using Group Policy Editor (gpedit.msc, which only exists in Professional version and up) is to define a task in Task Scheduler (taskschd.msc).
As usual, Start Menu's search box should make it easy to find and start Task Scheduler.

But before creating a schedule, it's advisable to create a command script first a.k.a. .cmd file, especially if we're going to start multiple RAM disks.

For example, we want to create 3 RAM disks with drive letters X:, Y:, and Z:.
X: is 1GB in NTFS, Y: is 256MB in FAT16, and Z: is 768MB in FAT32.
Therefore, we need to create a simple text file (Notepad will do fine) and put this :

Code:
imdisk -a -s 1G -m X: -p...
Setting up RAM disk(s) automatically when Windows starts

The surefire way to do this without using Group Policy Editor (gpedit.msc, which only exists in Professional version and up) is to define a task in Task Scheduler (taskschd.msc).
As usual, Start Menu's search box should make it easy to find and start Task Scheduler.

But before creating a schedule, it's advisable to create a command script first a.k.a. .cmd file, especially if we're going to start multiple RAM disks.

For example, we want to create 3 RAM disks with drive letters X:, Y:, and Z:.
X: is 1GB in NTFS, Y: is 256MB in FAT16, and Z: is 768MB in FAT32.
Therefore, we need to create a simple text file (Notepad will do fine) and put this :

Code:
imdisk -a -s 1G -m X: -p "/fs:ntfs /q /y"
imdisk -a -s 256M -m Y: -p "/fs:fat /q /y"
imdisk -a -s 768M -m Z: -p "/fs:fat32 /q /y"
...then save it as imdisk-start.cmd, or any other name as long as it ends with .cmd.
Personally, I'd save the file inside a directory I created under C: or system drive.
i.e C:\ImDisk\ directory.

When that is done, let's go back to Task Scheduler.
Using the left-most pane, browse to Task Scheduler Library -> Microsoft -> Windows.



Like so.

Then right-click on the upper middle pane (which is usually empty) and Create New Task....
I'll explain what to do in each tab.
 
Solution

xxstrikeholo

Reputable
Apr 19, 2014
2
0
4,510


I have Windows 7 x64 Professional, and I only want one RAM Disk, should I still follow this?