Draft for Information Only
ContentMS DOS Command: RAMDRIVE.SYS
MS DOS Command: RAMDRIVE.SYSReference from Microsoft MS-DOS cmd help DescriptionUses part of your computer's random-access memory (RAM) to simulate a hard disk drive. 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. A RAM drive appears to be a normal hard disk drive; you can use it just as you would any hard disk drive. The most important difference between a real disk drive and a RAM drive is that because it exists only in memory, information on a RAM drive is lost when you turn off or restart your computer. You can set up as many RAM drives as you want, up to the amount of memory your computer has. To do this, add one RAMDRIVE.SYS line to your CONFIG.SYS file for each additional RAM drive you want. SyntaxDEVICE=[drive:][path]RAMDRIVE.SYS [DiskSize SectorSize [NumEntries]]] [/E | /A]
Parameters
Switches
RemarksUsing conventional memoryAlthough specifying a memory type is optional, it is strongly recommended. If you omit both the /E and /A switches, RAMDRIVE.SYS uses your system's conventional memory. It is not a good idea to use conventional memory for a RAM drive, because this reduces available work space for programs. However, if you don't have extended memory, expanded memory, or a hard disk drive, you might want to use conventional memory for a RAM drive. A RAM drive can increase the speed of a floppy disk system significantly enough that it may be worth the loss of some conventional memory. Using extended memoryIf your system has extended memory installed (starting at the 1-megabyte boundary), you can use this extended memory for one or more RAM drives. For RAMDRIVE.SYS to use extended memory, you must first install HIMEM.SYS or another extended-memory manager that conforms to the Lotus/Intel/Microsoft/AST eXtended Memory Specification (XMS). In your CONFIG.SYS file, the DEVICE command that installs the XMS extended-memory manager must precede the commands that install the RAM drive. Using expanded memoryFor RAMDRIVE.SYS to use expanded memory, you must configure your system so that it provides expanded memory. In your CONFIG.SYS file, the DEVICE command that installs the expanded-memory manager (such as EMM386.EXE) must precede the DEVICE command that installs RAMDRIVE.SYS. The expanded-memory manager must conform to the Lotus/Intel/Microsoft Expanded Memory Specification (LIM EMS). Increasing the efficiency of a RAM driveFor the best results with a RAM drive, you can define a TEMP environment variable and set it to a directory on the RAM drive. If you use Windows, be sure the RAM drive is at least 2 MB in size; otherwise, there might not be enough space to create temporary files for printing. Compressing a RAMDriveTo compress a RAMDrive, use the DRVSPACE /CREATE command. Although it is possible to compress a RAMDrive by using the DRVSPACE /COMPRESS command, it is not recommended. Due to the inherent volatility of a RAMDrive, DriveSpace's automatic recovery mechanisms cannot work on a RAMDrive. If you compress your RAMDrive, make sure the DEVICE command for RAMDRIVE.SYS appears in your CONFIG.SYS file before the DEVICE command for DRVSPACE.SYS. Otherwise, the compressed RAMDrive will not be automatically mounted when your computer starts. ExamplesTo create a RAM drive in extended memory and allocate 64K (the default amount) of extended memory to RAMDRIVE.SYS, add the following line to your CONFIG.SYS file: device=c:\dos\ramdrive.sys /e This command loads RAMDRIVE.SYS from the C:\DOS directory. Suppose you want to install RAMDRIVE.SYS in expanded memory and allocate 4 MB (4096K) of expanded memory to the RAM drive. To do this and to specify that RAMDRIVE.SYS is located in the DOS directory on drive C, add the following line to your CONFIG.SYS file: device=c:\dos\ramdrive.sys 4096 /a Now suppose you want to allocate 2048K of extended memory to RAMDRIVE.SYS and create a RAM drive that has 512-byte sectors and a limit of 1024 entries in its root directory. To do this and to specify that RAMDRIVE.SYS is located in the DEVICES directory on drive D, add the following line to your CONFIG.SYS file: device=d:\devices\ramdrive.sys 2048 512 1024 /e ©sideway ID: 110700243 Last Updated: 7/29/2011 Revision: 0 Latest Updated Links
![]() ![]() ![]() ![]() ![]() |
![]() Home 5 Business Management HBR 3 Information Recreation Hobbies 8 Culture Chinese 1097 English 339 Travel 18 Reference 79 Computer Hardware 254 Software Application 213 Digitization 37 Latex 52 Manim 205 KB 1 Numeric 19 Programming Web 289 Unicode 504 HTML 66 CSS 65 SVG 46 ASP.NET 270 OS 431 DeskTop 7 Python 72 Knowledge Mathematics Formulas 8 Set 1 Logic 1 Algebra 84 Number Theory 206 Trigonometry 31 Geometry 34 Calculus 67 Engineering Tables 8 Mechanical Rigid Bodies Statics 92 Dynamics 37 Fluid 5 Control Acoustics 19 Natural Sciences Matter 1 Electric 27 Biology 1 |
Copyright © 2000-2025 Sideway . All rights reserved Disclaimers last modified on 06 September 2019