Internet cafes are generally used in the disc workstation. Because of the cause of system crash, the backup of hard disk data is always very heavy. I want to ghost is the most common hard disk operating tool. When step by step Operation may have a lot of time, here to share the use parameters of GHOST, you can write into batch files to control the entire backup and recovery process! To save everyone Ghost! Take more time to learn more advanced Knowledge and more PPMM GHOST batch files can not be written, first detail the basic format: 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 its main parameters is as follows: -clone: Clone is in English "The meaning of clones, here is a fixed format, intended to force Ghost.exe in the parameter. Mode =: This parameter is used to set the usage mode of Ghost.exe, and there are six modes to choose from: Copy, Pcopy, Load, Pload, Dump, PDUMP. Among them, COPY, LOAD, DUMP refers to the operation of the hard disk to the hard disk, and after PCOPY, PLOAD, PDUMP, operates in the same mode for the partition of the hard disk. For example, "Mode = Copy" means cloning a hard disk data to another hard disk, plus P (Mode = pcopy) means cloning a partitioned data to another partition. "Mode = LOAD" means extracting mirror files to restore to hard disks (or partition), "Mode = Dump" means that hard disk (or partition) is mirror file. SRC =: This parameter is used to set the data source location, with 1, 2, 3 ... represent different sources, such as "SRC = 1: 1" means data from the primary disk first partition, "SRC = 2: 2 "indicates that the data comes from the second partition from the disk," SRC = D: /GHOST/SYSBAK.GH1 "means that the data to be extracted is derived from the sysgbak.gho file in the second partition ghost directory of the primary disk. DST =: This parameter sets the target position of the data, the same, and SRC. Such as "DST = 1: 1" indicates that the extraction data is restored to the first partition of the primary disc, "DST = 2: 2" indicates that it is restored to the second partition from the disk, "DST = D: /GHOST/sysbak.gh1" means Save the backup data as the sysgbak.gho file in the second partition of the primary disk. / FRO: This parameter means skipping everything during the cloning process, it is recommended to avoid use. / Fx: Automatically exits after the program is executed, returns to the operating system. This parameter can be used when making a mirror file and restoring non-system partitions, but it may cause a crash when recovery system partition (see / RB when recovering system partition). / RB: Force restart system after the program is executed. / F32: Convert FAT16 format to FAT32 format. / Z (n): Set the compression ratio of the mirror file, only when making a mirror file. Where n = 1 (/ z1) means that when the mirror file is made, N = 2 (/ z2) is rapidly compressed, and high proportional compression is used when n = 3 to 9. In actual use, the author recommends using / z2 (fast compression), its speed and / z1 (not compressed) basically no difference, the mirror file is much smaller. But if your hard drive capacity is not very large, it is recommended to use / z9. / SURE: Automatically answer all prompts "Yes".
In Ghost.exe graphical interface operation, the program pops up some dialog box asking if it is definitely executed, usually there are two options for "Yes" and "Cancel", / Sure means automatically select "YES" to ensure the cloning process Do not need manual interference. For my situation, I set up a directory named ghost in the D disk, and the mirror file of the backup C area is named Sysbak.gho. The contents of the two batch files are as follows: sysback.bat: ghost-clone, mode = pdump, src = 1: 1, dst = d: / ghost/sysbak.gh1 / fx / z9 / sure refert.bat (Recovery : Ghost-clone, Mode = pload, src = d: /Ghost/sysbak.gh1,dst=1: 1 / sure / RB -------------------- -------------------------------------------------- ------------ Ghost parameter Detailed example (above you can do not see, you must see better) ghost.exe -clone, mode = copy, src = 1, DST = 2 - Sure Hard Disk Put Ghost.exe -clone, Mode = Pcopy, SRC = 1: 2, DST = 2: 1-2 Copy the second partition of the No. 1 hard disk to the first partition of the second hard disk GHOST .exe -clone, Mode = PDUMP, SRC = 1: 2, DST = g: /bac.gho Put the second partition of the No. 1 hard disk into the Ghost.exe -Clone, Mode = pload Src = g: /bac.gh2, dST=1: 2 In the interior there are two partitioned image files, restore the second partition to the second partition ghost.exe -clone, Mode = pload, SRC = g: /bac.gho, dSt=1: 1 -fx -ssure -rb Restores C drive with the bac .gho file of the G disk. No information is displayed after completion, start directly. ghost.exe -clone, mode = loading, src = g: /bac.gho, dST=2, SZE1=60P, SZE2=40P restores the image file to the second hard drive, and modify the partition size to 60:40 The restore disk first makes a startup disk, contains config.sys, autoexec.bat, command.com, io.sys, ghost.exe file (can be done with the program that can start the disk with Windows). AutoExec.bat can include the following command: ghost.exe -clone, mode = pload, src = d: /bac.gho, dSt=1: 1 -FX -ssure -rb utilizes the file automatic restore in the D disk, after the end Jump out of Ghost and restart. Automatically make a backup of the C area, generate a backup file bac .gho in the D zone.
Ghost.exe -clone, Mode = PDUMP, SRC = 1: 1, DST = D: /BAc.gho -fx -ssure -rb reduced disc contains files: config.sys, autoexec.bat, mscdex.exe (CDROM executive ), Oakcdrom.sys (ATAPI CDROM compatible driver), ghost.exe config.sys content is: device = oakcdrom.sys / d: IDECD001 autoexec.bat content is: mscdex.exe / d: IDECE001 / L: Z ghost - Clone, Mode = LOAD, SRC = Z: /BAc.Gho, dSt=1: 1 -sure -RB can modify the instance -clone according to the following detailed explanation must be added to the parameter, it is also all Switch {Batch Switch One of the most practical features, below is the parameters defined by Clone, MODE = {COPY | LOAD | DUMP | PCOPY | PLOAD | PDUMP}, SRC = {Drive | File | Drive: Partition}, DST = {Drive | file | drive: partition} Mode Specifies which Clone provided with the command Copy hard drive to the hard disk (Disk to disk copy) load file to the hard drive (File to Disk Load) DUMP to make a hard disk into an image file (Disk To file dump) PCOPY Partition to Partition Copy PLOAD Download PDUMP Partition Backup Image File (Partition to File Dump) SRC Specifies the source partition used by GHOST runtime Location mode and its meaning: the Mode command corresponds to the parameters used by the MODE command SRC COPY / DUMP source hard disk number. Take 1 representative of the first hard disk load image file name g: /back98/setup98.gho or device name (Drive) PCOPY / PDUMP source partition number. 1: 2 represents the second partition of the hard disk 1, the second partitioning pop partition image file name plus the partition number or the drive name plus the partition number. G: /back98/setup98.gh2, the target position mode and its meaning used when the second partition DST in the image file is running GHOST: the MODE command corresponds to the parameter example of the mode command DST Copy / Dump destination Hard disk number. 2 represents the second hard disk LOAD hard drive image file name. Example g: /back98/setup98.gho pcopy / pload destination partition number. 2: 2 representative, the second partition of the hard disk 2 PDUMP partition image file name plus the partition number. g: /back98/setup98.GH2 SZEN Specifies the size of the partition used by the target n = xxxxm Specifies the size of the Nth destination partition to indicate the size of the partition 2 of 800MB n = MMP designated land n. MM percentage of the entire hard drive. Other parameters - FXO When the source object appears, the forced copy continues -FX does not display "Press Ctrl-del To Reboot" directly after GHOST to complete the new system directly back to DOS - An fully executed sector Danker replication. When a partition is replicated by an image file or by another hard disk, GHOST will first check the source partition, and then determine whether to copy the file and the directory structure or to make an image replication (sector to sector). The preset is this form. But sometimes, a specific location in the hard disk may put some hidden files related to system security.