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-13 03:00
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Question about ghost commands, hope an expert can help! View 1,008 Replies 1
Original Poster Posted 2003-08-22 00:00 ·  中国 北京 通州区 联通
初级用户
Credits 120
Posts 4
Joined 2003-08-19 00:00
22-year member
UID 8891
Gender Male
Status Offline
I want to make a boot disk now and want to implement some of the following ghost commands. Please help!

Clone from the first primary partition of the hard disk (drive C) to the first logical partition (the current drive D), named part1.gho ;
Clone from the second primary partition of the hard disk (hidden) to the first logical partition (the current drive D), named part2.gho ;
Clone from the third primary partition of the hard disk (hidden) to the first logical partition (the current drive D), named part3.gho ;
Restore the part1.gho file from the first logical partition of the hard disk (the current drive D) to the first partition of the hard disk (drive C) ;
Restore the part2.gho file from the first logical partition of the hard disk (the current drive D) to the second partition of the hard disk (hidden) ;
Restore the part3.gho file from the first logical partition of the hard disk (the current drive D) to the third partition of the hard disk (hidden) ;

Many, many thanks!!!
Floor 2 Posted 2003-09-13 00:00 ·  中国 福建 宁德 电信
初级用户
Credits 263
Posts 35
Joined 2003-08-10 00:00
23-year member
UID 8334
Gender Male
Status Offline
I'll just explain the first command to you; figure out the others by analogy yourself.
ghost.exe -clone,mode=pdump,src=1:1,std=d:\part1.gho -sure -z9
Brief explanation:
-clone is the clone command parameter, what follows are switches, mode=pdump means cloning to an image file, src=1:1 means the source disk is the first partition of the first physical hard disk, note that this is somewhat different from the concept you described, std=d:\part1.gho refers to where the target image file is stored, the -sure parameter lets you skip the confirmation process, and the -z9 parameter indicates the compression ratio; -z1 is small, and -z9 is of course large. The parameter switch used for restoring is mode=pload, for example

ghost.exe -clone,mode=pload,src=d:\part1.gho,std=1:1-sure -rb

-rb means restart automatically after restoration is completed
Forum Jump: