|
Uses part of the computer's random-access memory (RAM) to simulate a hard disk drive.
Syntax
Device=[Path]RamDrive.sys [Switches] [Parameters]
| [Path] |
The full path. Default is the root directory of the start-up drive (usually C:/) |
| DiskSize |
Specifies the size of the RAM drive in Kb. Valid values for DiskSize are from 4 to 32767 or amount of memory available, whichever is less. (Default is 64). |
| SectorSize |
Specifies the disk sector size in bytes. SectorSize can be 128, 256, or 512 bytes (Default: 512). If a value is specified for SectorSize, DiskSize must also be specified. |
| NumEntries |
Specifies the maximum number of files and directories you can create in the RAM drive's root directory. NumEntries can be from 2 to 1024 entries (Default is 64). If specified, NumEntries is rounded up to the nearest sector size boundary.
If NumEntries is specified, DiskSize and SectorSize must also be specified.
If there is not enough memory to create the RAM drive as specified, RAMDrive will try to create it with a limit of 16 directory entries. This may result in a RAM drive with a different limit from the one you specified. |
| By default, RamDrive.sys will create the RAM Disk in conventional memory. The preferred option is to create the disk(s) in extended memory. |
| /E |
Creates the RAM drive in extended memory. For RAMDrive to use extended memory, the system must be configured so that it provides extended memory via a device driver such as Himem.sys, for example. |
| /A |
Creates the RAM drive in expanded memory. For RAMDrive to use expanded memory, the system must be configured so that it provides expanded memory via an expanded-memory manager such as EMM386. |
Notes
- This device driver must be loaded by a DEVICE or DEVICEHIGH command in your CONFIG.SYS file.
- RAM drives are much faster than hard disk drives because your computer can read information faster from memory than from a hard disk. As far as the computer is concerned, a RAM drive appears to be a normal hard disk drive which can be used as any other hard drive.
- The most important difference between a real disk drive and a RAM drive is that all information on a RAM drive is lost when the computer is turned off/restarted. It is thus most important to save any data written to a RAM disk on more permanent media before shutting down.
- Multiple RAM drives can be set up. Each drive must be specified separately.
- In a Dos environment, RAM drives can be particularly useful when working with programs that do frequent disk read/write operations - often with temporary files.
- In a Win95 environment, RAM drives can be useful if a computer has more RAM than Windows can handle. Again, drive(s) can be be most useful working with programs that do frequent read/write operations
Example
To create a RAM Drive of 32 Mb (the maximum possible with RamDrive.sys), include the following lines in Config.sys:
| Device=c:\Windows\Himem.sys | Enables access to extended memory |
| Device=c:\Windows\Emm386.exe NoEms | Provides access to upper memory blocks (UMBs) |
| Dos=High,UMB | Lets Dos load into high memory and manage the UMBs |
| DeviceHigh=c:\Windows\RamDrive.sys 32767 /E | Creates a 32 Mb RAM Drive in extended memory. |
File Details
| File Name | Version | Size | Date | Default Location |
| Ramdrive.sys |
Win95: Upgrade | ? | 11/07/95 | c:\windows |
| Win95: OSR2.5 | 12 663 | 24/08/96 | c:\windows |
|