When this light is flashing it means your system works with hard disk - reads something from or writes something on it. And mostly the latter. And Windows just love writing on hard disks! It writes logs, temporary Internet files, temporary system files, temporary program files and so on. And a lot of these temporary files are just cluttering and slowing your system after some period of time.
I have nothing against it, this is your computer
This is all about your system security and increasing the speed. Well, of course there are some limitations. But it's worth it
This tutorial was inspired by the posts of Gosh and Bilou Gateux found here 1 and here 2.
I used both methods but prefer Bilou Gateux's one because it uses AR RAM Disk files - freeware, not limited in size, can emulate hard disk (it's important for our purposes) and can be easyly configured through the applet in Control Panel.
I successfully run ramdisk on Windows 2000 Pro but have not tried this method on other versions of Windows. Please post your results if you tried it on Windows XP and Windows 2003.
- = How to get it working = -
What we need for installing Ram Disk unattended with HFSLIP? Please follow these simple steps:
1. Dowload AR RAM Disk from the official site or MajorGeeks site.
2. Run setup.exe for installing the tool on a virtual machine or on your real computer.
3. Use Start>Search>For Files or Folders for getting two files - ramdisk.cpl and ramdisk.sys.
4. Copy this code and past it in a text file, then save this text file as ramdisk.inf. (This INF define ramdisk as disk R:\ with hard disk emulation and the size of 10MB. You can tweak this according to your needs).
ramdisk.inf
[Version]
Signature = "$Windows NT$"
ClassGUID = {00000000-0000-0000-0000-000000000000}
DriverVer=12/14/1999,5.00.2195.1
[DefaultInstall]
AddReg = setup
DelReg = DelReg.RAMDisk
[setup]
HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\System\ramdisk","EventMessageFile",0x00020002,"%SystemRoot%\System32\IoLogMsg.dll;%SystemRoot%\System32\Drivers\ramdisk.sys"
HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\System\ramdisk","TypesSupported",0x00010003,7
HKLM,"SYSTEM\CurrentControlSet\Enum\Root\RAMDISK\0000","Class",0x00000002,"System"
HKLM,"SYSTEM\CurrentControlSet\Enum\Root\RAMDISK\0000","Capabilities",0x00010003,0x00000000
HKLM,"SYSTEM\CurrentControlSet\Enum\Root\RAMDISK\0000","ClassGUID",0x00000002,"{1EFCBBB4-8750-46D8-A754-92D9911DD587}"
HKLM,"SYSTEM\CurrentControlSet\Enum\Root\RAMDISK\0000","ConfigFlags",0x00010003,0x00000000
HKLM,"SYSTEM\CurrentControlSet\Enum\Root\RAMDISK\0000","DeviceDesc",0x00010002,"AR Soft RAM Disk Driver"
HKLM,"SYSTEM\CurrentControlSet\Enum\Root\RAMDISK\0000","Driver",0x00000002,"{1EFCBBB4-8750-46D8-A754-92D9911DD587}\0000"
HKLM,"SYSTEM\CurrentControlSet\Enum\Root\RAMDISK\0000","HardwareID",0x00010002,"RAMDISK"
HKLM,"SYSTEM\CurrentControlSet\Enum\Root\RAMDISK\0000","Mfg",0x00000002,"AR Soft"
HKLM,"SYSTEM\CurrentControlSet\Enum\Root\RAMDISK\0000","Service",0x00000002,"ramdisk"
HKLM,"SYSTEM\CurrentControlSet\Services\ramdisk","DisplayName",0x00000002,"%DISK_SERVICE_DESCRIPTION%"
HKLM,"SYSTEM\CurrentControlSet\Services\ramdisk","ErrorControl",0x00010003,1
HKLM,"SYSTEM\CurrentControlSet\Services\ramdisk","ImagePath",0x00020002,"system32\DRIVERS\ramdisk.sys"
HKLM,"SYSTEM\CurrentControlSet\Services\ramdisk","Start",0x00010003,1
HKLM,"SYSTEM\CurrentControlSet\Services\ramdisk","Type",0x00010003,1
HKLM,"SYSTEM\CurrentControlSet\Services\ramdisk\Parameters",,0x00000012
HKLM,"SYSTEM\CurrentControlSet\Services\ramdisk\Parameters","BootSignature", 0x00010003,41
HKLM,"SYSTEM\CurrentControlSet\Services\ramdisk\Parameters","BytesPerSector", 0x00010003,512
HKLM,"SYSTEM\CurrentControlSet\Services\ramdisk\Parameters","DiskSize", 0x00010003,10485760
HKLM,"SYSTEM\CurrentControlSet\Services\ramdisk\Parameters","DriveLetter",0x00000002,"R:"
HKLM,"SYSTEM\CurrentControlSet\Services\ramdisk\Parameters","EmulateLocalDisk", 0x00010003,1
HKLM,"SYSTEM\CurrentControlSet\Services\ramdisk\Parameters","ManualOverride", 0x00010003,0
HKLM,"SYSTEM\CurrentControlSet\Services\ramdisk\Parameters","RootDirEntries", 0x00010003,512
HKLM,"SYSTEM\CurrentControlSet\Services\ramdisk\Parameters","SectorsPerCluster", 0x00010003,2
HKLM,"SYSTEM\CurrentControlSet\Services\ramdisk\Parameters","SectorsPerTrack", 0x00010003,32
HKLM,"SYSTEM\CurrentControlSet\Services\ramdisk\Parameters","TracksPerCylinder", 0x00010003,2
HKLM,"SYSTEM\CurrentControlSet\Services\ramdisk\Parameters","VolumeID", 0x00010003,2147483647
HKLM,"SYSTEM\CurrentControlSet\Services\ramdisk\Parameters","VolumeName",0x00000002,"RAMDISK"
[DelReg.RAMDisk]
[Strings]
;
; Key Descriptors
;
DISK_SERVICE_DESCRIPTION = "AR Soft RAM Disk Service"
5. Place these three files in appropriate folders of HFSLIP (you may need manually create them first):
- ramdisk.inf goes to HFEXPERT\HIVEINSTALL;
- ramdisk.cpl goes to HFEXPERT\WIN\SYSTEM32;
- ramdisk.sys goes to HFEXPERT\WIN\SYSTEM32\DRIVERS.
HFSLIP will take care of the rest and after running it all the files will be slipstreamed and integrated into Windows 2000 installation source.
- = Samples of using RAM Disk = -
First of all I should say that I don't use Internet Explorer but if you are happy user of this program I recommend you to check links above to get some usefull settings for IE cache files.
1. Moving FireFox Cache folder for temporary Internet files to ramdisk.
Type in the address bar about:config and enter these settings:
[Version] Signature=$CHICAGO$ [DefaultInstall] AddReg = Reg.Tweaks [Reg.Tweaks] ; system temporary files HKCU,"Environment","TEMP",0x20000,"R:\Temp" HKCU,"Environment","TMP",0x20000,"R:\Temp" HKLM,"SYSTEM\CurrentControlSet\Control\Session Manager\Environment","TEMP",0x20000,"R:\Temp" HKLM,"SYSTEM\CurrentControlSet\Control\Session Manager\Environment","TMP",0x20000,"R:\Temp"
Limitation: it should be done only after you install all needed programs because some of the programs may just unpack to temporary location and install only on next boot. With temporary files set on ramdisk such programs just won't be installed.
4. You can also explore if you can move LOG files for your programs and windows components on ramdisk too (if you don't need LOG files of course).
If you have some more home-made recepies for using ramdisk and want to share please do it here for us all!
This post has been edited by Oleg_II: 01 November 2005 - 06:26 PM



Help

Back to top










