Saturday, February 9, 2008

Ramdisk how-to

ramdisk file by gavotte version 1.0.4096.4.

This is a free ramdisk and has no limitation on the size of the ramdisk. Also works on XP and Vista. One of the best thing is that if you are using 32-bit XP or Vista and have more than 4GB of RAM installed, this ramdisk can use the RAMs not seen by XP or Vista. For example, if you have 8GB installed and XP only sees 3GB, you can create a 5GB ramdisk to full utilize the memory.

Instruction:
1. Download from the above link, unzip to some directory.
2. if you have more than 4GB ram installed, double click on ram4g.reg to import the registry. Also make sure memory remapping is enabled in BIOS
3. run ramdisk.exe and install ramdisk, default fixed media is good
4. set the size of the ramdisk you want
5. reboot and you should have a ramdisk with as R: drive

Since this ramdisk uses the memory, all the stuff on the ramdrive will be wiped out when you reboot. To keep things on the drive, you can create two batch files (e.g., loadimage.bat and saveimage.bat) that copies the content to/from the ramdrive to the hard drive upon login/logout. To do so:
1. go to start->Run, type in gpedit.msc
2. go to User Configuration->Windows Settings->Scripts (Logon/Logoff) and select the appropriate scripts for logon/logoff.

Below is my way of load/save ram contents to f:\rimage (one of my hd)
in loadimage.bat
>> xcopy r:\temp f:\rimage /s /h /R /Q /y /d /i

in saveimage.bat
>> xcopy f:\rimage r:\temp /s /h /R /Q /y /d /i

ideally we should be able to use
>> ramdisk /S or /L imagename
in the batch file. However, for some reason it always gives me some LockVolume error so I just gave up.

1 comment:

Unknown said...

Great software!

i was wondering how i could use my extra ram.

this saved my ram from being trashed XD