Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Norton Ghost batch command

2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article will explain in detail how to use Norton Ghost batch commands. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

Basic format of .Ghost batch file

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 means "clone" in English, and here it is a fixed format, meaning to force Ghost.exe to be executed as a parameter.

Mode=: this parameter is used to set the usage mode of Ghost.exe. There are six modes to choose from: copy, pcopy, load, pload, dump, pdump. Among them, copy, load and dump refer to the operation from the hard disk to the hard disk, and after adding p (pcopy, pload, pdump), the operation is aimed at the partition of the hard disk in the same mode. For example, "mode=copy" means to clone the data from one hard disk to another hard disk of the same capacity or more, and adding P (mode=pcopy) means to clone the data from one partition to another partition. "mode=load" means to extract the image file and restore it to the hard disk (or partition), and "mode=dump" means to make the hard disk (or partition) into an image file.

Src=: this parameter is used to set the data source location, using 1, 2, 3... Represents different sources, such as "src=1:1" indicates that the data comes from the first partition of the master disk, "src=2:2" indicates that the data comes from the second partition of the slave disk, and "src=d:\ ghost\ sysbak.gh2" indicates that the data to be extracted comes from the sysgbak.gho file in the Ghost directory of the second partition of the master disk.

Dst=: this parameter sets the target location of the data, using the same as src. For example, "dst=1:1" means to restore the extracted data to the first partition of the master disk, "dst=2:2" means to restore to the second partition of the slave disk, and "dst=d:\ ghost\ sysbak.gh2" means to save the backed up data as the sysgbak.gho file in the ghost directory of the second partition of the master disk.

/ fro: this parameter means that all errors are skipped during the cloning process. It is recommended to avoid using this parameter.

/ fx: automatically exits after the program is executed and returns to the operating system. This parameter can be used when making mirror files and restoring non-system partitions, but may cause panic when restoring system partitions (please refer to / rb when restoring system partitions).

/ rb: force the system to restart after the program has been executed.

/ f32: convert FAT16 format to FAT32 format.

/ Z (n): sets the compression ratio of the image file, which is only used when making the image file. Among them, nroom1 (/ z1) means that the image file is not compressed, nroom2 (/ z2) is fast compression, and high-proportional compression is used in nroom3-9. In practical use, the author recommends using / Z2 (fast compression). Its speed is basically the same as / Z1 (no compression), but the image file is much smaller. But if your hard drive capacity is not very large, it is recommended to use / z9.

/ sure: automatically answer "yes" to all prompt questions. In the Ghost.exe graphical interface operation, the program will pop up some dialog boxes asking if you are sure to perform the operation. There are usually two options: "Yes" and "Cancel". / sure means to automatically select "Yes" to ensure that manual interference is not required in the cloning process.

In my case, I set up a directory called Ghost on disk D, and the image file in backup area 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.gh2 / fx/z9/sure

Revert.bat (restore):

Ghost-clone,mode=pload,src=d:\ ghost\ sysbak.gh2,dst=1:1 / sure / rb

Detailed example of .GHOST parameters (you don't have to read the above, but you must see it here and record it well)

Ghost.exe-clone,mode=copy,src=1,dst=2-sure

Hard disk copy

Ghost.exe-clone,mode=pcopy,src=1:2,dst=2:1-sure

Copy the second partition of hard drive 1 to the first partition of hard drive 2

Ghost.exe-clone,mode=pdump,src=1:2,dst=g:\ bac.gho

Make the second partition of hard disk No. 1 into an image file and put it in partition g

Ghost.exe-clone,mode=pload,src=g:\ bac.gh3,dst=1:2

Restore the second partition to the second partition of the hard disk from the image file with two partitions stored internally

Ghost.exe-clone,mode=pload,src=g:\ bac.gho,dst=1:1-fx-sure-rb

Restore disk c with the bac.gho file of disk g Do not display any information after completion, start directly.

Ghost.exe-clone,mode=load,src=g:\ bac.gho,dst=2,SZE1=60P,SZE2=40P

Restore the image file to the second hard drive and change the partition size ratio to 60:40

This is the end of this article on "how to use Norton Ghost batch commands". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report