Uses part of the computer's RAM to simulate a hard disk drive.
Syntax:
device=[path]ramdrive.sys [DiskSize [SectorSize [NumEntries]]] [/E | /A]
- 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). Each directory entry requires 32 bytes of disk space (64 directory entries x 32 bytes = 2048 bytes = 4 sectors @ 512 bytes). If NumEntries is specified, the number is rounded up to fill the sector. i.e. If NumEntries is specified to be 100, with SectorSize at 512, the actual number of directory entries available will be automatically rounded up to 112.
If NumEntries is specified, DiskSize and SectorSize must also be specified.
If there is not enough memory available to create the RAM drive as specified, RAMDrive will try to create it with a limit of 16 directory entries (1 sector). If there is still insufficient memory, the RAMDisk will not be installed.
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.exe.
Notes:
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.