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-23 23:24
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » Questions about the related configuration of calling Ghost on the bootable disk View 1,817 Replies 8
Original Poster Posted 2006-03-09 15:17 ·  中国 广西 河池 宜州区 电信
新手上路
Credits 14
Posts 3
Joined 2006-03-08 23:44
20-year member
UID 51625
Status Offline
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!
Floor 2 Posted 2006-03-09 20:01 ·  中国 四川 南充 电信
超级版主
★★★★
我爱DOS
Credits 5,310
Posts 2,044
Joined 2005-09-26 12:00
20-year member
UID 42843
Gender Male
From 四川南充
Status Offline
Floor 3 Posted 2006-03-10 20:00 ·  中国 河南 洛阳 联通
银牌会员
★★★
Credits 1,455
Posts 712
Joined 2006-01-20 10:26
20-year member
UID 49246
Status Offline
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
--------------------------------------------------
Floor 4 Posted 2006-10-31 03:54 ·  中国 江西 宜春 电信
初级用户
Credits 40
Posts 17
Joined 2006-10-31 03:17
19-year member
UID 68955
Gender Male
From 江西
Status Offline
Learning. I'm using them.
Floor 5 Posted 2006-10-31 04:16 ·  中国 广东 惠州 电信
初级用户
Credits 74
Posts 30
Joined 2006-06-01 17:04
20-year member
UID 56385
Status Offline
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
Floor 6 Posted 2006-10-31 13:46 ·  美国 北达科他州立大学
中级用户
★★
Credits 316
Posts 152
Joined 2006-06-18 13:01
20-year member
UID 57204
Gender Male
Status Offline
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.
Floor 7 Posted 2006-10-31 20:59 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
LH SMARTDRV.EXE with a cache size of 20480 is a bit high; low - configuration computers may crash.
第一高手 第二高手

Floor 8 Posted 2006-11-01 01:53 ·  中国 四川 南充 电信
超级版主
★★★★
我爱DOS
Credits 5,310
Posts 2,044
Joined 2005-09-26 12:00
20-year member
UID 42843
Gender Male
From 四川南充
Status Offline
Floor 9 Posted 2006-11-13 13:58 ·  中国 江苏 常州 溧阳市 电信
银牌会员
★★★
Credits 2,404
Posts 946
Joined 2005-09-08 13:44
20-year member
UID 42345
Status Offline
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 ]
Forum Jump: