『楼 主』:
转贴:全自动恢复分区-Ghost的参数应用
使用 LLM 解释/回答一下
全自动恢复分区-Ghost的参数应用
一般情况下,你可以使用Ghost的图形界面中的功能来完成系统的恢复。有时候我们希望一个按键后软件就能帮我全部恢复,而不用再坐在电脑前时刻留意是否有需要确认之类的对话框。如果要实现这种功能,那你就得了解Ghost的参数。我们得用DOS的方式来解决这问题。(利用参数实现软件的一部分功能,这可是DOS的最大特点了)下面我们将以实例分析的方式来说明如何利用Ghost的参数实现这功能。
下面是我的硬盘的分区情况。(如果你还不懂分区是什么,请不要随便使用这些参数,不然后果我们可不负责哦!!)
硬盘数:1 个 (电脑上可不一定只有一个硬盘,如果你有两个或以上的硬盘,可得注意修改参数值)
分区情况:分4个盘。
主分区1个
C盘: 即DOS分区;
护展分区
D盘、E盘和F盘三个逻辑分区。
一、实现系统的备份
首先我们用以下的参数行实现把C盘的东西压缩成一个影像文件(*.gho)。ghost.exe -clone,mode=pdump,src=1:1,dst=E:.gho -z9 -sure
参数说明:
-clone,mode=pdump 表示采用克隆分区方式(pcopy是硬盘对拷 pload是恢复影像文件;
src=1:1 表示克隆第一个物理硬盘的第一分区,一般来说是C盘,也就是系统盘;
dst=E:.gho 表示分区被克隆成影像文件pwin98.gho,并保存到E盘backup目录里;
-z9 表示使用最高压缩形式(-z9 )备份;
-sure 表示在软件运行过程中所有出现的对话框中都取OK值。
二、系统的恢复
ghost.exe -clone,mode=pload,src=E:.gho:1,dst=1:1 -sure -rb
参数说明:
src=E:.gho:1 表示采用保存在E盘的back目录下的pwin98.gho 的影像文件中的第一分区内容;dst=1:1 表示恢复到第一物理硬盘的第一分区;
-rb 表示系统恢复完成后,自动重新启动系统。
三、一些常用参数的说明
适当运用Ghost的参数,你就能高效地完成工作。下面的参数都是一些比较常用的参数,有兴趣不妨组合试用一下效果如何。
1、-rb
本次GHOST操作结束退出时自动REBOOT。一个很有用的参数,特别是在复制系统时你可以放心离开了。
2、-fx
本次GHOST操作结束退出时自动回到DOS提示符(前提是你是以DOS命令的方式启动的GHOST)。
3、-sure
对所有要求确认的提示或警告一律回答"YES"。此参数有一定的危险性,慎用!!
4、-fro
如果源分区发现坏簇,则略过提示强制拷贝。此参数可用来试着挽救硬盘坏道中的数据。
5、-fnw
禁止对FAT分区进行写操作,以防误操作(此参数对NTFS分区无效)。
6、-f32
将源FAT16分区拷贝后转换成FAT32(前提是目标分区不小于2G)。由于支持FAT32的操作系统很少,所以除非你是复制98分区,否则此参数慎用!
7、-fatlimit
将NT的FAT16分区限制在2G。此参数在复制WINDOWS NT分区,且不想使用64K/簇的FAT16时非常有用。
8、-span
分卷参数。当空间不足时提示复制到另一个分区的另一个IMAGE FILE。
9、-auto
分卷拷贝时不提示就自动赋予一个文件名继续执行。
如果想知道Ghost的最新报道,你可到以下的网址进行查询:
Symantec 公司主页:http://www.symantec.com
Norton Ghost 介绍:http://www.symantec.com/sabu/ghost/index.html
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
|