GHOST batch command usage

xiaoxiao2021-03-06  14

Ghost batch command usage Detailed [Author: Pour into Love posted by: YORK Hits: 147 Update Time: 2005-3-4]

· GHOST batch file 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 "clone" meaning in English, here is a fixed format, meaning Forced by parameter to perform Ghost.exe. 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. For example, "DST = 1: 1" indicates that the extraction data is restored to the primary partition of the primary disk, "DST = 2: 2" indicates that the second partition from the slave plate is restored, "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 don't see, but here must see, more Want to record) ghost.exe -clone, mode = copy, src = 1, dst = 2 -sure hard disk pair Ghost.exe -clone, mode = pcopy, src = 1: 2, dst = 2: 1-2 Copy the second partition of the No. 1 hard drive to the first partition of the second hard disk ghost.exe -clone, mode = pdump, src = 1: 2, dst = g: \BAC.Gho second The zone is made into the image file in the g partition ghost.exe -clone, mode = pload, src = g: \BAc.gh2, DST = 1: 2 There are two partitioned image files internally, put the second The second partition of the hard disk to the hard disk ghost.exe -clone, mode = pload, src = g: \BAc.gho, DST = 1: 1 -fx -ssure -rb Restore C with the G disk plate. 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 disk, 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-sure-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-SURE-RB Restore disc contains file: config.sys, autoexec.bat, mscdex.exe (CDROM executive Oakcdrom.sys (AtapicDROM 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 description, it must be added to the parameters, it is also all Switch {BatchSwitch} One of the most practical, the following 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 to use the command COPY hard disk to the hard disk replication to the hard disk to restore to the hard disk (filetodiskload) Dump to make a hard disk into an image file (DISKTOFILEDUMP) PCOPY partition to the partition copy ( PartitionTopartitionCopy PLOAD file restore to a partition (FileTopartitionLoad) PDUMP partition backup into image file (PartitionTOFILEDUMP) SRC Specifies the location mode of the source partition used by GHOST runtime and its meaning ODE command corresponding to the MODE command SRC uses the parameter example COPY / DUMP source hard disk number. Take 1 to 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 running GHOST in the second partition DST in the image file: 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 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 to specify the size of the destination partition is entire MM percentage of the hard disk. Other parameters - FXO When the source object appears bad blocks, forced copying proceeds - FX does not display "pressctrl-alt-deltoreboot" directly after GHOST completely returned to DOS under the DOS-IA full execution sector to sector copy. 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.

转载请注明原文地址:https://www.9cbs.com/read-49408.html

New Post(0)