Ramdisk GuideIt's lightning fast, it's cool, it's... Volatile !
2003-05-05 12:34 by Philip
Tags: RAM Disk
This guide provides easy to follow, step by step instructions on installing a RAM Disk in Win 2k/XP/2k3. Most of the general information applies to Windows 9x and most other operating systems as well, you'll just need to find/install your own RAM Disk driver.
First of all, make sure you've read this guide in its entirety and have a fairly good understanding of the benefits, pitfalls, as well as the process of installing the driver BEFORE actually implementing it. Please don't blame us if you decide to put your Windows directory in a RAM disk and can't locate it the next time you reboot your computer.
What is a RAM Disk ?
How do I create one ?
We can install/configure the Ramdisk in three simple steps:
At this point you have successfuly installed and configured a RAM Disk drive on your system. Keep in mind that the contents of the RAM disk are lost when changing its size and/or drive letter in Device Manager! They are also lost if power is lost, computer rebooted, etc. You might want to reboot and copy some files to your new RAM disk from within Windows Explorer to ensure it's operating properly.
Notes: In Windows XP, you might have to go to Control Panel -> System to access the device manager. Depending on your OS, you might be prompted to reboot after the drive is installed. Keep in mind that the size of your Ramdisk is substracted from the available RAM, so don't use any wild values. Depending on the intended use, 1 - 16 MB should be the enough, even in systems with plenty of RAM.
What can use it for ?
Below are some recommended uses for your new RAM Disk:
Internet Explorer temorary files
There are plenty of other uses for your new RAM Disk, try some and let us know how you use it. And if all this was not challenging enough for your taste, if you feel really adventurous, read on
Moving TCP/IP to the RAM Disk
1. Create a new text file (using Notepad, or any other text editor). Paste the text between the lines in it:
If you are using a different drive letter than "Z:" for your RAAM Disk, change it accordingly in the file above. Save the text file as tcp.bat, or somethingelse.bat and place it on your desktop or in a directory you can remember. Note the extension needs to be ".bat". You can double-click on the newly-created file and check your RAM Disk, it should contain the two files tcpip.sys and afd.sys copied to it.
2. Open your registry using Regedit, BACKUP (or export those two keys) in a directory you can remember before changing the following two values:
3. Create a shortcut for the tcp.bat file (or whatever you named it) and put it in your Startup menu (drag it to the START -> Programs -> Startup ) so it will be executed when you reboot the system.
4. Reboot and look at the black MS Dos screen that comes up, see whether you are getting an IP address and make sure you are able to go online.
5. If everything seems in order, remove the last two lines of code in the tcp.bat file, ( the "ipconfig" and "@pause"). They're there just for diagnostic purposes.
6. Enjoy, you made it.
If you want to reverse all this, you need to stop loading the script and reverse the two registry entries to their original paths. Simply restore your two Registry keys from the Backup you made and delete the shortcut to tcp.bat from your START -> Programs -> Startup menu. For those few that didn't backup the keys as asked, format your HD and reinstall Windows. Or... The Windows 2k3 Server default values are as follows:
Note: This guide has been revised to support Windows 2003 Server and Windows XP NTFS partitions.