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-06-25 09:14
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Repost: Automatic Partition Restoration - Application of Ghost Parameters View 3,772 Replies 10
Original Poster Posted 2002-11-16 00:00 ·  中国 广东 佛山 禅城区 电信
元老会员
★★★★
Credits 5,170
Posts 1,637
Joined 2002-10-16 00:00
23-year member
UID 8
Gender Male
From 广东佛山
Status Offline
Fully Automatic Partition Restoration - Application of Ghost Parameters

In general, you can use the functions in the graphical interface of Ghost to complete the system restoration. Sometimes we hope that the software can help us restore everything with just one key press without having to sit in front of the computer and always pay attention to whether there are dialog boxes that need confirmation. If you want to achieve this function, you need to understand the parameters of Ghost. We need to solve this problem in the DOS way. (Using parameters to realize part of the software's functions, which is the biggest feature of DOS) The following will use the example analysis method to illustrate how to use the parameters of Ghost to realize this function.

The following is the partition situation of my hard disk. (If you don't understand what a partition is, please don't use these parameters randomly, otherwise we won't be responsible for the consequences!!)

Number of hard disks: 1 (There may not be only one hard disk on the computer. If you have two or more hard disks, you need to pay attention to modifying the parameter values)
Partition situation: 4 partitions are divided.
1 primary partition
C drive: that is, the DOS partition;
Extended partition
Three logical partitions: D drive, E drive and F drive.

I. System Backup
First, we use the following parameter line to compress the contents of the C drive into an image file (*.gho). ghost.exe -clone,mode=pdump,src=1:1,dst=E:.gho -z9 -sure
Parameter explanation:
-clone,mode=pdump means using the clone partition mode (pcopy is disk to disk copy, pload is restoring the image file;
src=1:1 means cloning the first partition of the first physical hard disk, generally speaking, it is the C drive, that is, the system drive;
dst=E:.gho means that the partition is cloned into the image file pwin98.gho and saved to the E drive backup directory;
-z9 means using the highest compression form (-z9) for backup;
-sure means that in all dialog boxes that appear during the software operation, all take the OK value.

II. System Restoration
ghost.exe -clone,mode=pload,src=E:.gho:1,dst=1:1 -sure -rb
Parameter explanation:
src=E:.gho:1 means using the content of the first partition in the image file pwin98.gho saved in the back directory of the E drive; dst=1:1 means restoring to the first partition of the first physical hard disk;
-rb means that after the system restoration is completed, the system will automatically restart.

III. Explanation of Some Common Parameters
Properly using the parameters of Ghost, you can efficiently complete the work. The following parameters are some relatively common parameters. If you are interested, you may try to combine and test the effect.
1. -rb
Automatically REBOOT when this GHOST operation ends and exits. A very useful parameter. Especially when copying the system, you can leave with confidence.
2. -fx
Automatically return to the DOS prompt when this GHOST operation ends and exits (provided that you start GHOST in the form of a DOS command).
3. -sure
Answer "YES" to all prompts or warnings that require confirmation. This parameter is dangerous to a certain extent, use with caution!
4. -fro
If bad clusters are found in the source partition, skip the prompt and force the copy. This parameter can be used to try to save the data in the bad sectors of the hard disk.
5. -fnw
Prohibit writing operations on FAT partitions to prevent misoperations (this parameter is invalid for NTFS partitions).
6. -f32
Convert the source FAT16 partition to FAT32 after copying (provided that the target partition is not less than 2G). Since there are very few operating systems that support FAT32, this parameter should be used with caution unless you are copying 98 partitions.
7. -fatlimit
Limit the NT FAT16 partition to 2G. This parameter is very useful when copying a WINDOWS NT partition and not wanting to use FAT16 with 64K/cluster.
8. -span
Volume parameter. When there is not enough space, prompt to copy to another IMAGE FILE in another partition.
9. -auto
Automatically assign a file name to continue execution without prompting when copying in volumes.

If you want to know the latest reports on Ghost, you can query at the following websites:
Symantec official website: http://www.symantec.com
Norton Ghost introduction: http://www.symantec.com/sabu/ghost/index.html
我的网志
http://hzmys.blog.163.com/
我的网盘
firststep.qjwm.com
fsmys.ys168.com
ssmys.ys168.com
www.brsbox.com/fsmys
www.brsbox.com/ssmys
www.brsbox.com/ccdos
Floor 2 Posted 2002-11-16 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
It seems that there are not as many parameters as the one I translated originally (it seems not even one fifth).
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 3 Posted 2002-11-16 00:00 ·  中国 广东 佛山 禅城区 电信
元老会员
★★★★
Credits 5,170
Posts 1,637
Joined 2002-10-16 00:00
23-year member
UID 8
Gender Male
From 广东佛山
Status Offline
Then I don't know. I found it online and didn't even read it carefully. I don't need to do any automatic recovery system at all.
我的网志
http://hzmys.blog.163.com/
我的网盘
firststep.qjwm.com
fsmys.ys168.com
ssmys.ys168.com
www.brsbox.com/fsmys
www.brsbox.com/ssmys
www.brsbox.com/ccdos
Floor 4 Posted 2008-11-01 22:37 ·  中国 福建 厦门 电信
新手上路
Credits 9
Posts 6
Joined 2008-10-08 00:42
17-year member
UID 127726
Gender Male
From 福建廈門
Status Offline
Oh! Friend, thank you for sharing
Floor 5 Posted 2009-09-10 00:09 ·  中国 江苏 淮安 金湖县 电信
新手上路
Credits 10
Posts 8
Joined 2009-09-09 08:36
16-year member
UID 151734
Gender Male
Status Offline
Thanks
Learned!!!
Floor 6 Posted 2009-09-10 08:59 ·  中国 江苏 苏州 电信
初级用户
Credits 20
Posts 9
Joined 2009-09-09 11:27
16-year member
UID 151741
Gender Male
Status Offline
Thank you..........Study hard
Floor 7 Posted 2009-09-11 11:58 ·  中国 湖南 郴州 电信
新手上路
Credits 2
Posts 1
Joined 2009-08-01 12:04
16-year member
UID 149716
Gender Male
Status Offline
Thank you..........Study hard
Floor 8 Posted 2010-05-18 12:17 ·  中国 山东 联通
初级用户
Credits 40
Posts 26
Joined 2009-04-20 03:56
17-year member
UID 143332
Gender Male
Status Offline
Give it a bump, thanks for sharing.
Floor 9 Posted 2010-08-25 04:01 ·  中国 陕西 咸阳 电信
初级用户
★★
Credits 106
Posts 55
Joined 2010-08-04 19:41
15-year member
UID 171757
Gender Male
Status Offline
Very well written!
Floor 10 Posted 2010-08-26 14:06 ·  中国 陕西 移动
初级用户
Credits 25
Posts 14
Joined 2010-08-14 11:22
15-year member
UID 172340
Gender Male
From 陕西省西安市
Status Offline
Friend, thank you for sharing!!!
Floor 11 Posted 2010-09-16 00:14 ·  中国 湖北 荆州 电信
新手上路
Credits 8
Posts 4
Joined 2010-09-13 10:22
15-year member
UID 174097
Gender Male
Status Offline
Very good, very detailed! Upvote
Forum Jump: