Symantec 10024709 User Manual

Page of 221
171
Command-line switches
Clone switch usage
ghost.exe -clone,mode=pcopy,src=
1:2,dst=2:1 -sure
Copies the second partition of local 
disk one to the first partition of local 
disk two, without the final warning 
prompt.
ghost.exe -clone,mode=restore,
src=e:\savedsk.gho,dst=1-sure
Restores the disk image file 
Savedsk.gho 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.
ghost.exe -clone,
mode=pcreate,src=1:2,dst=g:\part2.gho
Saves the second partition of disk one 
to an image file on mapped network 
drive G.
ghost -clone,
mode=prestore,src=g:\part2.gho:2,dst=1:2
Restores partition two from a two-
partition image file on mapped drive 
G onto the second partition of the 
local disk.
ghost.exe -clone,mode=restore,src=
g:\2prtdisk.gho,dst=2sze1=60P,sze2=40P
Restores disk two from an image file 
and resizes the destination partitions 
into a 60:40 allocation.
ghost.exe -clone,mode=copy,src=
1,dst=2,sze2=F
Clones a two-partition disk and keeps 
the second partition on the 
destination disk the same size as on 
the source disk, and lets the first 
partition use the remaining space, 
leaving no unallocated space.
ghost.exe -clone,
mode=create,src=1,dst=2:3\image.gho
Saves disk one to the image file 
image.gho located on the third 
partition of the second disk.
This works only if the third partition 
of the second disk is NTFS file system.
Table A-6
Clone switch usage examples
Switch
Function