中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-10-27 04:09
47,815 topics / 349,928 posts / today 0 new / 48,289 members
DOS启动盘 & LOGO技术 (启动盘室) » Questions about the related configuration of calling Ghost on the bootable disk
Printable Version  1,978 / 8
Floor1 2770215 Posted 2006-03-09 15:17
新手上路 Posts 3 Credits 14
Little brother has just started making boot disks not long ago! He is not very familiar with some DOS commands! Today, he tried to make an IMG for booting Ghost by referring to others' practices. The config.sys is as follows: [COMMON]
DOS=HIGH,UMB
DEVICEHIGH=HIMEM.SYS /TESTMEM:OFF
DEVICEHIGH=EMM386.EXE NOEMS
DEVICEHIGH=OAKCDROM.SYS /D:MSCD000

FILES=50
BUFFERS=40
SHELL=COMMAND.COM /E:512 /P
STACKS=9,256
LASTDRIVE=Z

The autoexec.bat is as follows: @ECHO OFF
CLS
SET PROMPT=$P$G
SET TEMP=C:\
SET TMP=C:\
PATH=A:\;C:\;C:\WINDOWS;C:\WINDOWS\COMMAND
LH SMARTDRV.EXE 20480
LH MSCDEX.EXE /D:MSCD000
LH DOSKEY.COM
%CDROM%:
ghost

It appeared "Bad command or file name" at the end of booting but finally could successfully boot Ghost. He knows there are many wrong places in this batch processing! But since he is a beginner, he doesn't understand many commands. Hope the experts can give pointers or provide a better plan! Thanks!
Floor2 不得不爱 Posted 2006-03-09 20:01
超级版主 Posts 2,044 Credits 5,310 From 四川南充
The %CDROM% variable has no value! It should be the problem here.
Floor3 bc12060101 Posted 2006-03-10 20:00
银牌会员 Posts 712 Credits 1,455
Content of Autoexec.bat file:
---------------------------------
@echo off
Mscdex.exe /D:mscd001 /L:z
z:
ghost -clone,mode=pload,src=z:\backup.gho:1,dst=1:1 -sure -rb

---------------------------------

Content of Config.sys file:
---------------------------------
device=OAKCDROM.SYS /D:mscd001

---------------------------------

The above batch file is only applicable when ghost.exe and its image file are placed in the root directory of the CD. If placed in another location, only the last two lines in the Autoexec.bat file need to be changed.
For example: Placed in the root directory of drive F
-----------------------------------------------------
f:
ghost -clone,mode=pload,src=f:\backup.gho:1,dst=1:1 -sure -rb
----------------------------------------------------
Or simply change to a single line command:
---------------------------------------------------
f:\ghost.exe -clone,mode=pload,src=f:\backup.gho:1,dst=1:1 -sure -rb
--------------------------------------------------
Floor4 cc321mn Posted 2006-10-31 03:54
初级用户 Posts 17 Credits 40 From 江西
Learning. I'm using them.
Floor5 cmyhome Posted 2006-10-31 04:16
初级用户 Posts 30 Credits 74
CONFIG.SYS is nothing special, generally there is HIMEM.SYS, just add the CD-ROM driver. I'll give an AUTOEXEC.BAT, which I made myself, with a Chinese menu:

********************************************************

@ECHO OFF
TH 《Tianhui Chinese characters, can be replaced with others》
ECHO One-key system recovery
ECHO Please use the number key to select the menu
ECHO.
ECHO 1. Automatically backup C: drive
ECHO 2. Automatically restore C: drive
ECHO 3. Boot to command prompt
ECHO 4. Restart the system
ECHO.
ECHO Note: Please back up important data on C: drive before restoring the system
CHOICE /c:1234
IF ERRORLEVEL 4 GOTO RESET
IF ERRORLEVEL 3 GOTO GHO
IF ERRORLEVEL 2 GOTO BAK
IF ERRORLEVEL 1 GOTO DOS
:BAK
TH/Q
CLS
GHOST -CLONE,MODE=PDUMP,SRC=1:1,DST=H:\SYS\SYSTEM.GHO -SURE -Z9 -RB
GOTO END
:GHO
TH/Q
CLS
GHOST -CLONE,MODE=PLOAD,SRC=H:\SYS\SYSTEM.GHO:1,DST=1:1 -SURE -RB
GOTO END
:DOS
TH/Q
CLS
LH MSCDEX.EXE /D:MSCD001
GOTO END
:RESET
TH/Q
CLS
RESET.COM 《Restart command, you can download it from the Internet yourself》
:END
Floor6 amao Posted 2006-10-31 13:46
中级用户 Posts 152 Credits 316
LH SMARTDRV.EXE 20480
LH MSCDEX.EXE /D:MSCD000

Although this is not the essential problem here, the order of these two sentences is reversed.
Floor7 fastslz Posted 2006-10-31 20:59
铂金会员 Posts 2,315 Credits 5,493 From 上海
LH SMARTDRV.EXE with a cache size of 20480 is a bit high; low - configuration computers may crash.
Floor8 不得不爱 Posted 2006-11-01 01:53
超级版主 Posts 2,044 Credits 5,310 From 四川南充
Now GHOST doesn't need to load SMARTDRV.EXE. Adding it actually makes it slower.
Floor9 terse Posted 2006-11-13 13:58
银牌会员 Posts 946 Credits 2,404
Originally posted by cmyhome at 2006-10-31 04:16:
There's nothing special about CONFIG.SYS. Generally, there are HIMEM.SYS and the CD-ROM driver added. Here's an AUTOEXEC.BAT I made, with a Chinese menu:

********************************************************

@ECHO ...

Where are the text and background colors set?
I'm currently using 'Ben Shi's' VTMagic.com to change the font in CONFIG,
Also, if I'm using a USB flash drive to boot, do I not need the line DEVICEHIGH=OAKCDROM.SYS /D:MSCD000 in CONFIG?

[ Last edited by terse on 2006-11-13 at 01:59 PM ]
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023