Command-line switches

Clone switch usage

171

Table A-6

Clone switch usage examples

 

 

 

Switch

 

Function

 

 

ghost.exe -clone,mode=pcopy,src=

Copies the second partition of local

1:2,dst=2:1 -sure

 

disk one to the first partition of local

 

 

disk two, without the final warning

 

 

prompt.

 

 

ghost.exe -clone,mode=restore,

Restores the disk image file

src=e:\savedsk.gho,dst=1-sure

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,

 

Saves the second partition of disk one

mode=pcreate,src=1:2,dst=g:\part2.gho

to an image file on mapped network

 

 

drive G.

 

 

 

ghost -clone,

 

Restores partition two from a two-

mode=prestore,src=g:\part2.gho:2,dst=1:2

partition image file on mapped drive

 

 

G onto the second partition of the

 

 

local disk.

 

 

ghost.exe -clone,mode=restore,src=

Restores disk two from an image file

g:\2prtdisk.gho,dst=2sze1=60P,sze2=40P

and resizes the destination partitions

 

 

into a 60:40 allocation.

 

 

ghost.exe -clone,mode=copy,src=

Clones a two-partition disk and keeps

1,dst=2,sze2=F

 

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,

 

Saves disk one to the image file

mode=create,src=1,dst=2:3\image.gho

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.

 

 

 

Page 171
Image 171
Symantec 10024709 manual Table A-6