Detailed Explanation of How to Use Ghost Software
Examples below
Command-line parameter: ghostpe.exe -clone,mode=copy,src=1,dst=2
Completed operation: copy local disk 1 to local disk 2.
Command-line parameter: ghostpe.exe -clone,mode=pcopy,src=1:2,dst=2:1
Completed operation: copy the second partition on local disk 1 to the first partition on local disk 2.
Command-line parameter: ghostpe.exe-clone,mode=load,src=g:\3prtdisk.gho,dst=1,sze1=450M,sze2=1599M,sze3=2047M
Completed operation: load disk 1 from the image file, and adjust the first partition size to 450MB, the second to 1599MB, and the third to 2047MB.
Command-line parameter: ghostpe.exe -clone,mode=pdump,src2:1:4:6,dst=d:\prt246.gho
Completed operation: create an image file containing only the selected partitions. Select partitions 1, 4, and 6 from disk 2.
After understanding these parameters, we can easily achieve Ghost unattended backup/copy/restore. Go make a cup of coffee.
Some examples
ghost.exe -clone,mode=copy,src=1,dst=2 -sure
Hard disk to hard disk copy
ghost.exe -clone,mode=pcopy,src=1:2,dst=2:1 -sure
Copy the second partition of hard disk 1 to the first partition of hard disk 2
ghost.exe -clone,mode=pdump,src=1:2,dst=g:\bac.gho
Make the second partition of hard disk 1 into an image file and place it in drive G
ghost.exe -clone,mode=pload,src=g:\bac.gho:2,dst=1:2
From an image file containing two partitions, restore the second partition to the second partition of the hard disk
ghost.exe -clone,mode=pload,src=g:\bac.gho,dst=1:1 -fx -sure -rb
Use the bac.gho file on drive G to restore drive C. After completion, no information is displayed and it boots directly.
ghost.exe -clone,mode=load,src=g:\bac.gho,dst=2,SZE1=60P,SZE2=40P
Restore the image file to the second hard disk, and change the partition size ratio to 60:40
Restore disk
First make a boot disk containing Config.sys,Autoexec.bat,Command.com,Io.sys,Ghost.exe files (this can be done with Windows' program for making boot disks).
Autoexec.bat can contain the following command:
Ghost.exe -clone,mode=pload,src=d:\bac.gho,dst=1:1 -fx -sure -rb
Use the file on drive D for automatic restoration; when finished, automatically exit Ghost and reboot.
Automatically back up drive C at startup and generate the backup file bac.gho in drive D.
ghost.exe -clone,mode=pdump,src=1:1,dst=d:\bac.gho -fx -sure -rb
Restore CD
Included files: Config.sys,Autoexec.bat,Mscdex.exe(CDROM execution program),Oakcdrom.sys(ATAPI CDROM compatible driver),Ghost.exe
Contents of Config.sys:
DEVICE=OAKCDROM.SYS /D:IDECD001
Contents of Autoexec.bat:
MSCDEX.EXE /D:IDECE001 /L:Z
Ghost -clone,mode=load,src=z:\bac.gho,dst=1:1 -sure -rb
You can modify the examples according to the specific explanation below
-clone must be added as a parameter when used, and at the same time it is also one of the most practical among all switch{batch switch}. Below are the parameters defined by clone
-clone,
mode={copy|load|dump|pcopy|pload|pdump},
src={drive|file|driveartition},
dst={drive|file|driveartition}
mode specifies which command provided by clone is to be used
copy hard disk to hard disk copy (disk to disk copy)
load restore file to hard disk (file to disk load)
dump make hard disk into an image file (disk to file dump)
pcopy partition to partition copy (partition to partition copy)
pload restore file to partition (file to partition load)
pdump back up partition as an image file(partition to file dump)
src specifies the location mode of the source partition used when Ghost runs and its meaning:
mode command Corresponding src parameter used by the mode command Example
COPY/DUMP
Source hard disk number.
1 represents 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 hard disk 1
PLOAD partition image file name plus partition number, or drive name plus partition number.
g:\back98\setup98.gho:2 represents the second partition in the image file
dst the destination location mode used when Ghost runs and its meaning:
mode command Corresponding dst parameter used by the mode command Example
COPY/DUMP destination hard disk number.
2 represents the second hard disk
LOAD hard disk image file name.
Example g:\back98\setup98.gho
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.gho:2
SZEn specifies the size of the destination partition to be used
n=xxxxM specifies that the size of destination partition n is xxxxMB SZE2=800M means partition 2 is 800MB
n=mmP specifies that destination partition n is mm percent of the entire hard disk.
Other parameters
-fxo When bad blocks appear in the source object, force the copy to continue
-fx When ghost finishes working on the new system, do not display "press ctrl-alt-del to reboot" and return directly to DOS
-ia Completely perform sector-to-sector copying. When copying a partition from an image file or from another hard disk as the source, Ghost first checks the source partition, then decides whether to copy the file and directory structure or to do image copying (sector-to-sector). This is the default form. But sometimes certain locations on the hard disk may contain some hidden files related to system security. Only sector-to-sector copying can copy them correctly
-pwd and -pwd=x Encrypt the image file
-rb Reboot the system after restore or copy is completed
-sure can be used together with clone. Ghost will not display the prompt "proceed with disk clone-destination drive will be overwritten?"
Notes
1.When backing up the system, it is best that a single backup file not exceed 2GB.
2.Before backing up the system, it is best to delete some useless files to reduce the size of the Ghost file. Usually useless files include: Windows temporary folders, IE temporary folders, and the Windows swap file. These files usually take up more than 100 MB of hard disk space.
3.Before backing up the system, defragment the target disk and source disk to speed up the backup.
4.Before backing up the system and before restoring the system, it is best to check the target disk and source disk and correct disk errors.
5.When restoring the system, it is best to first check whether the target disk to be restored still has important files that have not been moved. Don't wait until the hard disk information has been overwritten before regretting it.
6.When choosing the compression ratio, it is recommended not to choose the highest compression ratio, because the highest compression ratio takes a lot of time, while the improvement in compression ratio is not obvious.
7.After newly installing software and hardware, it is best to remake the image file, otherwise some inexplicable errors may appear after restoration.
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾