Norton Ghost Batch Command usage detailed introduction 1th/2 page _dos/bat

Source: Internet
Author: User
. Basic format for Ghost batch files
Ghost-clone,mode={copy│load│dump},src={drive│file│drive:partition},dst={dri-ve│file│drive:partition}/fro/fx/rb /f32/z (n)/sure{other parameters}

The meaning and usage of the main parameters are as follows:

-clone:clone in English is the meaning of "cloning", where it is a fixed format, meaning to force the execution of Ghost.exe by parameter.

Mode=: This parameter is used to set the Ghost.exe usage pattern, there are six modes to choose from: Copy, pcopy, load, pload, dump, Pdump. In which, copy, load, dump refers to the hard drive to the hard disk operation, plus P (pcopy, Pload, Pdump) in the same mode for the hard disk partition operation. As "mode=copy" means to clone the data of one hard disk to another on a hard disk of the same capacity or greater capacity, adding p (mode=pcopy) means cloning one partition's data to another partition. "Mode=load" means to extract the mirrored file back to the hard disk (or partition), and "mode=dump" means to make the hard disk (or partition) a mirrored file.

Src=: This parameter is used to set the data source location, with 1, 2, 3 ... Represents a different source, such as "Src=1:1" indicates that the data originates from the primary disk partition, and "Src=2:2" indicates that the data originates from the second partition of the disk, "SRC=D:\GHOST\SYSBAK.GH1" Indicates that the data to be extracted originates from the Sysgbak.gho file in the Ghost directory of the secondary partition of the primary disk.

dst=: This parameter sets the target location of the data, the same usage as SRC. If "dst=1:1" means to restore the extracted data to the first partition of the primary disk, "dst=2:2" means to restore to the secondary partition from the disk, "DST=D:\GHOST\SYSBAK.GH1" Indicates that the backed-up data is saved as a Sysgbak.gho file in the Ghost directory of the second partition of the primary disk.

/fro: This parameter means skipping all errors during the cloning process and recommending that you avoid using them.

/FX: After the execution of the program automatically exits, back to the operating system. This parameter can be used when making a mirrored file and recovering a non-system partition, but is used when recovering the system partition and may cause a panic (refer to/RB when restoring the system partition).

/RB: Forces the system to reboot after the program has finished executing.

/F32: Converts the FAT16 format to FAT32 format.

/z (n): Sets the compression rate of the mirrored file, used only when making the mirrored file. Among them, n=1 (/Z1) means that the image file is not compressed, n=2 (/Z2) for rapid compression, n=3~9 with a high proportion of compression. In the actual use, the author recommended the use of/Z2 (fast compression), its speed and/z1 (not compression) basically no difference, mirror file is a lot smaller. But if your hard drive capacity is not very large, it is recommended to use/Z9.

/sure: Automatically answers "yes" to all prompts. In the Ghost.exe graphical interface operation, the program pops up some dialog boxes asking if it's definitely done, usually with "yes" and "Cancel" two options,/sure automatically chooses "yes" to ensure that no manual interference is required in the cloning process.

In my case, I set up a directory named Ghost in D disk, and the mirrored file in section C is named Sysbak.gho. The contents of the two batch files are as follows:

Sysback.bat (Backup):

Ghost-clone,mode=pdump,src=1:1,dst=d:\ghost\sysbak.gh1/fx/z9/sure

Revert.bat (recovery):

Ghost-clone,mode=pload,src=d:\ghost\sysbak.gh1,dst=1:1/SURE/RB

. Ghost Parameter Detailed example (above you can not look at but here must be seen, but also to be well recorded)

Ghost.exe-clone,mode=copy,src=1,dst=2-sure
Hard drive to Cuff

Ghost.exe-clone,mode=pcopy,src=1:2,dst=2:1-sure
Copy the second partition of the hard drive to the first partition on the second hard drive

Ghost.exe-clone,mode=pdump,src=1:2,dst=g:\bac.gho
Put the second partition of one hard drive into the image file into the G partition

Ghost.exe-clone,mode=pload,src=g:\bac.gh2,dst=1:2
From an internal two-partition image file, restore the second partition to the second partition on the hard disk

Ghost.exe-clone,mode=pload,src=g:\bac.gho,dst=1:1-FX-SURE-RB
Restore C disk with Bac.gho file in G disk. When complete, do not display any information and start directly.

ghost.exe-clone,mode=load,src=g:\bac.gho,dst=2,sze1=60p,sze2=40p
Restore the image file to a second hard disk and modify the partition size scale to 60:40
Current 1/2 page 12 Next read the full text

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.