China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-26 01:31
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Question about config.sys View 749 Replies 2
Original Poster Posted 2003-06-24 00:00 ·  中国 河南 信阳 联通
初级用户
Credits 189
Posts 35
Joined 2003-06-07 00:00
23-year member
UID 4112
Gender Male
Status Offline
I saw a line in config.sys on a Win98 boot disk:
devicehigh=ramdrive.sys /E 2048
But on some other Win98 boot disks, this line in config.sys is instead:
devicehigh=ramdrive.sys /E 2048 512 112
What does each of them mean? What do the parameters at the end mean? Please advise.
Thanks, thanks!!!!!!!!!!!
Floor 2 Posted 2003-06-24 00:00 ·  中国 香港
管理员
★★★★
專業島民
Credits 4,869
Posts 1,633
Joined 2002-12-10 00:00
23-year member
UID 465
Gender Male
Status Offline
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.
我的網站:http://mw16.2ya.com/ 我的網誌: http://scrappedblog.blogspot.com/
~
我的Winamp正在播放的歌曲:
Floor 3 Posted 2003-06-24 00:00 ·  中国 河南 信阳 联通
初级用户
Credits 189
Posts 35
Joined 2003-06-07 00:00
23-year member
UID 4112
Gender Male
Status Offline
Thank you very much for the answer, thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Forum Jump: