admin管理员组文章数量:1535374
2024年2月11日发(作者:)
Symantec Ghost v11.0.0.1502命令行转换参数说明
Top
Ghost最新版命令行转换参数-[中英文说明]
游元辉2007年2月6日于山西太原
转载时请注明出处,如有翻译错误请指正!
Email:sxty12012@
关于Symantec Ghost转换参数
Symantec Ghost can be run in the following ways:
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个字符的限制。
例如,对于下列命令行:
@
文件 将读作:
-clone,mode=pcreate,src=1:2,dst=g:
-fcr
-sure
-afile=filename
Replaces the default abort error log file name, , with the
directory and file given in filename.
用指定目录和名称的文件替代默认的终止错误日志文件()。
-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
must be checked to identify whether the operation was
successful. Symantec Ghost returns 0 on success and 1 or higher on failure
or error.
批处理模式转换参数。防止终止信息等待用户确认,并删除了用户交互提示。必须检查的返回值以确定操作是否已成功完成。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
operation switch. This switch allows automation of
operations and has a series of arguments that define the operation
parameters.
此转换参数使的操作能够自动进行,并且包含了一系列定义操作转换参数的参数。
它是实现 Ghost 无人备份或还原的核心参数。
---------------------------------------------------------------------
详细说明
clone 转换参数用法
Some cloning switches for use in Ghost can be specified on the GhostCast
Server.
某些克隆转换参数只能用于指定的网络克隆服务。
The syntax for the clone switch is:
克隆转换参数的语法如下:
-clone,MODE={operation},SRC={source},DST={destination},[SZE{size},SZE{size}.......]
此参数行较为复杂,且各参数之间不能含有空格。
其中:operation为操作类型,SRC指定了ghost运行时使用的源分区的位置模式及其意义。DST指定运行ghost时使用的目标位置模式及其意义。source为操作源,值可取:驱动器号,从1开始;或者为文件名,需要写绝对路径。destination为目标位置,值可取:驱动器号,从1开始;或者为文件名,需要写绝对路径;@CDx,刻录机,x 表示刻录机的驱动器号,从1开始。
定义克隆命令的类型
MODE defines the type of clone command.
MODE定义克隆命令的类型。
The syntax is as follows:
语法如下:
MODE={copy | restore | create | pcopy | prestore | pcreate}
表 A-1 Mode命令
转换参数
copy
操作
Disk-to-disk copy
磁盘到磁盘的复制
Restore
File-to-disk
restore
Note: The load switch is replaced by the
restore switch. The load switch is still fully 文件到磁盘的还原
functional and is interchangeable with
restore.
注意:load转换参数已被restore转换参数替代。Load转换参数仍完全有效,并且可以与restore转换参数互换。
Disk-to-file
backup
Note: The dump switch is replaced by the create
switch. The dump switch is still fully 磁盘到文件的备份
Create
functional and is interchangeable with create.
注意:dump转换参数已被create转换参数替代。dump转换参数仍完全有效,并且可以与create转换参数互换。
pcopy Partition-to-partition copy
分区到分区的复制
Prestore
File-to-partition
restore
Note: The pload switch is replaced by the
prestore switch. The pload switch is still 文件到分区的还原
fully functional and is interchangeable with
prestore.
注意:pload转换参数已被prestore转换参数替代。pload转换参数仍完全有效,并且可以与prestore转换参数互换。
Partition-to-file
backup (allows
Note: The pdump switch is replaced by the
multipartition
pcreate switch. The pdump switch is still fully
Ghost backup
functional and is interchangeable with
selection)
pcreate.
分区到文件的备份注意:pdump转换参数已被pcreate转换参数替代。(这允许多分区pdump转换参数仍完全有效,并且可以与pcreateGhost备份选择)。
转换参数互换。
pcreate
克隆组合选项
表 A-2 克隆操作
方式
copy
● disk磁盘
源
● disk磁盘
目标
restore
● file文件
GhostCast Server网络克隆● 服务
● tape磁带
● CD-ROM
● disk磁盘
USB 1.1 and 2.0 Mass
Storage Device USB 1.1● 和2.0大容量存储设备
● DVD
FireWire hard disk 1394● 硬盘
create
● disk磁盘
● file文件
GhostCast Server网络克隆● 服务
● tape磁带
● CD writer刻录机
USB 1.1 and 2.0 Mass
Storage Device USB 1.1● 和2.0大容量存储设备
● DVD
FireWire hard disk 1394● 硬盘
pcopy disk:partition 磁盘:分● 区
disk:partition 磁盘:分● 区
prestore file:partition 文件:分● 区
GhostCast Server (no
partition specified) 网络● 克隆服务(不指定分区)
tape:partition 磁带:分● 区
CD:image:partition 光● 驱:映像:分区
USB 1.1 and 2.0 Mass
Storage Device USB 1.1● 和2.0大容量存储设备
FireWire hard disk 1394● 硬盘
disk:partition 磁盘:分● 区
pcreate disk:partition 磁盘:分● 区
partition:partition 分● 区:分区
● file文件
GhostCast Server网络克隆● 服务
● tape磁带
● CD writer 刻录机
You can specify more than one
USB 1.1 and 2.0 Mass
partition.
Storage Device USB 1.1● 和2.0大容量存储设备
可以指定多个分区。
● DVD
FireWire hard disk 1394● 硬盘
设置clone转换参数的源
The syntax for this switch is as follows:
此转换参数的语法如下:
SRC={disk | file | multicast | tape | cd writer }
SRC defines the source for the operation that is selected by the clone
mode option.
SRC定义克隆模式选项选定的操作源。
表 A-3 克隆的源选项
转换参数
disk
源
drive
number
说明
Source disk drive number. Numbers start at
1.
For example: SRC=1
源磁盘驱动器号。驱动器号从1开始。例如:SRC=1
A partition on a drive can also be specified.
Numbers start at 1. For example: SRC=1:2
也可以指定驱动器上的分区。驱动器号从1开始,例如:SRC=1:2
file filename The source image file name. For example: SRC=
g:
源映像文件名。例如:SRC= g:
A partition in an image file can also be
specified.
For example: SRC=g::2
也可以指定映像文件中的分区。例如:
SRC=g::2
Files can also be read from a CD-ROM drive.
也可以由光驱读取文件。
multic@mcsessionThe name of the multicast session.
ast name
多点传送的会话名称。
tape @MTx The tape drive number. Numbers start at 0.
For example: SRC=@MT0
磁带机的编号。编号从0开始。例如:SRC=@MT0
A partition on a tape can also be specified.
For example: SRC=@MT0:3
也可以指定磁带上的分区,例如:SRC=@MT0:3
CD ROM @CDx The CD or DVD drive number. If you have a CD
reader and a CD writer, in the user
interface you would see @CD1 and @CD2. The
number is optional if you are specifying an
operation from the command line.
CD/DVD驱动器号。如果既有光驱又有刻录机,则在用户界面中将看到@CD1和@CD2。如果从命令行中指定操作,则驱动器号是可选项。
You can specify partitions for the image
stored on a CD for a restore operation. For
example: SRC=@CD1:2
对于还原操作,可以为储存在光盘上的映像指定分区。例如:SRC=@CD1:2
Preser@PF
vation
file
An image file that was preserved during a
restore that failed.
For example:
ghost -recover -clone,mode=[p] load,
src=@pf,...
还原失败后存储映像文件。
例如:
ghost -recover -clone,mode=[p] load,
src=@pf,...
设置克隆转换参数的目标
The syntax for this switch is as follows:
此转换参数的语法如下:
DST={disk | file | multicast | tape | cdwriter}
DST defines the destination location for the operation.
DST定义该操作的目标位置。
表 A-4 克隆的目标选项
转换参数
disk
目标
drive
说明
The destination disk drive number, such as
DST=2.
A partition on a drive can also be
specified. For example: DST=2:1
目标磁盘驱动器号,如DST=2。也可指定驱动器上的分区。例如:DST=2:1
To create a new partition, type a
destination partition one greater than the
existing number of partitions, if there is
enough free space.
若要创建新的分区,如果有足够大的可用空间,则键入一个比现有分区大1的目标分区。
file filename The destination image file name. For
example: DST= g:
目标映像文件名。例如:DST=
g:
multica@mcsessionThe name of the multicast session.
st name
多点传送的会话名称。
tape @MTx The tape drive number. Numbers start at 0.
For example: DST=@MT0
磁带机的编号。编号从0开始。例如:DST=@MT0
cd/dvdw@CDx
riter
The CD or DVD writer drive number. Numbers
start at 1. For example: DST=@CD1
CD/DVD刻录机驱动器号。驱动器号从1开始。例如:DST=@CD1
If you have a CD reader and a CD writer,
in the user interface you would
see @CD1 and @ CD2. The number is optional
if specifying an operation from the
command line.
如果既有光驱又有刻录机,则在用户界面中将会看到@CD1和@CD2。如果从命令行中指定操作,则驱动器号是可选项。
设置克隆转换参数的目标大小
The SZE switch sets the size of the destination partitions for either a
disk restore or disk copy operation. This is optional. Multiple partition
size switches are supported.
SZE为磁盘还原或磁盘复制操作设置目标分区的大小。此为可选项。支持多分区大小转换参数。
The number of size switches depends on the number of partition sizes that
you want to specify. There may be none.
Size转换参数的数目取决于要指定的分区大小的数目。可能为无。
You can use the sze switch in the Advanced command-line options in the
Console.
可在控制台高级命令行选项中使用sze转换参数。
语法如下:
SZE{E | F | L | n={xxxxM | mmP| F | V}}
表 A-5 克隆的目标大小选项
转换参数
说明
n=xxxxM Indicates that the nth destination partition is to have
a size of xxxxMB (for example, SZE2=800M indicates
partition two is to have 800 MB).
表示第n个目标分区的大小应为xxxxMB(例如,SZE2=800M表示分区2的大小为800MB)。
n=mmP Indicates that the nth destination partition is to have
a size of mm percent of the target disk. Due to partition
size rounding and alignment issues, 100% physical use
of disk space may not be possible.
表示第n个目标分区的大小应为目标磁盘的百分之mm。由于分区大小的舍入和调整问题,磁盘空间的实际使用不可能达到100%。
n=F Indicates that the nth destination partition is to
remain the same size on the destination as it was on the
source. This is referred to as a fixed size.
表示第n个目标分区在目标中的大小与它在源中的大小相同。这称为固定大小。
n=V Indicates that the partition may be made bigger or
smaller depending on how much disk space is available.
This is the default.
表示可能使分区变得更大或更小,具体视剩余的可用磁盘空间而定。这是默认值。
E
Indicates that the sizes of all partitions remain fixed.
所有分区的大小保持不变。
F Indicates that the sizes of all partitions except the
first remain fixed. The first partition uses the
remaining space.
除第一个分区外的所有分区的大小保持不变。第一个分区使用剩余空间。
L Indicates that the sizes of all partitions except the
last remain fixed. The last partition uses the remaining
space.
除最后一个分区外的所有分区的大小保持不变。最后一个分区使用剩余空间。
克隆转换参数用法示例
表 A-6 克隆转换参数用法示例
转换参数 说明
Copies local disk one to local disk two.
-clone,mode=copy,src=1将本地磁盘1复制到本地磁盘2。
,dst=2
-lpm Connects a master computer using LPT to another
-clone,mode=create,srccomputer running in slave mode and
=2,dst=c: saves a disk image of local disk two to the remote
file c:. The slave computer can be
started with -lps.
将使用LPT的主计算机连接到另一台从属运行的计算机上,并将本地磁盘2上的磁盘映像保存到远程文件c:。从属计算机可以使用 –lps启动。
Copies the second partition of local disk one to
-clone,mode=pcopy,src=the first partition of local disk two without the
1:2,dst=2:1 -sure
final warning prompt.
无需最终警告提示信息将本地磁盘1的第二个分区复制到本地磁盘2的第一个分区。
-clone,mode=restore,src=e:,dst=1-sure
Restores the disk image file that is
held on the server drive that is mapped locally
to drive E onto local disk one. Performed without
the final warning prompt. This example is
typical of a command line included in a batch
file to automate workstation installations from
a network file server.
以本地方式映射为驱动器E的服务器驱动器上的磁盘映像文件还原到本地磁盘1。没有最终警告提示就执行。这是批处理文件中所含命令行的
典型示例,用于从网络文件服务器自动进行工作站的安装。
Saves the second partition of disk one to an
-clone,mode=pcreate,srimage file on mapped network drive G.
c=1:2,dst=g:
将磁盘1的第二个分区保存到映射网络驱动器G上的一个映像文件。
ghost Restores partition two from a two-partition
-clone,mode=prestore,simage file on mapped drive G onto the second
rc=g::2,dst=partition of the local disk.
1:2
将映射驱动器G上的两分区映像文件中的第二个分区还原到本地磁盘的第二个分区上。
-clone,mode=restore,src=g:,dst=2,sze1=60P,sze2=20P
Restores disk two from an image file and resizes
the destination partitions into a 60:20:20
allocation, assuming that the image contains 3
partitions.
从映像还原磁盘2,并将目标分区的分配调整为60:20:20。
Clones a two-partition disk and keeps the second
-clone,mode=copy,src=1partition on the destination disk the same size
,dst=2,sze2=F as on the source disk and lets the first
partition use the remaining space, leaving no
unallocated space.
克隆两分区的磁盘,并使目标磁盘上的第二个分区与源磁盘上的大小保持相同,然后允许第一个分区使用剩余空间,不保留未分配的空间。
Saves disk one to the image file
-clone,mode=create,srclocated on the third partition of the second
=1,dst=2:
disk.
This works only if the third partition of the
second disk is an NTFS file system.
将磁盘1保存为第二个磁盘的第三个分区上的映像文件。这仅当第二个磁盘的第三个分区为NTFS时才有效。
Restores the fifth partition of the image file
-clone,mode=prestore,, which is located on the third
rc=2::5,dstpartition of the second disk, to the second
=4:2 partition on the fourth disk. This switch only
works if the third partition on the second disk
is NTFS.
将位于第二个磁盘的第三个分区上的映像文件的第五个分区还原为第四个磁盘上的第二个分区。此转换参数仅当第二个磁盘的第三个分区是NTFS时才有效。
-clone,mode=rRestores disk one from an image file and resizes
estore,src=g:3prtdiskthe first partition to 450 MB, the second to 1599
.gho,dst=1,sze1=450M,sMB, and the third to 2047 MB.
ze2=1599M,sze3=2047M
从映像还原磁盘1,并将第一个分区的大小调整为450MB,第二个分区调整为1599MB,第三个分区调整为2047MB。
Restores a disk from an image file and resizes
-clone,mode=restore,srthe last partition to fill the remaining space.
c=g:,dst=从映像文件还原磁盘,并调整最后一个分区的大小以1,szeL
充满剩余空间。
Restores disk one from an image file being sent
-clone,src=@MCsessionnfrom the GhostCast Server with the session name
ame,dst=1 -sure “sessionname” without the final warning
prompt.
会话名称为“sessionname”通过网络克隆服务传送的映像文件来还原磁盘1,且最终无任何警告提示。
Creates an image file of disk one to an image file
-clone,src=1,dst=@MCsebeing created by the GhostCast Server with the
ssionname -sure session name “sessionname” without the final
warning prompt.
会话名称为“sessionname”通过网络克隆服务将磁盘1创建为一个映像文件,且最终无任何警告提示。
Creates an image file of the second partition on
-clone,mode=create,srcdisk 2 onto the first tape drive.
=2:2,dst=@MT0
将磁盘2上的第二个分区的映像文件创建到第一个磁带驱动器。
Creates an image file with only the selected
-clone,mode=pcreate,srpartitions. This example selects partitions 1,
c=2:1:4:6,dst=d:part1
4, and 6 from disk 2.
创建仅包含选定分区的映像文件。此示例选择了磁盘2的分区1、4和6。
实例
1、 -clone,mode=copy,src=1,dst=2 -sure
硬盘对拷
2、 -clone,mode=pcopy,src=1:2,dst=2:1 -sure
将一号硬盘的第二个分区复制到二号硬盘的第一个分区
3、 -clone,mode=pdump,src=1:2,dst=g:
将一号硬盘的第二个分区做成映像文件放到 g 分区中
4、 -clone,mode=pload,src=g::2,dst=1:2
从内部存有两个分区的映像文件中,把第二个分区还原到硬盘的第二个分区
5、 -clone,mode=pload,src=g:,dst=1:1 -fx -sure -rb
用 g 盘的 文件还原 c 盘。完成后不显示任何信息,直接启动
6、 -clone,mode=load,src=g:,dst=2,SZE1=60P,SZE2=40P
将映像文件还原到第二个硬盘,并将分区大小比例修改成 60:40
7、制作自动还原磁盘:
首先做一个启动盘,包含 , , , ,
文件(可以用 windows 做启动盘的程序完成)。
包含命令:
-clone,mode=pload,src=d:,dst=1:1 -fx -sure -rb
利用在 D 盘的文件自动还原,结束以后自动退出 ghost 并且重新启动。
8、自动备份磁盘:
-clone,mode=pdump,src=1:1,dst=d: -fx -sure -rb
9、制作自动还原光盘:
包含文件:, , (CDROM 执行程序),
(ATAPI CDROM 兼容驱动程序), 。
内容为:
DEVICE= /D:IDECD001
内容为:
/D:IDECE001 /L:Z
Ghost -clone,mode=load,src=z:,dst=1:1 -sure –rb
---------------------------------------------------------------------
-cns
Reverts the naming of spanned files to the system used by versions of
Symantec Ghost prior to Symantec Ghost 6.5. If this switch is not used,
then the naming of spanned files conforms to Microsoft application
guidelines. You do not need to use this switch when reading an existing
file. Use this switch when the first five characters in a file name must
be unique.
将跨越式[或分卷]文件的命名系统恢复到Symantec Ghost 6.5之前的Symantec
Ghost版本所使用的系统上。如果不使用此转换参数,则跨越式[或分卷]文件命名将遵循Microsoft应用程序规则。在读取现有文件时不需使用此转换参数。当文件名的前五个字符必须唯一时,请使用此转换参数。
例如:
使用-cns 不用-cns
Filename.001
Filename.002
-CRC32
The -CRC32 switch lists the files on a disk or partition or creates an
image file with CRC values and then verifies the list against the original
or a copy. The purpose is to allow both quick listing of the contents of
an image file and verification that a disk created by Symantec Ghost
contains the same files as the original.
-CRC32转换参数使您可以列出磁盘或分区上的文件列表,或创建具有CRC值的映像文件,然后对照原文件或副本校验此文件列表。其目的是快速列出映像文件的内容,并校验Symantec Ghost创建的磁盘中包含的文件是否与原始磁盘相同。
---------------------------------------------------------------------
详细说明
-CRC32转换参数用法
CRC checking works file-by-file with FAT partitions. NTFS partitions are
CRC-checked within an image file by each MFT table. It is not possible
at present to obtain a list of files failing a CRC check with an NTFS file
system. When a CRC file is created for an NTFS partition, only a single
CRC value is generated. You can also create a CRC file from an image file
and verify it against a disk.
在FAT分区上基于每个文件进行CRC检查。在NTFS分区上则在一个映像文件内按每个MFT表进行CRC检查。目前在NTFS文件系统中无法得到CRC检查失败的文件列表。创建NTFS分区的CRC文件时,只生成一个CRC值。也可以先从映像文件创建CRC文件,然后对照磁盘进行校验。
The full syntax for this switch is as follows:
此转换参数的完整语法为:
-CRC32,action={create|verify|pcreate|pverify|dcreate|dverify},src={{disk}|{partition}|{file}},crcfile={file}|{partition},vlist={file},vexcept={file}
以下参数可以与-CRC32转换参数一起使用:
表 A-7 -CRC32转换参数的参数
参数
create
说明
Create an ASCII CRC32 file from a
disk
从磁盘创建ASCII CRC32文件
verify
Verify a disk from a CRC32 file
根据CRC32文件校验磁盘
pcreate Create an ASCII CRC32 file from a
partition
从分区创建ASCII CRC32文件
pverify Verify a partition from an ASCII
CRC32 file
根据ASCII CRC32文件校验分区
dcreate Create an ASCII CRC32 file from an
image file
从映像文件创建ASCII CRC32文件
dverify Verify an image file from an ASCII
CRC32 file
根据ASCII CRC32文件校验映像文件
crcfile ASCII CRC32 file
(default=)
ASCII CRC32文件(默认值为)
vlist Verification list file
(default=)
验证列表文件(默认值为)
vexcept Verification exception file (no
default)
验证例外文件(无默认值)
-CRC32的用法示例
表 A-8 -CRC32用法示例
转换参数
-fcr
功能
Creates a CRC32 file (called
) while making an image
file.
在创建映像文件时创建CRC32文件(称为)。
-fcr=d: Creates a CRC32 file (called
) while making an image
file.
在创建映像文件时创建CRC32文件(称为)。
Creates a list of files and CRC32
-crc32,action=create,src=1,crcfilevalues for a disk.
=
创建磁盘的文件列表和CRC32值列表。
Verifies the list against an image
-crc32,action=dverify,src=x:dumpfifile.
,crcfile=
根据映像文件校验列表。
Verifies a partition on a disk with
-crc32,action=pverify,src=1:2,crcfmultiple partitions. This example
ile=:2 verifies that partition 2 on disk
1 is the same as partition 2 in the
CRC file.
在有多个分区的映像文件中校验分区。该示例校验磁盘1上的分区2与文件CRC中的分区2是否相同。
-crc32,action=create Creates an ASCII CRC32 file from
the primary hard drive. Note that
the default disk is the primary
drive. The default ASCII CRC32 file
is .
从主硬盘驱动器创建ASCII CRC32文件。请注意,默认的磁盘是主驱动器。默认的的ASCII CRC32文件是。
Creates an ASCII CRC32 file,
-crc32,action=create,src=2,. This example uses disk
= 2 as the source drive and the output
file.
创建名为的ASCII CRC32文件。此示例将磁盘2作为源驱动器和输出文件。
-crc32,action=verify Verifies the contents of the
primary disk against a default
ASCII CRC32 file, (in the
current directory). The default
disk is the primary drive. The
default verification list file is
.
对照默认的名为的ASCII
CRC32文件(在当前目录中)校验主磁盘中的内容。默认的磁盘是主磁盘。默认的校验列表文件为。
Note: If you want to keep
then copy to a new
location to ensure that it is
accessible after you restart the
computer.
注意:重启计算机后确信保留和复制在新位置时能够访问。
Verifies the contents of the
-crc32,action=verify,src=1,crcfileprimary disk, 1, against the CRC32
=,vlist= file, . Same as previous
example, but specifies the disk,
CRC file, and list file. This
example uses disk 1 as the source
drive, as the ASCII
CRC32 file, and as the
verification list file.
对照名为的CRC32文件校验主磁盘1的内容。此示例文件作为校验列表文件。
-crc32,action=verify,src=1,crcfile=,vlist=,vexcept=
Verifies the contents of the
primary disk against a CRC32 file.
Same as above with the inclusion of
the EXCEPTION argument that
excludes compared files based upon
its entries.
对照CRC32文件校验主磁盘的内容。与上例相同,只是包括了EXCEPTION
参数,其作用是根据它的项排除比较文件。
不用CRC校验的文件
The switch vexcept=filename specifies files that are not checked with CRC.
This is normally used to exclude files that are always changed on start
up. A sample exception file follows:
转换参数vexcept=filename指定了不进行CRC校验的文件。通常用来排除那些总是在启动时发生变化的文件。样本排除文件如下:
[ghost exclusion list]
PERSONALPHONE
[partition:1]
WINDOWSCOOKIES*.*
WINDOWSHISTORY*
WINDOWSRECENT*
WINDOWSTEMPOR~1CACHE1*
WINDOWSTEMPOR~1CACHE2*
WINDOWSTEMPOR~1CACHE3*
WINDOWSTEMPOR~1CACHE4*
[partition:2]
**.1
[end of list]
The exclusion list is case-sensitive. All files should be specified in
uppercase. The (*) wildcard symbol follows UNIX rules, and is more
powerful than the MS-DOS (*) wildcard. In particular, it matches the (.)
character, as well as any other character, but other characters can follow
the *. Therefore, a wildcard of *br* matches any files containing the
letters br, such as, , , and .
排除列表区分大小;所有文件都应为大写。通配符*遵循UNIX规则,而且比MS-DOS中*通配符的功能更强大。具体说来,它不仅匹配.号和任何其他字符,而且*号后可以跟其他字符。因此,通配符* br*匹配包含字母“br”的所有文件,如、和。
The specification of WINDOWSCOOKIES*.* in the previous example means
match all files in the WINDOWSCOOKIES subdirectory that have
extensions. To match all files with or without extensions, use
WINDOWSCOOKIES*.
上例中的WINDOWSCOOKIES*.*意味着匹配子目录WINDOWSCOOKIES中所有带扩展名的文件。若要匹配所有带扩展名或不带扩展名的文件,请使用WINDOWSCOOKIES*。
Use short file names in exclusion files. Files specified before the first
[Partition:x] heading are used to match files in any partition.
在排除文件中使用短文件名。在第一个[Partition:x]标题前指定的文件用于匹配所有分区中的文件。
A directory of * matches any subdirectory, regardless of nesting. The
previous exclusion file matches any file with an extension of .1 in any
subdirectory on the second partition. Apart from this, use wildcards for
files, not for directories.
用*号表示的目录匹配任何子目录,不管是否有嵌套。第二个分区上任何子目录中扩展名为.1的文件都是前面要排除的文件。除此之外,通配符只用于文件,而不用于目录。
---------------------------------------------------------------------
-crcignore
Ignores CRC errors. CRC errors indicate data corruption. This switch
overrides CRC error detection and may allow a corrupted image file to be
used. Using this switch leaves the corrupted files in an unknown state.
You can use this switch to help you extract files from a corrupted image
file.
忽略CRC错误。CRC错误表明存在损坏的数据。此转换参数忽略CRC错误检查,可能允许使用已损坏的映像文件。使用此转换参数使已损坏的文件处于未知状态。使用此转换参数可以帮助您解压缩已损坏的映像文件。
-cvtarea
Creates a file, , that is the location of the MFT when the FAT32
partition is converted to NTFS. This switch operates in a similar manner
to the cvtarea program that Microsoft provides in on the
Windows XP installation CD. For more information, see the Microsoft Web
site:
/whdc/system/winpreinst/
创建名为的文件,该文件是FAT32分区转换成NTFS时MFT的位置。此转换参数使用与Microsoft在Windows XP安装光盘上的中提供的cvtarea程序相似的方式操作。详细信息请参见微软网站:
/whdc/system/winpreinst/
The file is created in the root directory of the partition during a
partition or disk restore and is created as a contiguous space on the disk.
The largest size allowed is 4 GB. If the file is larger than this, it is
truncated to 4 GB.
此文件可以在分区或磁盘还原时在分区的根目录下创建,也可以作为磁盘上的相邻空间创建。所允许的最大大小为4GB。如果此文件超过了这个大小,则此文件将被截为4GB。
此转换参数的语法如下:
-cvtarea,filename=xxx,size=yyy{%disk,%free,KB,MB,GB},firstcluster=zzz{%disk,%free,KB,MB,GB}
有如下默认设置:
filename
size 12%disk
firstcluster 1|3 GB|33%disk
默认值为:
● 如果分区大小小于2GB,则为分区大小的1/3
● 如果分区大小小于6GB,则为1 GB
● 如果分区大小等于或大于6 GB,则为3GB
-dd
Dumps disk metrics information to the dump log file, . The
file location can be altered using the -dfile=filename switch.
将磁盘规格方面的信息转存到转储日志文件中。该文件的位置可用-dfile=filename转换参数进行更改。
-dfile=filename
Changes the path and file name of the dump log file created using the -dd
switch.
更改用-dd转换参数创建的转储日志文件的路径与文件名。
-disabledrive=drive
The specified drive is not available in the file requestor dialogs. You
can use this switch with only.
在要求对话框中指定驱动器为无效。只能在下使用该转换参数。
-dl=number
Specifies the number of hard disks present. Valid numbers are between 1
and 8. This may help when the BIOS does not report the number of drives
correctly.
指定现有硬盘的数量。有效数值介于1到8之间。当BIOS不能正确地报告驱动器的数目时,此转换参数会有用。
-dlist=drives
Specifies a list of drives to search for span files. If a span file cannot
be found, then the drive letters in dlist are substituted one by one to
look for the file on other drives.
For example, the command ghost -dlist=CDEFG instructs Symantec Ghost to
look for files on C, D, E, F, and G drives. The path remains the same.
指定要从中搜索跨越式[或分卷]文件的驱动器的列表。如果未找到跨越式[或分卷]文件,则将逐个置换dlist中的驱动器号以查找其他驱动器上的文件。
例如,命令ghost -dlist=CDEFG指示Symantec Ghost查找C、D、E、F和G驱动器上的文件。路径仍保持原样。
-f32
Lets Symantec Ghost convert all FAT16 volumes to FAT32 volumes when the
destination partition to convert is larger than 256 MB in size. Ensure
that the installed operating systems can access the volumes that will be
converted to support FAT32.
允许Symantec Ghost在要转换的目标分区的大小超过256 MB时,将所有的FAT16卷都转换成FAT32卷。确保已安装的操作系统可以访问要转换成支持FAT32的卷。
-f64
Lets Symantec Ghost resize FAT16 partitions to be larger than 2047 MB using
64 KB clusters. This is only supported by Windows NT and Windows 2000.
Do not use on computers with other operating systems.
允许Symantec Ghost将FAT16分区调整为使用64KB簇及大于2047MB的分区。此转换参数只有Windows NT和Windows 2000操作系统才支持,请不要在其他操作系统的计算机上使用。
-fatlimit
Limits the size of FAT16 partitions to 2047 MB. Useful when Windows NT
FAT16 partitions are present on the disk and 64 KB clusters are not wanted.
将FAT16分区的大小限制最大为2047MB。当磁盘上有Windows NT FAT16分区并且不需要64KB簇时,此转换参数非常有用。
-fcr
Creates a CRC32 file, , while creating an image file.
在创建映像文件时创建CRC32文件(即)。
-fdsp
Preserves the signature bytes on the destination disk when performing a
disk-to-disk or image-to-disk cloning operation.
当执行磁盘到磁盘或映像到磁盘的克隆操作时,保留目标磁盘上的签名[或特征]字节。
-fdsz
Clears the signature bytes on the destination disk. This is the default
for disk-to-disk and image-to-disk operations.
清除目标磁盘上的签名[或特征]字节。这是执行磁盘到磁盘或映像到磁盘的默认操作。
-femax
When an extended partition is created in a disk-to-disk or image-to-disk
operation, the femax switch ensures that the extended partition takes up
all free space.
当使用磁盘对磁盘或映像对磁盘操作创建扩展分区时,femax转换参数能确保扩展分区占用所有可用空间。
-fgpt
Forces the disk to restore to a GPT disk.
强制磁盘还原到GPT磁盘。
-ffatid
Forces the FAT partition id. This switch changes the partition id to the
recommended partition id for the FAT partition within the destination
image file or the destination partition table. This switch only takes
effect if the source is a disk or partition, not an image file.
For example, if you are cloning a partition of type 0xA0 (some unknown
partition id), and Symantec Ghost sees it as a valid FATx
(FAT12/FAT16/FAT32) partition, then the partition id is changed from 0xA0
to FATx.
This was default Symantec Ghost behavior before Symantec Ghost 7.5. This
switch allows for backward compatibility.
强制FAT分区ID。此转换参数在目标映像文件内或目标分区表内将分区更改为推荐给FAT分区的分区ID。此转换参数仅在源为磁盘或分区而不是映像文件时才有效。
例如,如果正在克隆0xA0类(某些未知的分区ID)分区,而且Symantec Ghost将它视为有效的FATx (FAT12/FAT16/FAT32)分区,则此分区ID将从0xA0更改为FATx。
这是在Symantec Ghost 7.5之前默认的Symantec Ghost状态。此转换参数允许后向兼容。
-ffi
Prefers the use of direct IDE access for IDE hard-disk operations.
对IDE硬盘操作优先使用直接IDE访问。
-ffs
Prefers the use of direct ASPI/SCSI disk access for SCSI hard-disk
operations.
对SCSI硬盘操作优先使用直接ASPI/SCSI磁盘访问。
-ffx
Prefers the use of Extended Interrupt 13h disk access for hard-disk
operations.
对硬盘操作优先使用扩展中断13h磁盘访问。
-finger
Shows the fingerprint details written on a hard disk created by Symantec
Ghost. The fingerprint details include the process used to create the disk
or partition and the time, date, and disk on which the operation was
performed.
显示写入Symantec Ghost所创建硬盘上的指纹[或鉴别性标记]详细资料。该指纹[或鉴别性标记]详细资料包括创建磁盘或分区的过程和执行操作的时间、日期及磁盘。
Reports the presence of a Ghost fingerprint with the following return
code:
报告目前Ghost 指纹[或鉴别性标记]资料并显示下列返回代码:
If any of the disks that Ghost can access have a fingerprint: 1 如● 果Ghost能访问磁盘则指纹代码为:1。
If none of the disks that Ghost can access have a fingerprint: 0 如● 果Ghost不能访问磁盘则指纹代码为:0。
If the computer has no disk or none of the disks can be accessed: 2
● 如果计算机没有磁盘或磁盘不能访问则指纹代码为:2。
-fis
Uses all available disk space when creating partitions. By default,
Symantec Ghost often leaves a small amount of free space at the end of
the disk. Because partitions must be aligned to cylinder boundaries,
Symantec Ghost may leave up to 8 MB free even when -fis is specified.
创建分区时使用全部可用的磁盘空间。默认情况下,Symantec Ghost在磁盘的末尾留下一小部分空闲空间。因为分区必须与柱面的边界对齐,因此即使指定了–fis,Symantec Ghost也最多只能留下8MB的空闲空间。
-fmbr
Forces the disk to restore to a MBR-based disk.
强制磁盘还原到可启动的磁盘。
-fni
Disables direct IDE access support for IDE hard-disk operations.
禁止对IDE硬盘操作使用直接IDE访问支持。
-fns
Disables direct ASPI/SCSI access support for SCSI hard-disk operations.
禁止对SCSI硬盘操作使用直接ASPI/SCSI访问支持。
-fnx
Disables extended INT13 support for hard-disk operations.
禁止对硬盘操作使用扩展中断13支持。
-force1394
Forces FireWire support to start, even when the FireWire controller is
being run by something else. The -force1394 switch attempts to take over
the FireWire Host Controller. To enable native BIOS support you must
restart the computer.
强制1394火线设备支持。即使1394控制器正被运行。当克隆操作完成后该命令试图接管主机1394控制器。必须重启计算机后本地BIOS才能打开支持。
Note the following:
● Use this switch with caution.
Avoid using the force1394 switch to take over a FireWire controller from
a driver, for example, Iomega FireWire drivers. You may encounter
● problems if you do this.
注意下列:
● 谨慎使用该转换参数。
避免使用该命令从驱动器接管1394控制器,如Iomega 1394驱动器。如果使● 用将遇到问题。
-forceusb
Forces USB support to start, even when the USB controller is being run
by something else. The -forceusb switch attempts to take over the USB Host
Controller and then attempts to return it to the previous state once the
Ghost operation is complete. This works for controllers as follows:
EHCI controllers with BIOS support are taken over and then returned to
● the BIOS.
UHCI controllers with BIOS support are taken over and then returned to
● the BIOS.
For example, the keyboard is returned after the Ghost operation is
finished.
OHCI controllers with BIOS support are taken over but not returned to
● the BIOS.
强制USB设备支持,即使USB控制器正被运行。当克隆操作完成后该命令试图接管主机USB控制器并返回以前状态。控制器具有如下功能:
● 带BIOS支持的EHCI控制器接管并返回到BIOS。
● 带BIOS支持的UHCI控制器接管并返回到BIOS。
例如, 克隆操作完成后返回键盘。
● 带BIOS支持的OHCI控制器接管但不返回到BIOS。
Note the following:
● Use this switch with caution.
● Avoid using the forceusb switch to take over a USB controller from a
driver, for example, the Ghost peer-to-peer USB driver. You may
encounter problems if you do this.
注意下列:
● 谨慎使用该转换参数。
避免使用该命令从驱动器接管USB控制器,如Iomega USB驱动器。如果使用● 将遇到问题。
-fpr
Forces destination partitions to be resized proportionally to their
original size. By default, Ghost evenly distributes free space to the
destination partitions based on the amount of free space that is available
in each source partition. The fpr switch determines the size of the
destination partitions based on the size of the source partitions.
强制目标分区以原始大小按比率调整。默认情况下,根据每个源分区空闲空间Ghost将平等地分配目标分区空闲空间。
-fro
Forces Symantec Ghost to continue cloning even if the source contains bad
clusters.
即使源磁盘中存在坏簇,仍强制Symantec Ghost继续执行克隆。
-ftxp
This switch prevents Ghost from updating the transactional NTFS (TxF)
Resource Manager GUIDs. You can use this switch to keep the same identity
in transactions for a single computer that you are restoring from an image.
The ftxp switch maintains all existing transactions in progress instead
of flushing them as part of the volume GUID change.
该转换参数禁止Ghost从NTFS(TxF)资源管理器GUIDs中更新处理。可以使用该转换参数从映像文件中所恢复的单个计算机保持相同的处理。ftxp转换参数保留所有已经存在的更新处理而不是将它们作为GUID更改分卷的一部分抹除掉。
-fx
Causes Symantec Ghost to exit to DOS after an operation is complete. By
default, Symantec Ghost prompts the user to restart or exit when the
operation has finished. If Symantec Ghost is run as part of a batch file,
it is sometimes useful to exit back to the DOS prompt after completion
so that further batch commands are processed.
For more information, see the -rb switch.
使Symantec Ghost在操作完成后退回到DOS状态下。默认情况下,Symantec Ghost在操作完成后提示用户重启或退出。如果Symantec Ghost是作为批处理文件的一部分运行的,有时在操作完成后退到DOS状态下很有用,这样可以继续执行其他的批处理命令。
-ghostoncd
Includes on a CD/DVD when writing an image to a CD/DVD.
将映像文件写入到CD/DVD刻录光盘上,CD/DVD光盘上包括。
-h or -? or -help
Shows the Symantec Ghost command-line switch Help page.
显示Symantec Ghost命令行转换参数的帮助页面。
-hasfingerprint
Reports the presence of a Ghost fingerprint with the following:
以下列方式报告目前的克隆指纹[或鉴别性标记]资料:
● If any of the disks that Ghost can access have a fingerprint:
Display to screen: 1
Return code: 1
如果Ghost能访问任何磁盘则指纹显示为:
屏幕显示为:1
返回代码:1
● If none of the disks that Ghost can access have a fingerprint:
Display to screen: 0
Return code: 0
如果Ghost不能访问任何磁盘则指纹显示为:
屏幕显示为:0
返回代码:0
● If the computer has no disk or none of the disks can be accessed:
Display to screen: unknown
Return code: 2
如果Ghost不能访问任何磁盘及计算机没有磁盘则指纹显示为:
屏幕显示为:未知
返回代码:2
The display to the screen can be interpreted by any script language that
is executing Ghost. However, it is easiest to use the return value.
屏幕显示可理解为任何正在执行克隆的脚本语言。不管怎样,它是最容易使用的返回值。
-ia
The image all switch forces Symantec Ghost to perform a sector-by-sector
copy of all partitions. By default, when copying a partition from a disk
to an image file or to another disk, Symantec Ghost examines the source
partition and decides whether to copy just the files and directory
structure or to do a sector-by-sector copy. If it understands the internal
format of the partition, it defaults to copying the files and directory
structure.
image all转换参数强制Symantec Ghos逐个扇区的复制所有的分区。默认情况下,当复制磁盘上的分区到映像文件中或复制到另一个磁盘上时,Symantec
Ghost会检查源分区,确定是否只复制文件和目录结构,还是逐个扇区的复制。若它了解了分区的内部格式,就会默认执行复制文件和目录结构。
Generally, this is the best option. However, if a disk has been set up
with special hidden security files that are in specific positions on the
partition, the only way to reproduce them accurately on the target
partition is through a sector-by-sector copy. If you use this switch to
create an image of a dynamic disk, then the image must be restored to a
disk with identical geometry.
一般情况下这是最佳的选择。但是,如果磁盘上存在一些特殊的隐藏安全文件,
这些文件位于分区上的特定位置,要想将它们准确无误地复制到目标分区上,只能通过逐个扇区复制的方式。如果使用此转换参数创建一个动态磁盘的映像,则必须将此映像还原到具有相同结构的磁盘上。
-ial
Forces a sector-by-sector copy of Linux partitions. Other partitions are
copied normally.
强制对Linux分区进行逐个扇区的复制。其他分区按正常方式复制。
-ib
The image boot switch copies the entire boot track, including the boot
sector, when creating a disk image file or copying disk-to-disk. Use this
switch when installed applications, such as boot-time utilities, use the
boot track to store information.
在创建磁盘映像文件或执行磁盘到磁盘的复制时,image boot转换参数复制包括引导扇区在内的整个引导磁道。当已安装的应用程序(如引导时实用程序)用引导磁道保存信息时,请使用到此转换参数。
By default, Symantec Ghost copies only the boot sector and does not copy
the remainder of the boot track. You cannot perform
partition-to-partition or partition-to-image functions with the -ib
switch.
默认情况下,Symantec Ghost只复制引导扇区,不复制其余的引导磁道。用-ib转换参数无法执行分区到分区或分区到映像的功能。
-id
The image disk switch is similar to -ia (image all), but also copies the
boot track, as in -ib (image boot), extended partition tables, and
unpartitioned space on the disk. When looking at an image with -id, you
see the unpartitioned space and extended partitions in the list of
partitions. The -id switch is primarily used by law enforcement agencies
that require forensic images.
image disk转换参数与-ia (image all)类似,但是它还复制引导磁道[这一点与–ib (image boot)] 类似、扩展分区表以及磁盘上未分区的空间。当查找用-id创建的映像文件时,会在分区表中看到未分区的空间和扩展分区。-id转换参数主要针对那些需要适于法庭使用的映像文件的执法机构。
When Symantec Ghost restores from an -id image, it relocates partitions
to cylinder boundaries and adjusts partition tables accordingly. Head,
sector, and cylinder information in partition tables is adjusted to match
the geometry of the destination disk. Partitions are not resizeable. You
will need an identical or larger disk than the original.
当Symantec Ghost从-id映像还原时,重新确定分区与柱面的边界并相应地调整分区表。分区表中的磁头、扇区和柱面等信息做适当的调整,以便与目标磁盘的结构相匹配。不可调整分区大小。您需要与原始磁盘同等大小或更大的磁盘。
Symantec Ghost does not wipe the destination disk when restoring from an
-id image. Geometry differences between disks may leave tracks on the
destination disk with their previous contents.
Symantec Ghost在从-id映像还原时不擦除目标磁盘的内容。磁盘间结构的差异会在目标磁盘上遗留下它们以前内容的一些痕迹。
Use the -ia (image all) switch instead of the -id switch when copying
partition-to-partition or partition-to-image. An individual partition
can be restored from an image created with -id.
在执行分区到分区或分区到映像文件的克隆时使用-ia (image all)转换参数而不是-id转换参数。用-id转换参数创建的映像文件中可还原单个的分区。
-imgdesc
Adds a single-line image file description to the image file with the
following restrictions:
将单行的映像文件描述添加到映像文件。并有下列限制:
● Cannot include any new lines 不包括任何新的行
Cannot be used with –imgdescfile 不能与-imgdescfile转换参数一起使● 用
● Must be used with the clone switch 必须与clone转换参数一起使用
Clone switch mode must be create, dump, pcreate, or pdump Clone转换● 参数模式必须是create、dump、pcreate或pdump
-imgdescfile=filename
Specifies a text file that contains an image file description to be added
to the image file with the following restrictions:
指定包含将要添加到映像文件中的映像文件描述的文本文件。并有下列限制:
● Cannot be used with –imgdesc 不能与-imgdesc转换参数一起使用
● Must be used with the clone switch 必须与clone转换参数一起使用
Clone switch mode must be create, dump, prcreate, or pdump Clone转● 换参数模式必须是create、dump、pcreate或pdump
-ir
The image raw switch copies the entire disk, ignoring the partition table.
This is useful when a disk does not contain a partition table in the
standard PC format, or you do not want partitions to be realigned to track
boundaries on the destination disk. Some operating systems may not be able
to access unaligned partitions. Partitions cannot be resized during
restore and you need an identical or larger disk.
image raw转换参数复制整个磁盘并忽略分区表。这在磁盘未包含标准PC格式的分区表时,或不想让分区与目标磁盘上的磁道边缘重新对齐时十分有用。有些操作系统可能无法访问未对齐的分区。在还原过程中无法调整分区的大小,而且需要同等大小或更大的磁盘。
-ja=sessionnm
Connects to the GhostCast Server using the specified session name. Set
the disk and possibly partition to be cloned on the GhostCast Server.
使用指定会话名称连接到网络克隆服务。在网络克隆服务中设置需要克隆的磁盘和合理的分区。
-jaddr=
Use the IP address for the GhostCast Server.
在网络克隆服务中使用IP地址。
-jl:x=filename
Creates a log file to assist in diagnosing GhostCasting and TCP/IP
peer-to-peer problems. The amount of information logged is set by the log
level x. The log level x can be E (errors), S (statistics), W (warnings),
I (information), or A (all) in increasing order of logging detail. The
file name indicates the path and file name of the log to be created. In
general, the error and statistic levels do not affect session performance.
All other levels may reduce performance and should be used for diagnostic
purposes only.
创建日志文件以帮助诊断网络克隆和TCP/IP对等连接问题。记录的信息量由日志级别“x”设置。日志级别“x”按照记录的信息量依次递增的次序可以是
E(错误)、S(统计)、W(警告)、I(信息)或A(全部)。文件名指出了日志的创建路径和名称。一般情况下,错误和统计的级别不影响会话性能。其他三个级则有可能降低会话性能,因此只应用于诊断。
-jm=[u|d|m]
Use unicasting, direct broadcast, or multicasting.
使用单点传送、定向传送或多点传送。
-js=n
Sets to n the number of router hops Symantec Ghost is allowed to cross
in an attempt to find the GhostCast Server. (Default is 16.)
设置允许连接试图查找网络克隆服务的Symantec Ghost路由线路数目(默认为16)。
-lockinfo
Shows the type code and information stored in the BIOS or the Pentium III
Processor ID.
显示在BIOS或Pentium III处理器ID中存储的类型代码与信息。
例如:
类型 含义 值
M 制造商 Compaq
P 产品名 Deskpro EN Series SFF
V 版本 Award Software
S 序列号 H925CKH60020
U UUID 2DA9379B4707D31185E8C800A4F232BC
C 制造商/产品组合 Compaq Deskpro EN Series SFF
I PIII ID 8E72A6994A20
-locktype=Type
Lets you lock an image file for use with a specific set of computers defined
by the type chosen and the source computer.
允许锁定映像文件,以便用于选定的类型及源机器定义的一套特定的机器。
For example, ghost -locktype=P creates an image that can be used only on
systems that have the same product name type as the source computer.
例如,ghost -locktype=P创建一个映像,此映像只能用于和源计算机有相同产品名称类型的系统。
On computers with multiple processors, the processorID bios lock option
does not work as intended when running . In this situation,
do not create or restore images with the -locktype parameter set to I.
Other -locktype values work as intended.
在多处理器的计算机上,当运行时处理器IDBIOS锁定选项不能预设使用。在这种情况下,不能用-locktype参数设置为I时创建或恢复映像,另外-locktype 的值被预设。
-lpm
The LPT master mode switch causes Symantec Ghost to automatically go into
LPT master mode and is the equivalent of selecting LPT Master from the
main menu.
LPT master mode模式转换参数使Symantec Ghost自动进入LPT主模式,并且这与在主菜单中选择“LPT Master”相同。
-lps
The LPT slave mode switch causes Symantec Ghost to automatically go into
LPT slave mode and is the equivalent of selecting LPT Slave from the main
menu.
LPT slave mode模式转换参数使Symantec Ghost自动进入LPT从属模式,并且这与在主菜单中选择“LPT Slave”相同。
-mcyl=[1022|1023]
Forces the cylinder value to either 1022 or 1023 when the cylinder value
is insufficient to address the whole partition. This switch works in DOS
only.
当柱面值不足以满足总个分区时强制柱面值为1022或1023。该转换参数只能于DOS下。
When Ghost restores the partitions on an MBR disk, it initializes the
starting sector, the sector count, and ending sector of the partition.
Ghost stores the starting sector and ending sector in an MBR disk as a
cylinder, head, and sector address. Ghost also stores an absolute start
sector and count. The cylinder value has a maximum value of 1023.
However, the cylinder maximum of 1023 is often insufficient to represent
the size of the partition. When the cylinder maximum is insufficient, the
cylinder is set to a predetermined value. Ghost sets the cylinder maximum
to 1022 for FAT partitions and 1023 for other partitions. For some tools,
the cylinder value must be set specifically for the tool to recognize that
it is insufficient.
在主引导记录磁盘上恢复分区时,它将调整启动扇区大小、扇区数目以及分区的结束扇区。Ghost存储启动扇区和结束扇区在主引导记录磁盘上象柱面、磁头、扇区地址。Ghost也存储一个独立的启动扇区和数目。柱面值最大为1023。
但是,最大为1023柱面值经常不足以表示分区的大小。当柱面值最大还不足时,柱面将设置成一个预定的值。FAT分区Ghost设置柱面最大为1022,而其他分区为1023。针对某些工具,柱面值必须设置为特定值以便该工具能够识别出不足。
-noauto
Disables the automatic naming of spanned image files during creation. The
user is prompted for confirmation of the next destination location for
the remainder of the image file that is being restored.
在创建过程中禁用自动命名跨越式[或分卷]映像文件。系统将提示用户确认正在还原的映像文件所剩部分的下一个目标位置[即下一分卷的位置]。
-noautoskip
Includes the hibernation and skip files in the image file. These files
are excluded by default.
包括映像文件中的休眠和跳过文件。默认情况下不包含这些文件。
-nofile
Disables the Image File Selection dialog box. Useful when opening
directories with large numbers of files and slow links.
禁用映像文件选择对话框。在打开的目录中包含大量文件且链接速度过慢的时候使用。
-noide
Disables access to IDE devices. This is equivalent to -fni for IDE disks,
but noide also affects ATAPI CD writers, tape drives, and other IDE
devices.
禁用对IDE设备的访问权限。 这与-fni(禁止对IDE硬盘操作使用直接IDE访问支持)类似。但noide禁用还包括ATAPI光盘刻录机、磁带驱动器及其他IDE设备。
-noindex
Prevents Symantec Ghost from creating an index when creating an image
file. This slightly reduces the size of the image file and saves memory,
but Ghost Explorer is much slower in reading the image file. This switch
is useful if you are saving an image file from a large disk with very little
memory.
防止Symantec Ghost在创建映像文件时创建索引。这可略微减少映像文件的大小并节省了内存,但是Ghost浏览器在读取映像文件时将很慢。当使用小内存保存大磁盘上的映像文件时,此转换参数很有用。
-nolilo
Does not attempt to patch the LILO or GRUB boot loader after a clone. If
you use the -nolilo switch, you can restart your computer from a floppy
disk or CD after a clone and then run /sbin/lilo or the GRUB install script
as the root user to reinstall the boot loader.
不在克隆后尝试修补LILO或GRUB引导装载程序。如果使用-nolilo转换参数,则在克隆后需要从软盘或CD启动,然后作为根用户运行/sbin/lilo或GRUB安装脚本来重新安装启动引导记录。
-noscsi
Disables access to SCSI devices using ASPI. This is equivalent to -fns
for SCSI disks, but noscsi also affects SCSI CD writers, tape drives, and
other SCSI devices.
禁用通ASPI访问SCSI设备。这与-fns(禁止对SCSI硬盘操作使用直接ASPI/SCSI访问支持)类似,但noscsi禁用还包括SCSI光盘刻录机、磁带驱动器及其他SCSI设备。
-no1394
Disables FireWire support.
禁止1394火线设备支持。
-nousb
Disables USB support.
禁止USB设备支持。
-ntc-
Disables NTFS contiguous run allocation.
禁用NTFS相邻运行分配。
-ntchkdsk
Sets the CHKDSK bit set on a copied NTFS volume. This causes Windows NT
to check the integrity of the volume when it is started.
设置复制过的NTFS卷上的CHKDSK位集。这使Windows NT在启动时检查卷的完整性。
-ntd
Enables NTFS internal diagnostic checking.
启用NTFS内部诊断检查功能。
-ntexact
Attempts to arrange the restored NTFS volume in the same way as the source
volume.
试图用与源分卷相同的方式对齐还原后的NTFS分卷。
-ntic
Ignores the NTFS volume CHKDSK bit. Symantec Ghost checks the CHKDSK bit
on an NTFS volume before performing operations. When Symantec Ghost
indicates that the CHDSK bit is set, you should run CHKDSK on the volume
to ensure that the disk is in a sound state before cloning.
忽略NTFS卷CHKDSK位。Symantec Ghost在执行操作前先检查NTFS卷上的CHKDSK位。当Symantec Ghost指出CHKDSK位已被设置,最好在卷上运行CHKDSK以确
保磁盘在克隆前处于良好状态。
-ntiid
This switch forces Symantec Ghost to ignore the partition table system
ids and instead to check the partition contents when detecting NTFS file
systems. This switch is useful when the system id is not set to 0x07 for
partitions containing NTFS file systems. The partitions would otherwise
be inefficiently imaged sector-by-sector. This switch can be used when
it is necessary to image a Windows NT4 FTDisk mirrored partition. Take
care when using this switch. Do not use the -ntiid switch with volume sets
and stripe sets.
默认情况下,Symantec Ghost使用image all逐个扇区复制。此转换参数强制Symantec Ghost忽略Windows NT卷集的分区状态,并将分区作为NTFS分区进行映像,以便以逐个文件为基础智能地映像该分区。不要将-ntiid转换参数用于卷集[volume sets]和条带集[stripe sets]。
To clone mirrored partitions (also known as Windows NT software RAID
partitions), do the following:
1 With Windows NT disk administrator, break the mirror set.
2 Using the -ntiid switch, clone one of the mirror partitions.
3 Resize as desired. Partitions can only be resized by Symantec Ghost
during a disk operation. When performing a partition operation, the target
partition size must already be established.
4 After cloning, recreate the mirror set using the Windows NT disk
administrator. The disk administrator creates the partitions in the
mirror set.
克隆镜像的分区(也称为Windows NT 软件RAID分区)
1 使用Windows NT磁盘管理程序断开镜像集。
2 使用-ntiid转换参数克隆任一镜像分区。
3 根据需要调整大小。分区的大小只能由Symantec Ghost在磁盘操作中调整。要执行分区操作,事先必须建立目标分区大小。
4 克隆结束后,使用Windows NT磁盘管理器重新创建镜像集。磁盘管理程序将在镜像集中创建分区。
-ntil
Ignores NTFS log file check (inconsistent volume).
忽略NTFS日志文件检查(不一致的卷)。
-or
The override switch allows the override of internal space and integrity
checks and lets you put a very big image into a small partition. The
operation fails if it is unable to write to the limited partition size.
This switch lets you override spanning, which fails if there is limited
space. Avoid using this switch.
Override转换参数允许忽略内部空间和完整性检查,并使您可以将一个很大的映像放到一个小分区中。如果无法写入到有限的分区大小,则操作失败。此转换参数使您可以忽略跨越[或分卷],如果空间有限,则此操作失败。避免使用该转换参数。
-pfile
Saves the File Preservation Metadata File that holds the location of
preserved files to a specified location. By default, it is saved to the
current directory.
For example,
ghost - pfile=c:pathname
Where pathname is the directory for the File Preservation Metadata File.
指定位置保存超级数据文件保管箱[Preservation Metadata File]。默认为保存在当前目录下。
例如:
ghost - pfile=c:pathname
这里路径名是超级数据文件保管箱[Preservation Metadata File]的目录。
-pmbr
Specifies that the master boot record of the destination disk is to be
preserved when performing a disk-to-disk or image-to-disk operation.
当执行磁盘对磁盘或映像对磁盘的克隆操作时,指定对目标磁盘的主引导记录进
行保留。
-prefghst
If Symantec Ghost has a choice, it attempts to use internal Ghost file
system access as opposed to using the operating system for file system
access.
This switch is intended for use under instruction from Symantec Technical
Support when troubleshooting.
如果Symantec Ghost有选项,它将试图使用内部Ghost文件系统存取而不是使用操作系统的文件系统存取。
该转换参数预设用户在赛门铁克技术支持下进行指导。
-prefos
If Symantec Ghost has a choice, it attempts to use the operating system
for file system access as opposed to using the internal Ghost file system
access.
This switch is intended for use under instruction from Symantec Technical
Support when troubleshooting.
-preserve
Preserves files specified by the preservedest switch. The task fails if
the specified files do not exist. To preserve files or directories other
than the image file, the syntax is as follows:
-preserve=filepath[=newpath] [,filepath[=newpath]...]
Each filepath can refer to an individual file or a directory. All files
and subdirectories of a specified directory are preserved. If a file does
not exist, then the restore fails. After a Clone step in a task, all
preserved files are added back to the partition specified by the
-preservedest=n switch, renaming them to newpath where specified. You
must use -preserve with -preservedest.
If you are running Ghost from a CD, you must use the -pfile switch with
the -preserve command. You also must specify a writeable location for the
file-preservation metadata file. Otherwise, Ghost tries to write the
file-preservation metadata file to the CD. Because the CD is read-only.
the data cannot be written, and the process fails.
通过preservedest转换参数指定保存的文件。如果指定文件不存在则任务失败。保存除映像文件以外的文件或目录,语法如下:
-preserve=filepath[=newpath] [,filepath[=newpath]...]
每个文件路径引用单个文件或目录。指定目录下所有文件和子目录将被保存。如果一个文件不存在则还原失败。克隆任务完成后,所有保存的文件将通过-preservedest=n转换参数添加回指定的分区,或者重命名它们到指定的新路径。必须使用带-preservedest的-preserve参数。
如果从光盘运行Ghost,必须使用带-preserve命令的-pfile转换参数。也必须为超级数据文件保管箱指定可写的位置,否则Ghost将试图将超级数据文件保管箱写入光盘。因为光盘是只读的,数据不能写入从而导致操作失败。
-preservedest=n
Where n is the number of the partition relative to the destination disk,
not relative to the partitions being restored. Specifies the partition
to which files specified with the preserve switch are restored.
这里n是目标磁盘相关的分区号,而不是被还原的分区号。指定用preserve转换参数还原的文件的分区。
-preservedimage deleteafterclone
Deletes a preserved image file once the restore has completed
successfully. This switch overrides the default, which is to retain the
preserved image file.
一旦还原完全成功,忽略被保存的映像文件。
-preserveifexists
Preserves files specified by the preservedest switch if they exist. The
task does not fail if the specified files do not exist. To preserve files
or directories other than the image file, the syntax is as follows:
-preserveifexists=filepath[=newpath] [,filepath[=newpath]...]
通过preservedest转换参数保存指定文件。从映像文件中保存文件或目录,语法如下:
-preserveifexists=filepath[=newpath] [,filepath[=newpath]...]
Each filepath can refer to an individual file or a directory. All files
and subdirectories of a specified directory are preserved. If a file does
not exist, then the restore fails. After a Clone step in a task, all
preserved files are added back to the destination specified by the
-preservedest=n switch, renaming them to newpath where specified. You
must use the -preserveifexists switch with -preservedest.
每个文件路径指定单个文件或目录。指定目录下的所有文件和子目录将被保存。如果文件不存在,恢复失败。
-pwd and -pwd=x
Specifies that password protection be used when creating an image file.
指定创建映像文件时使用密码保护。
x indicates the password for the image file. If no password is given in
the switch, Symantec Ghost prompts for one. You can enter a maximum of
10 alphanumeric characters.
x表示映像文件的密码。如果此转换参数中没有给出密码,Symantec Ghost会提示输入一个。可以输入最大长度为10个字母的字符。
-quiet
The quiet mode switch disables status updates and user intervention.
操作过程中禁用状态更新和用户干预。
-rb
Restarts after finishing a restore or copy. After completing a restore
or copy operation, the target computer must be restarted so that the
operating system can restore the new disk/partition information.
完成还原或复制后重启计算机。完成还原或复制操作后,必须重启目标计算机,以便其操作系统还原新的磁盘/分区信息。
Normally, Symantec Ghost prompts the user to restart or exit. The –rb
switch tells Symantec Ghost to restart automatically after it completes
the restore or copy. This is useful when automating Symantec Ghost in a
batch command file.
For more information, see the -fx switch.
正常情况下,Symantec Ghost会提示用户重启或退出。-rb转换参数告知
Symantec Ghost在完成还原或复制后自动重启计算机。这在批处理命令文件中自动操作Symantec Ghost时很有用。
-recover
Sets the default to recover preserved files if a previous restore has
failed and the File Preservation Metadata File still exists. If this
switch is not used, the default is set to abort.
如果先前恢复失败且超级数据文件保管箱[Preservation Metadata File]仍然存在则设置默认还原保存文件。如果不使用该转换参数,默认是设置为中断。
-script
Allows you to specify a series of commands (one per line) that Symantec
Ghost will execute in sequential order.
允许指定一系列命令(每行一个),Symantec Ghost将按顺序执行这些命令。
例如:
ghost -script=
下面是的一个示例:
-clone,mode=create,src=2,dst=1:
-chkimg,1:
-clone,mode=create,src=2,dst=c:
-chkimg,c:
在该例中1:1相当于c: 。
-skip=x
The skip file switch causes Symantec Ghost to exclude the indicated files
during a create or restore operation. A skip entry can specify a single
file, a directory, or multiple files using the * wildcard. File names must
be given in short file name format and all path names are absolute. Only
FAT system files can be skipped. It is not possible to skip files on NTFS
or other file systems. The skip switch may only be included in the command
line once. To specify multiple skip entries, they must be included in a
text file indicated using -skip=@skipfile. The format of the skip text
file, skipfile, matches the format used with the CRC32 vexcept option.
skip file转换参数使Symantec Ghost在执行创建或还原操作过程中排除所指示的文件。跳过的项目可以是指定的一个文件、目录或是由*通配符表示的多个文件。指定文件名时必须使用短格式,所有路径都必须是绝对路径。只可以跳过FAT系统文件。不能跳过NTFS或其他文件系统上的文件。Skip转换参数可能只命令行中包含一次。若要指定多个跳过的项,则必须将这些项在用-skip=@skipfile表示的文本文件中。跳过的文本文件skipfile的格式与CRC32
vexcept选项所使用的格式一致。
例如:
● -skip=
跳过Skips the file in the Windows directory.
● -skip=*
跳过所有目录中名为
● -skip=ghost*.dll
跳过Ghost目录中所有带.dll扩展名的文件。
● -skip=progra~1
跳过program files 目录(注意短文件名)。
● -skip=@
跳过 中所列出的文件。例如,如果包含:
**.tmt
[partition:1]
windows
**.exe
[Partition:2]
**
这些内容表示将跳过任何分区上的所有*.tmt文件、Windows 目录、第一个分区上的所有*.exe 文件以及第二个分区上任何以结尾的文件。
版权声明:本文标题:Ghost-v11命令行参数说明-中英文 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/xitong/1707652026a203126.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论