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-07-22 22:06
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » There are three problems in modifying the DOS boot disk. Paste the relevant files and ask experts for help. View 1,966 Replies 2
Original Poster Posted 2010-03-10 09:14 ·  中国 广东 珠海 联通
初级用户
Credits 29
Posts 46
Joined 2009-06-09 19:47
17-year member
UID 147044
Gender Female
Status Offline

I downloaded two DOS boot disks from http://ms-dos7.hit.bg/, one is the standard boot disk, and the other is the Super MS-DOS Boot Disk by the forum administrator Wengier.
I want to use them for PE systems, to boot GHOST, DISKPART, and GDISK, while also wanting to retain and savor the powerful extended functions of DOS.
Functionally, the Super MS-DOS Boot Disk suits my心意, but now it's not the DOS era, and I don't need so many boot dialog boxes. I just want a powerful DOS environment, with as direct a boot as possible.
I can remove the LOGO and reduce the dialog boxes, but I can't get rid of GRUB, and even setting timeout to 0 still seems redundant.
I want to add and replace most of the functional components in the standard DOS boot disk to transform it into something similar to the Super MS-DOS Disk. But some of the boot commands have been modified incorrectly, when running in a virtual machine, the following three problems occurred, as shown in the screenshots:







AUTOEXEC.BAT


@ECHO OFF
LH KILLER
LH ZENO /Q
LH DOSKEY
TM /F
PAUSE
LH CTMOUSE
ECHO.
ECHO Now trying to load the hard disk cache to speed the drives up ...
:NOHD
LH SHSUCDX /D:?IDE-CD /D:?USB-CD
XMSDSK 4096 /Y
ECHO Now setting up the RAM disk...
IF %RAMDRIVE%#==# GOTO NORAM
IF NOT EXIST %RAMDRIVE%\TEMP\NUL MD %RAMDRIVE%\TEMP
SET TMP=%RAMDRIVE%\TEMP
SET TEMP=%RAMDRIVE%\TEMP
IF NOT EXIST %RAMDRIVE%\SYSTEM\NUL MD %RAMDRIVE%\SYSTEM
COPY COMMAND.COM %RAMDRIVE%\SYSTEM>NUL
IF NOT EXIST %RAMDRIVE%\SYSTEM\COMMAND.COM ECHO Warning: Failed to copy COMMAND.COM!
IF NOT EXIST %RAMDRIVE%\SYSTEM\COMMAND.COM GOTO COPYERR
SET COMSPEC=%RAMDRIVE%\SYSTEM\COMMAND.COM
ECHO The necessary tools have been successfully loaded to drive %RAMDRIVE%.
:COPYERR
PATH=%RAMDRIVE%.;%RAMDRIVE%\SYSTEM
IF %SM%#==Y# LH SMARTDRV 4096 2048 /X
GOTO NEXT
:NORAM
ECHO Warning: Can't create RAM disk!
IF %SM%#==Y# ECHO Can't load SMARTDRV!
SET COMSPEC=A:\COMMAND.COM
:MENU
SET DIRCMD=/OGN /4
SET PROMPT=$P$G
PATH=%PATH%;C:.;A:.;..
LH ESCAPE
LH MOUSCLIP /M
LH DOSLFN /C- /Z:CP936UNI.TBL
IF "%CONFIG%"=="M1" GOTO GHOST
IF "%CONFIG%"=="M2" GOTO GDISK
IF "%CONFIG%"=="M3" GOTO DOS1
IF "%CONFIG%"=="M4" GOTO DOS2
FINDCD /Q
ECHO.
IF NOT %CDROM%#==# ECHO For accessing CD/DVD drive, use the drive letter %CDROM%(1st).
IF NOT %RAMDRIVE%#==# ECHO For accessing RAM drive, use the drive letter %RAMDRIVE%.
IF NOT %CONFIG%#==M3# IF NOT %CONFIG%#==M4# ECHO For accessing NTFS drives(if any), type NTFSDOS on the command line.
ECHO At any time, you can press F12 key to return to DOS, or use the mouse.
BREAK ON
LFNFOR ON
PAUSE
IF %RAMDRIVE%#==# GOTO QUIT
:LH
SET DIF=
LH VC
:GHOST
GHOST.EXE
PAUSE
GOTO QUIT
:GDISK
GDISK.EXE
GOTO QUIT
:DOS1
GOTO QUIT
:DOS2
GOTO QUIT
:QUIT
ECHO.
REM CLEAN UP ENVIRONMENT VARIABLES
SET CDROM=
SET LGLDRV=



CONFIG.SYS



MENUITEM=M1,GHOST
MENUITEM=M2,GDISK
MENUITEM=M3,DOS
MENUITEM=M4,DOS
MENUDEFAULT=M1,20


DEVICE=HIMEM.SYS
DEVICE=UMBPCI.SYS
DEVICE=LOWDMA.SYS
INCLUDE CD


INCLUDE M1


INCLUDE M1
INCLUDE USB


DEVICE=HIMEM.SYS
DEVICE=EMM386.EXE NOEMS
INCLUDE CD
INCLUDE USB


DEVICE=USBASPI.SYS /R /V /NORST
DEVICEHIGH=DI1000DD.SYS
DEVICEHIGH=USBCD.SYS /D:USB-CD
DEVICE=ECHO.SYS


DEVICEHIGH=UDMA.SYS
DEVICEHIGH=VIDE-CDD.SYS /D:IDE-CD


SHELL=COMMAND.COM /P /E:640
SET TMP=C:\
SET TEMP=C:\
DOS=HIGH,UMB,AUTO
NUMLOCK=ON
FCBSHIGH=4,0
FILESHIGH=30
BUFFERSHIGH=30,0
LASTDRIVEHIGH=32
STACKSHIGH=9,256



All files in the DOS.IMG I modified:


ANSI.COM
ASC.COM
AUTOEXEC.BAT
CDPLAY.COM
COMMAND.COM
CONFIG.SYS
CP936UNI.TBL
CSOUND.COM
CTMOUSE.EXE
CWSDPMI.EXE
DELTREE.COM
DEVICE.COM
DI1000DD.SYS
DOSKEY.COM
DOSLFN.COM
DRVTYPES.EXE
EMM386.EXE
ESCAPE.EXE
EXTRACT.EXE
FDISK.EXE
FIND.COM
FORMAT.COM
HIMEM.SYS
IFSHLP.SYS
IO.SYS
KILLER.EXE
LOCATE.COM
LOWDMA.SYS
MCD.EXE
MEM.EXE
MODE.COM
MOUSCLIP.EXE
MSDOS.SYS
PC-EXT2X.OVL
PC-WNERR.OVL
PCCACHE.COM
PERUSE.COM
QV1.EXE
RAMFD.EXE
SHSUCDX.EXE
SHUTDOWN.COM
SYS.COM
TM.EXE
UDMA.SYS
UMBPCI.SYS
UNDISK.EXE
USBASPI.SYS
USBCD.SYS
VIDE-CDD.SYS
XFIND.COM
XMSDSK.EXE
XZL.COM
ZENO.EXE
1ist.cmd
1ist.txt
ANSI.COM
ASC.COM
AUTOEXEC.BAT
CDPLAY.COM
COMMAND.COM
CONFIG.SYS
CP936UNI.TBL
CSOUND.COM
CTMOUSE.EXE
CWSDPMI.EXE
DELTREE.COM
DEVICE.COM
DI1000DD.SYS
DOSKEY.COM
DOSLFN.COM
DRVTYPES.EXE
EMM386.EXE
ESCAPE.EXE
EXTRACT.EXE
FDISK.EXE
FIND.COM
FORMAT.COM
HIMEM.SYS
IFSHLP.SYS
IO.SYS
KILLER.EXE
LOCATE.COM
LOWDMA.SYS
MCD.EXE
MEM.EXE
MODE.COM
MOUSCLIP.EXE
MSDOS.SYS
PC-EXT2X.OVL
PC-WNERR.OVL
PCCACHE.COM
PERUSE.COM
QV1.EXE
RAMFD.EXE
SHSUCDX.EXE
SHUTDOWN.COM
SYS.COM
TM.EXE
UDMA.SYS
UMBPCI.SYS
UNDISK.EXE
USBASPI.SYS
USBCD.SYS
VIDE-CDD.SYS
XFIND.COM
XMSDSK.EXE
XZL.COM
ZENO.EXE


Thank you!
Floor 2 Posted 2010-03-10 20:00 ·  中国 广西 河池 电信
中级用户
★★
Credits 252
Posts 97
Joined 2006-09-17 12:00
19-year member
UID 62869
Gender Male
Status Offline
LZ, the question you raised is not clear, so it's difficult to solve the problem directly. It is suggested:

1. Which menu item in the config.sys file does your problem occur in? (Is it au..bat or co..sys, during the process or after?)

2. Is the virtual machine started with an ISO or IMG? Or something else?

3. Can the virtual machine run normally?

4. The three problems can't occur at the same time. Which one occurs first and then what...

To get help from others, you need to make the problem (process) clear. Not everyone has time, although many people are willing to help you.

[ Last edited by goli2008 on 2010-3-10 at 20:01 ]
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
aries215 +2 2010-03-10 22:46
Floor 3 Posted 2010-03-10 22:42 ·  中国 广东 珠海 联通
初级用户
Credits 29
Posts 46
Joined 2009-06-09 19:47
17-year member
UID 147044
Gender Female
Status Offline
I'm sorry, I thought you would understand if I circled it in the screenshot.

The prompt says that my main disk is not a UDMA DISK? What does that mean? What's going on? Is there an error? Is such information good or bad?

I want to use XMSDSK.EXE to generate a larger virtual disk, but the prompt message seems to say that it can't be created, right? How to modify the configuration file?

I selected menu 1 of config.sys (GHOST). In fact, most of the parts in front of several options are the same, and it hasn't reached the part of loading the target program at the end. Only this file has options, and the others are not set.

The full name of my boot disk image is DOS71.IMG. I only tested it in a virtual machine but it's not very normal. I think if it's completely normal, there wouldn't be the prompt in the screenshot. And the GRUB4DOS boot menu on my actual machine is written incorrectly, and it always says something about C/H/S being problematic when booting the IMG, and I can't start it.

The two screenshots were taken during the same boot process, because I added some "PAUSE" between commands, so they can be separated to rule out. The three problems appeared one after another, and I don't understand the reason. Maybe there's no necessary connection.

By the way, was the loading of "CP936UNI.TBL" successful? At the beginning, removing the previous "/Z:" would show a full screen of help information, and after adding it back, there was no more. I don't know if it was successful.

Thanks!!!

[ Last edited by aries215 on 2010-3-10 at 22:45 ]
Forum Jump: