RAMDRIVE.SYS
============
Uses part of the computer's random access memory (RAM) to emulate a hard drive. This device driver must be loaded with the DEVICE or DEVICEHIGH command in the Config.sys file.
A RAM drive is much faster than a hard drive, because the computer reads information from memory much faster than from a hard drive. A RAM drive is no different from an ordinary hard drive; you can use it the same way you use a hard drive. The most obvious difference between a real drive and a RAM drive is that the latter exists only in memory, so as soon as the computer is shut down or restarted, the information on the RAM drive is lost.
You can set the number of RAM drives according to what the computer's memory can allow. Add one Ramdrive.syd command line in the Config.sys file for each additional RAM drive.
Syntax
DEVICE=RAMDRIVE.SYS
]]
Parameters
Specifies the location of the RAMDRIVE.SYS file.
DiskSize
Specifies the amount of memory to provide for the RAM drive. For example, to create a 640K RAM drive, specify 640. If no amount is specified, RAMDrive creates a 64K RAM drive. You can specify any value between 4 and 32767. However, the amount of memory specified must not exceed the amount of memory the system has.
SectorSize
Specifies the size of disk sectors in bytes. It can be 128, 256, or 512 bytes. (If the SectorSize value is used, the DiskSize value must also be included.)
In general, you should use the default sector size of 512 bytes.
NumEntries
Limits the number of files and directories that can be created in the root directory of the RAM drive. The number can be between 2 and 1024, and the limit you specify will be adjusted toward the nearest sector size. If no limit is specified, up to 64 items can be created in the root directory of the RAM drive. (If the NumEntries value is used, the DiskSize and SectorSize values must also be included.)
If there is not enough memory to create the RAM drive as specified, RAMDrive will try to create it with a limit of 16 directories. This may cause the RAM drive's limit to be different from the limit you specified.
Switches
/E
Creates the RAM drive in extended memory.
To let RAMDrive use extended memory, your system must be configured to provide extended memory, and in the Config.sys file, the DEVICE command for an extended memory manager (such as Himem.sys) must appear before the DEVICE command for Ramdrive.sys. If the system has extended memory, it is best to create the RAM drive in extended memory.
/A
Creates the RAM drive in expanded memory.
To let RAMDrive use expanded memory, your system must be configured to provide expanded memory, and in the Config.sys file, the DEVICE command for an expanded memory manager (such as EMM386、386MAX、CEMM or QEMM) must appear before the DEVICE command for Ramdrive.sys.