|
Symantec Ghost v11.0.0.1502命令行转换参数说明
| Top |
Symantec Ghost可以用下列方式运行:
● | Interactively with no command-line switches 不带命令行转换参数的交互式运行 |
● | Interactively with selected switches 带选定转换参数的交互式运行 |
● | Automated in batch files (batch mode) 以批处理文件自动运行(批处理模式) |
The Symantec Ghost command-line switches are used to alter Symantec Ghost behavior and automate procedures.
Symantec Ghost命令行转换参数常用于更改Symantec Ghost的默认状态和自动处理过程。
A hyphen (-) or a slash (/) must precede all switches except @filename. Switches are not case sensitive.
除@filename外的所有转换参数都必须以连字符(-)或正斜杠(/)开头。转换参数不区分大小写,既可以大定,也可以小写,还可以大小写混合。
If you are adding switches from the Advanced Options dialog box, some of the switches, for example the -clone switch, are not applicable to your task. Because you are already performing a backup, restore, or clone operation, the -clone switch is redundant.
如果从“高级选项”对话框添加转换参数,则某些转换参数(如-clone转换参数)可能不适合您的任务。因为您已经执行了备份、还原或克隆操作,所以-clone转换参数是多余的。
@filename
@filename specifies a file that contains additional command-line switches that Symantec Ghost should read. Filename indicates the path and file name of the command-line switch file. The command-line switch file can include any Symantec Ghost command-line switch. The Symantec Ghost command-line switch file must be a text file with each switch on a separate line. This lets you exceed the DOS command-line limit of 150 characters.
指定一个包含Symantec Ghost能够读取的附加的命令行转换参数文件。文件名指出了命令行转换参数文件的路径和名称。命令行转换参数文件可以包含任何Symantec Ghost命令行转换参数。Symantec Ghost命令行转换参数文件必须是文本文件[即后缀名为.txt的文件],而且每个转换命令独占一行。此特性不必受DOS命令行长度不超过150个字符的限制。
例如,对于下列命令行:
ghost.exe @ghswitch.txt
文件Ghswitch.txt 将读作:
-clone,mode=pcreate,src=1:2,dst=g:\part2.gho
-fcr
-sure
-afile=filename
Replaces the default abort error log file name, Ghosterr.txt, with the directory and file given in filename.
用指定目录和名称的文件替代默认的终止错误日志文件(Ghosterr.txt)。
-align = chs
-align = 1mb
Lets you override the way in which the partitions are aligned when an individual partition or disk full of partitions is restored. This switch aligns the partition to the boundary as follows:
当单个分区或整个磁盘分区还原时忽略分区对齐方式。该转换参数以下列方式对齐分区边界:
● | CHS: Aligns to a track or cylinder boundary 对齐到磁道或柱面边界 |
● | 1MB: Aligns with a boundary of 1 MB 边界1MB处对齐 |
By default, a partition is aligned on the destination computer as it was on the source computer.
Note: The 1MB alignment option supports Windows Vista.
默认情况下,在目标计算机上的分区对齐跟源计算机上一致。
注意:1MB对齐选项支持Windows Vista 。
-auto
Automatically names spanned image files during creation. Using this switch avoids the user prompt that asks for confirmation of the next destination location for the remainder of the image file that is being restored. This switch is the default behavior for Symantec Ghost.
在创建时自动命名跨越式[或分卷]映像文件。此参数可避免显示确认映像文件剩余部分所在位置的提示。此转换参数是Symantec Ghost的默认状态。
-batch
Batch mode switch. Prevents abort messages from waiting for user acknowledgment and removes user interaction prompts. The return value of Ghost.exe must be checked to identify whether the operation was successful. Symantec Ghost returns 0 on success and 1 or higher on failure or error.
批处理模式转换参数。防止终止信息等待用户确认,并删除了用户交互提示。必须检查Ghost.exe的返回值以确定操作是否已成功完成。Symantec Ghost返回0表示成功,返回1或大于1的值表示失败或错误。
-bfc
Handles bad FAT clusters when writing to disk. If this switch is set and the target partition is FAT, Symantec Ghost checks for and works around bad sectors, and all free sectors are verified. This option may slow Symantec Ghost operation substantially.
在写入磁盘时处理FAT的坏簇。设置此转换参数后,如果目标分区为FAT,Symantec Ghost就会检查并处理坏扇区以及验证所有空闲扇区。此选项可能会显著降低Symantec Ghost的运行速度。
-blind
Prevents any GUI display. The blind switch must be used with switches that do not require any user input, for example, the clone switch. Using this switch lets you execute Ghost operations on a computer with no video adapter.
阻止任何图形用户界面显示。blind转换参数用于不要求用户输入任何命令,例如clone 命令。使用该转换参数允许您在计算机上执行克隆操作时无需视频卡。
-bootcd
When writing an image directly to a CD/DVD writer, makes the CD/DVD bootable. You need a bootable floppy disk in drive A. If you use the -sure switch with -bootcd and a floppy disk is not in drive A, then a non-bootable CD/DVD is created.
当直接向CD/DVD刻录机写入映像时,可使CD/DVD变为可启动光盘,在驱动器A中必须有可启动的软盘。如果将-sure转换参数与-bootcd一起使用且驱动器A中没有启动软盘,则将创建非启动CD/DVD。
-buffersize=x
Ghost creates an image file using a buffer of size x where x = number of KB. The default size of the buffer is automatically calculated by Symantec Ghost. The buffersize switch lets you override this size. You can set the buffer size value from 1 to 32.
Ghost使用大小为x KB的缓冲区创建映像文件。缓冲区的大小由Symantec Ghost自动计算。buffersize转换参数允许忽略大小。缓冲区大小设置为从1到32不等的值。
-chkimg,filename
Checks the integrity of the image file indicated by filename.
检查指定映像文件的完整性。
-clone
Ghost.exe operation switch. This switch allows automation of Ghost.exe operations and has a series of arguments that define the operation parameters.
此转换参数使Ghost.exe的操作能够自动进行,并且包含了一系列定义操作转换参数的参数。
它是实现 Ghost 无人备份或还原的核心参数。
|
|
|