SoFunction
Updated on 2025-04-10

Detailed introduction to the usage of Norton Ghost batch commands


Restore disk

First, make a startup disk, including,,, files (can be completed with Windows as the startup disk program).
The following commands can be included:
-clone,mode=pload,src=d:\,dst=1:1-fx-sure-rb
Automatically restore the files on the d disk, and automatically pop up after the end and restart.
Automatically backup in Area C and generate backup files in Area D.
-clone,mode=pdump,src=1:1,dst=d:\-fx-sure-rb

Restore the CD

Includes files:,,(CDROM executor),(ATAPICDROM compatible driver),
Contents are:
DEVICE=/D:IDECD001
Contents are:
/D:IDECE001/L:Z
Ghost-clone,mode=load,src=z:\,dst=1:1-sure-rb

The examples can be modified according to the following specific description

-Clone must be used with parameters. It is also the most practical one among all switch{batchswitch}. Below are the parameters defined by clone
-clone,
mode={copy│load│dump│pcopy│pload│pdump},
src={drive│file│drive:partition},
dst={drive│file│drive:partition}
mode specifies which clone to use commands provided by
copy hard disk to hard disk copy (disktodiskcopy)
Restore the load file to the hard disk (filetodiskload)
dump makes hard disk into image files (disktofiledump)
PPCY partition to partition copy (partitiontopartitioncopy)
Restore the load file to partition (filetopartitionload)
Backup the pdump partition into an image file (partitiontofiledump)

src specifies the location pattern and its significance of the source partition used by ghost runtime

Example of parameters used by the ode command src corresponding to the mode command
COPY/DUMP
Source hard disk number.
1 represents the first hard disk

LOAD image file name
g:\back98\ or device name (drive)

PCOPY/PDUMP
Source partition number.
1:2 represents the second partition of hard disk 1

PLOAD partition image file name plus partition number or drive name plus partition number.
g:\back98\setup98.gh2 represents the second partition in the image file

The target position mode used when dst runs Ghost and its significance:
Example of parameters used by mode command dst in mode command
COPY/DUMP destination hard disk number.
2 represents the second hard disk

LOAD hard disk image file name.
Example g:\back98\

PCOPY/PLOAD destination partition number.
2:2 represents the second partition of hard disk 2

PDUMP partition image file name plus partition number.
g:\back98\setup98.gh2

SZEn specifies the size of the destination partition used
n=xxxxMSpecifies that the size of the n-th destination partition is xxxxMBSZE2=800M means that the size of partition 2 is 800MB
n=mmP specifies that the size of the destination partition n is mm percentage of the entire hard disk.
Other parameters
-fxo When a bad block appears in the source object, force copying continues
-fx When ghost completes the new system work, it does not display "pressctrl-alt-deltoreboot" and returns directly to DOS

-ia fully performs sector-to-sector copying. When copying a partition from one image file or from another hard disk as the source, Ghost will first check the source partition and then decide whether to copy the file and directory structure or image copy (sector to sector). The preset is this form. But sometimes, some hidden files related to system security may be placed in a specific location on the hard drive. Only by using sector-to-sector copying can you copy correctly
-pwdand-pwd=x Encrypt image files

-rb After the restore or copy is completed, let the system restart

-sure can be used in conjunction with clone. Ghost will not display the prompt message "proceedwithdiskclone-destinationdriven?"

I have fully understood the above parameters from today, we will no longer have to deal with the GHOST interface.