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-08-15 13:14
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » How does the MaxDOS 5.5s version achieve support for memory larger than 2GB? View 4,907 Replies 18
Original Poster Posted 2010-08-25 09:44 ·  中国 上海 闵行区 电信
初级用户
Credits 26
Posts 11
Joined 2009-12-11 17:18
16-year member
UID 156381
Gender Male
Status Offline
Boss, hello, I've been using the MAXDOS 5.5S version all the time, and I've been using it for several years. But this version can only support up to 2GB of memory at most. I don't like the latest version of V8 yet. May I ask Boss, which file should I modify to make this version support more than 2GB of memory? Thank you Boss for your reply!
ERROR 29: Selected item cannot fit into memory
Press any key to continue........

The prompt is this. I can use it by pulling out one memory stick or having less than 2GB!
Floor 2 Posted 2010-08-25 16:44 ·  中国 上海 闵行区 电信
初级用户
Credits 26
Posts 11
Joined 2009-12-11 17:18
16-year member
UID 156381
Gender Male
Status Offline
Is there any friend here? I can send you DOS to have a look.
Floor 3 Posted 2010-08-25 22:05 ·  中国 河南 洛阳 联通
银牌会员
★★★
Credits 1,455
Posts 712
Joined 2006-01-20 10:26
20-year member
UID 49246
Status Offline
Hehe, please post the autoexec.bat file for us to take a look.
Floor 4 Posted 2010-08-26 09:38 ·  中国 上海 闵行区 电信
初级用户
Credits 26
Posts 11
Joined 2009-12-11 17:18
16-year member
UID 156381
Gender Male
Status Offline
Okay, now send it!
Floor 5 Posted 2010-08-26 09:40 ·  中国 上海 闵行区 电信
初级用户
Credits 26
Posts 11
Joined 2009-12-11 17:18
16-year member
UID 156381
Gender Male
Status Offline
@echo off
if "%config%" == "NDIS" goto _NDIS
if "%config%" == "nFx" goto _nFx
if "%config%" == "GH" goto _GH
if "%config%" == "USB" goto _USB
if "%config%" == "help" goto _help
set EXPAND=YES
LH CTMOUSE >NUL
xmsdsk 4096 /y >NUL
findramd >NUL
md %ramdrive%\Tmp >nul
set temp=%ramdrive%\Tmp
set tmp=%ramdrive%\Tmp
path=%RAMDRIVE%\;a:\;%RAMDRIVE%\lan;
lh doskey > NUL
lh escape.exe > NUL
lh KILLER.exe > NUL
lh a:\shsucd.exe /D:mscd001 >NUL
pkzip -O A:\MAX.zip %RAMDRIVE%\ >NUL
pkzip -O A:\PKTBAT.zip %RAMDRIVE%\ >NUL
cls
findcd
findcdx /S
echo RAMDRIVE=%ramdrive%
goto _end

:_NDIS
prompt $p$g >nul
findramd.exe >nul
path=a:\;a:\drv;%ramdrive%;%ramdrive%\drv >nul
lh doskey.com >nul
md %ramdrive%\drv >nul
md %ramdrive%\Tmp >nul
set temp=%ramdrive%\TMP >nul
pkzip -O A:\MAX.zip %RAMDRIVE%\ >NUL
copy \drv\*.* %ramdrive%\drv >nul
copy a:\PROTMAN.EXE %ramdrive%\Drv\PROTMAN.EXE >nul
copy a:\NETBIND.COM %ramdrive%\Drv\NETBIND.COM >nul
%ramdrive% >nul
cls
call \drv\maxs.bat >nul
cd drv >nul
netbind >nul
cd\
echo.
findcd
echo.
a: >nul
goto _end

:_nFx
prompt $p$g >nul
findramd.exe >nul
path=a:\;a:\drv;%ramdrive%;%ramdrive%\drv >nul
lh doskey.com >nul
md %ramdrive%\drv >nul
md %ramdrive%\Tmp >nul
set temp=%ramdrive%\TMP >nul
pkzip -O A:\MAX.zip %RAMDRIVE%\ >NUL
netbind >nul
echo.
findcd
echo.
goto _end

:_GH
GHOST -clone,mode=pload,src=1:3\bak\sys.gho:1,dst=1:1 -sure -rb
goto _end

:_usb
set EXPAND=YES
set temp=c:\
set tmp=c:\
xmsdsk 4096 /y >NUL
findramd >NUL
path=%RAMDRIVE%\;a:\;%RAMDRIVE%\lan;
lh doskey > NUL
lh escape.exe > NUL
lh KILLER.exe > NUL
pkzip -O A:\MAX.zip %RAMDRIVE%\ >NUL
cls
echo.
findcd
echo.
goto _end

:_help
xmsdsk 4096 /y >NUL
findramd >NUL
path=%RAMDRIVE%\;a:\;%RAMDRIVE%\lan;
pkzip -O A:\MAX.zip %RAMDRIVE%\ >NUL
call help.bat
goto _end

:_end
Floor 6 Posted 2010-08-26 10:26 ·  中国 上海 中国科学院上海分院
金牌会员
★★★★
Credits 3,467
Posts 1,616
Joined 2004-06-21 00:00
22-year member
UID 27148
Status Offline
According to reason, himem.sys of DOS 7.1 supports 3.25G memory. I have tried it on a machine with more than 4G and it's all right, except that like XP, it can only recognize 3.25G.
Floor 7 Posted 2010-08-26 10:41 ·  中国 上海 闵行区 电信
初级用户
Credits 26
Posts 11
Joined 2009-12-11 17:18
16-year member
UID 156381
Gender Male
Status Offline
Hello, boss. The key is that it hasn't reached that step yet. It just reports the above errors when loading to the IMG image file, and hasn't entered DOS at all. Is there a relationship between grldr and this file?
Floor 8 Posted 2010-08-26 10:50 ·  中国 上海 闵行区 电信
初级用户
Credits 26
Posts 11
Joined 2009-12-11 17:18
16-year member
UID 156381
Gender Male
Status Offline
timeout 15
default 0
fallback 1
fontfile (hd0,0)/boot/maxs/fonts.gz
splashimage (hd0,0)/boot/maxs/maxlinux.gz
password --md5 $1$5$tVHk8H1dcQF4dx4IMQZy10
title Run All-Chinese DOS Boot Disk!
root (hd0,0)
kernel (hd0,0)/boot/maxs/memdisk.gz c=60 h=4 s=36 floppy
initrd (hd0,0)/boot/maxs/pzzcn.gz c=60 h=4 s=36 floppy
#####
password --md5 $1$9$dL1c9RnwewzBSUaUdKxY8/
#####
title Call Boot System from CD!
scdrom --bootcd
title Return Windows Boot Menu!
rootnoverify (hd0,0)
makeactive
chainloader +1

kernel (hd0,0)/boot/maxs/memdisk.gz c=60 h=4 s=36 floppy
initrd (hd0,0)/boot/maxs/pzzcn.gz c=60 h=4 s=36 floppy
Just got stuck at this one! The above error is reported!
Floor 9 Posted 2010-09-04 18:31 ·  中国 上海 长宁区 电信
初级用户
Credits 26
Posts 11
Joined 2009-12-11 17:18
16-year member
UID 156381
Gender Male
Status Offline
Hope there are experts to help me solve it. I uploaded the DOS package, and everyone can study it.
Floor 10 Posted 2010-09-04 20:56 ·  中国 河南 洛阳 联通
银牌会员
★★★
Credits 1,455
Posts 712
Joined 2006-01-20 10:26
20-year member
UID 49246
Status Offline
Hehe, after looking at the autoexec.bat provided by 5#, no problems were found. From the information provided by 8#, it is very likely a problem with the bootloader. It is advisable to try booting with the new version of grub4dos.

The method is as follows:
Find the c:\boot\maxs\pzzcn.gz file on the hard disk where maxdos_5.5s is installed, and rename pzzcn.gz to pzzcn.img. This file is the real body of maxdos. Try booting with the new version of grub4dos. I tested the startup with pzzcn.img on the computer at hand and it was okay, but unfortunately this computer only has 2G of memory, and the office computer has 4G.

It has been tested on the 4G computer in the office, confirming that using the new version of g4d to directly boot pzzcn.img can start normally. At the same time, a test of only replacing memdisk for booting was carried out (grub was not replaced, still using the original version), and the result was a boot failure with the prompt message: Selected item cannot fit into memory

[ Last edited by bc12060101 on 2010-9-5 at 13:52 ]
Floor 11 Posted 2010-09-04 21:49 ·  中国 上海 黄浦区 电信
金牌会员
★★★★
Credits 3,467
Posts 1,616
Joined 2004-06-21 00:00
22-year member
UID 27148
Status Offline
It seems that it might be an issue with the version of memdisk. Try using the latest version of memdisk.
Floor 12 Posted 2010-09-06 09:52 ·  中国 上海 长宁区 电信
初级用户
Credits 26
Posts 11
Joined 2009-12-11 17:18
16-year member
UID 156381
Gender Male
Status Offline
It should not be the problem of the memdisk version. I have changed several ones but it still doesn't work!
Floor 13 Posted 2010-09-10 01:37 ·  中国 河北 石家庄 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
I know the reason, this is an issue with xmsdsk, that is, the error occurred when executing the following line:

xmsdsk 4096 /y >NUL


The reason is that xmsdsk is a very old program, it only supports up to 2GB of memory at most, and an error will occur if it exceeds 2GB. For the time being, there is no possibility to modify xmsdsk. My solution is to replace xmsdsk with Microsoft's ramdisk.sys. Although ramdisk.sys is not as easy to use as xmsdsk, it has no memory limit problem.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 14 Posted 2010-09-10 09:27 ·  中国 上海 中国科学院上海分院
金牌会员
★★★★
Credits 3,467
Posts 1,616
Joined 2004-06-21 00:00
22-year member
UID 27148
Status Offline
Originally posted by Climbing at 2010-9-10 01:37 AM:
I know the reason. This is an issue with xmsdsk, that is, the error occurs when executing the following line:


The reason is that xmsdsk is a very old program. It only supports a maximum of 2GB of memory. An error will occur if it exceeds 2GB, ...

Support this explanation. xmsdsk indeed cannot exceed 2GB of memory
Floor 15 Posted 2010-09-11 12:23 ·  中国 河南 洛阳 联通
银牌会员
★★★
Credits 1,455
Posts 712
Joined 2006-01-20 10:26
20-year member
UID 49246
Status Offline
Heheh, I already said in post #10 that "tested on a 4G computer in the office, and confirmed that using the new version of g4d to directly boot pzzcn.img can start normally." How can brothers Climbing and fujianabc still come to the conclusion that "xmsdsk is a too old program, it only supports up to 2G of memory at most"?

When using the xmsdsk program, as long as the parameter /T (which locates the memory disk at the top of XMS memory) is not used, there will be no problem when using it in 4G of memory.

I discovered this problem because the old version of MicroPE by brother chenall could not load the extended driver support module EXT_DRV.IMG normally on my new office computer (4G memory). Later, removing the /t in its xmsdsk %ramdrv% 10240 /t /y allowed it to run normally.

[ Last edited by bc12060101 on 2010-9-11 at 12:31 ]
Recent Ratings for This Post ( 2 in total) Click for details
RaterScoreTime
DOSforever +2 2010-09-12 14:10
Climbing +25 2010-09-19 13:14
Forum Jump: