People who have used DOS are not unfamiliar with parameters. Many programs under DOS have parameters. Although they are boring English letters, their functions are very powerful. Ghost is a typical DOS program that supports parameters. With full use of its parameters, we can better control Ghost. To make them work better for us, in the previous examples, we used the Ghost parameters to create a self-boot disc that automatically backs up and restores hard disk data. It is precisely because of the numerous Ghost parameters and powerful functions that we need to list some of the most commonly used parameters for your reference.
Tips
★ Parameters are some hidden options provided by the program. By adding parameters, you can realize functions that cannot be implemented or can be implemented by normal startup programs, but require many steps to achieve, which can bring us a lot of convenience.
★Separate parameters from programs, parameters and parameters are separated by space characters.
★We can write Ghost parameters into some BAT files and use it to clone and restore our system more conveniently through control statements.
1. Disk-to-disk copy
Graphic interface: Disk To Disk
Parameter example: ghost -clone, mode=copy, src=1, dst=2-sure -fx
Parameter function: Copy all the contents of disk one to disk two, no need to ask, exit Ghost after completion.
2. Back up all the contents on the disk into an image file
Graphic interface: Disk To Image
Parameter example: ghost -clone, mode=dump, src=1, dst=d:\ -z3 -sure -fx
Parameter function: Back up all the contents on the first hard disk of the machine to another hard disk d:\ file, high compression, no need to ask, exit Ghost after completion.
3. Restore from the backup image file to disk
Graphic interface: Disk From Image
Parameter example: ghost -clone, mode=load, src=d:\, dst=1-sure -fx
Parameter function: Restore the image file backed up on another hard disk d:\ to the first hard disk. No need to ask, exit Ghost after completion.
4. Partition-to-partition copy
Graphic interface: Partition To Partition
Parameter example: ghost -clone, mode=pcopy, src=1:1, dst=2:1 -sure -fx
Parameter function: Copy all the contents on the first partition of the first hard disk to the first partition of the second hard disk. No need to ask, exit Ghost after completion.
5. Back up the partition content into an image file
Graphic interface: Partition To Image
Parameter example: ghost -clone, mode=pdump, src=1:1, dst=d:\ -z9 -sure -fx
Parameter function: Back up the first partition of the first hard disk to d:\, adopt the highest compression rate, no need to ask, exit Ghost after completion.
6.Clone the backup image file to the partition
Graphic interface: Partition From Image
Parameter example: ghost -clone, mode=pload, src=d:\:1, dst=1:1-sure -fx
Parameter function: clone the first partition memory in d:\ on the first partition of the first hard disk. No need to ask, exit Ghost after completion.
7. Parallel port cables are directly connected to the computer client
Graphic interface: LPT/Slave
Parameter example: ghost -lps
Parameter function: Start the client (both computers must execute Ghost at the same time).
8. Directly connect the parallel port cable to the service machine
Graphic interface: LPT/Master
Parameter example: ghost -lpm -clone, mode=dump, src=1, dst=c:\ -sure -fx
Parameter function: Back up the contents on the first hard disk of the server to the client c:\ file, without asking, exit Ghost after completion.
9. Direct cloning between hard disks
Parameter example: ghost -clone, mode=copy, src=1, dst=2-sure
Parameter function: Copy the first hard drive to the second hard drive in internal mode, and clone it directly without prompting.
10. Network backup
Parameter example:ghost -nbm -clone, mode=dump, src=2, dst=c:\
Parameter function: Connect to the remote personal computer of the network in Ghost\slave in NetBIOS mode and back up the second hard disk of the machine to the remote hard disk C:\ to form an image compressed file.
Tips
The remote client must be started using the ghost -nbs command.
11.Clone the image file to the hard disk
Parameter example: ghost -clone, mode=load, src=e:\,dst=1
Parameter function: Read in E:\ file and clone it on the first hard disk.
12. Backup the second partition as an image file (restore)
Parameter example:ghost -clone, mode=pdump, src=1:2, dst=g:\imgs\
Parameter function: Back up the second partition of the first hard disk to the g:\imgs\image file.
Parameter example:ghost -clone, mode=pload, src=g:\imgs\:2, dst=1:2
Parameter function: Load (recover) the second partition in the image file to the second partition of the first hard disk of the internal hard disk.
13. Copy different partitions of different hard disks
Parameter example: ghost -clone, mode=pcopy, src=1:2, dst=2:1
Parameter function: Copy the second partition of the first hard disk to the first partition of the second hard disk.
14. Restore to the second hard disk and adjust the partition size
Parameter example:ghost -clone, mode=load, src=g:\imgs\, dst=2, sze1=60P, sze2=40P
Parameter function: clone g:\imgs\image file to the second hard disk, and reorganize the partition size by 60% and 40% size.
15. Restore to the first hard disk and adjust the partition size
Parameter example:ghost -clone, mode=load, src=e:\imgs\, dst=1, sze1=450M, sze2=1599M, sze3=2047M
Parameter function: clone the e:\imgs\image file to the first hard disk, and reorganize the partition size to: 450MB in the first partition, 1599MB in the second partition, and 2047MB in the third partition.
16. Keep the first partition, and no other allocations
Parameter example: ghost -clone, mode=copy, src=1, dst=2, sze1=F, sze2=V, sze3=V
Parameter function: Copy the first hard disk with three partitions to the second hard disk and keep the first partition the same size as the source, but the remaining space in other partitions is retained and not allocated.
17. Restore to the last partition and adjust the partition size
Parameter example:ghost -clone, mode=load, src=g:\imgs\, dst=1, szeL
Parameter function: Load the image file to the last partition of the disk and resize it according to capacity, and the first partition uses the remaining space.
18. Read from the parameter file
Parameter example: @(parameter file)
Parameter function: GHOST command line parameters can be read and executed from the parameter file (note that the parameter file is in text format).
Tips
The parameter file can be written in text format to contain any Ghost command line parameters, except for the -AFILE= and -DFILE= parameters.
19. Backup and automatically split
Parameter example: ghost -sure -clone,mode=pdump,src=1:1,dst= -span -split=630
Parameter function: Its function is to back up the first partition information of the first hard disk into the current folder. If the generated one is greater than 630MB, the generated GHO file will be divided. This parameter is very useful when backing up large partitions and burning them to a 650MB CD-R.
20. Backup and encryption
Parameter example:ghost -sure -pwd,666888 -clone,mode=pdump,src=1:1,dst=
Parameter function: The function of this statement is to back up the first partition information of the first hard disk into the current folder, and use 666888 as the password for the generated GHO file for encryption. In the future, when using Ghost to restore files or using Ghost Explorer to release files, you must enter a password, otherwise the file cannot be restored or released, which plays a confidential role. If you enter ghost -sure -pwd -clone,mode=pdump,src=1:1,dst=, that is, no password is included after -pwd, then Ghost will ask the user for the password to encrypt the GHO before making the GHO file, and you must remember it. After encrypting the GHO file, others can no longer view or restore our files at will.
Tips
★ Parameters are some hidden options provided by the program. By adding parameters, you can realize functions that cannot be implemented or can be implemented by normal startup programs, but require many steps to achieve, which can bring us a lot of convenience.
★Separate parameters from programs, parameters and parameters are separated by space characters.
★We can write Ghost parameters into some BAT files and use it to clone and restore our system more conveniently through control statements.
1. Disk-to-disk copy
Graphic interface: Disk To Disk
Parameter example: ghost -clone, mode=copy, src=1, dst=2-sure -fx
Parameter function: Copy all the contents of disk one to disk two, no need to ask, exit Ghost after completion.
2. Back up all the contents on the disk into an image file
Graphic interface: Disk To Image
Parameter example: ghost -clone, mode=dump, src=1, dst=d:\ -z3 -sure -fx
Parameter function: Back up all the contents on the first hard disk of the machine to another hard disk d:\ file, high compression, no need to ask, exit Ghost after completion.
3. Restore from the backup image file to disk
Graphic interface: Disk From Image
Parameter example: ghost -clone, mode=load, src=d:\, dst=1-sure -fx
Parameter function: Restore the image file backed up on another hard disk d:\ to the first hard disk. No need to ask, exit Ghost after completion.
4. Partition-to-partition copy
Graphic interface: Partition To Partition
Parameter example: ghost -clone, mode=pcopy, src=1:1, dst=2:1 -sure -fx
Parameter function: Copy all the contents on the first partition of the first hard disk to the first partition of the second hard disk. No need to ask, exit Ghost after completion.
5. Back up the partition content into an image file
Graphic interface: Partition To Image
Parameter example: ghost -clone, mode=pdump, src=1:1, dst=d:\ -z9 -sure -fx
Parameter function: Back up the first partition of the first hard disk to d:\, adopt the highest compression rate, no need to ask, exit Ghost after completion.
6.Clone the backup image file to the partition
Graphic interface: Partition From Image
Parameter example: ghost -clone, mode=pload, src=d:\:1, dst=1:1-sure -fx
Parameter function: clone the first partition memory in d:\ on the first partition of the first hard disk. No need to ask, exit Ghost after completion.
7. Parallel port cables are directly connected to the computer client
Graphic interface: LPT/Slave
Parameter example: ghost -lps
Parameter function: Start the client (both computers must execute Ghost at the same time).
8. Directly connect the parallel port cable to the service machine
Graphic interface: LPT/Master
Parameter example: ghost -lpm -clone, mode=dump, src=1, dst=c:\ -sure -fx
Parameter function: Back up the contents on the first hard disk of the server to the client c:\ file, without asking, exit Ghost after completion.
9. Direct cloning between hard disks
Parameter example: ghost -clone, mode=copy, src=1, dst=2-sure
Parameter function: Copy the first hard drive to the second hard drive in internal mode, and clone it directly without prompting.
10. Network backup
Parameter example:ghost -nbm -clone, mode=dump, src=2, dst=c:\
Parameter function: Connect to the remote personal computer of the network in Ghost\slave in NetBIOS mode and back up the second hard disk of the machine to the remote hard disk C:\ to form an image compressed file.
Tips
The remote client must be started using the ghost -nbs command.
11.Clone the image file to the hard disk
Parameter example: ghost -clone, mode=load, src=e:\,dst=1
Parameter function: Read in E:\ file and clone it on the first hard disk.
12. Backup the second partition as an image file (restore)
Parameter example:ghost -clone, mode=pdump, src=1:2, dst=g:\imgs\
Parameter function: Back up the second partition of the first hard disk to the g:\imgs\image file.
Parameter example:ghost -clone, mode=pload, src=g:\imgs\:2, dst=1:2
Parameter function: Load (recover) the second partition in the image file to the second partition of the first hard disk of the internal hard disk.
13. Copy different partitions of different hard disks
Parameter example: ghost -clone, mode=pcopy, src=1:2, dst=2:1
Parameter function: Copy the second partition of the first hard disk to the first partition of the second hard disk.
14. Restore to the second hard disk and adjust the partition size
Parameter example:ghost -clone, mode=load, src=g:\imgs\, dst=2, sze1=60P, sze2=40P
Parameter function: clone g:\imgs\image file to the second hard disk, and reorganize the partition size by 60% and 40% size.
15. Restore to the first hard disk and adjust the partition size
Parameter example:ghost -clone, mode=load, src=e:\imgs\, dst=1, sze1=450M, sze2=1599M, sze3=2047M
Parameter function: clone the e:\imgs\image file to the first hard disk, and reorganize the partition size to: 450MB in the first partition, 1599MB in the second partition, and 2047MB in the third partition.
16. Keep the first partition, and no other allocations
Parameter example: ghost -clone, mode=copy, src=1, dst=2, sze1=F, sze2=V, sze3=V
Parameter function: Copy the first hard disk with three partitions to the second hard disk and keep the first partition the same size as the source, but the remaining space in other partitions is retained and not allocated.
17. Restore to the last partition and adjust the partition size
Parameter example:ghost -clone, mode=load, src=g:\imgs\, dst=1, szeL
Parameter function: Load the image file to the last partition of the disk and resize it according to capacity, and the first partition uses the remaining space.
18. Read from the parameter file
Parameter example: @(parameter file)
Parameter function: GHOST command line parameters can be read and executed from the parameter file (note that the parameter file is in text format).
Tips
The parameter file can be written in text format to contain any Ghost command line parameters, except for the -AFILE= and -DFILE= parameters.
19. Backup and automatically split
Parameter example: ghost -sure -clone,mode=pdump,src=1:1,dst= -span -split=630
Parameter function: Its function is to back up the first partition information of the first hard disk into the current folder. If the generated one is greater than 630MB, the generated GHO file will be divided. This parameter is very useful when backing up large partitions and burning them to a 650MB CD-R.
20. Backup and encryption
Parameter example:ghost -sure -pwd,666888 -clone,mode=pdump,src=1:1,dst=
Parameter function: The function of this statement is to back up the first partition information of the first hard disk into the current folder, and use 666888 as the password for the generated GHO file for encryption. In the future, when using Ghost to restore files or using Ghost Explorer to release files, you must enter a password, otherwise the file cannot be restored or released, which plays a confidential role. If you enter ghost -sure -pwd -clone,mode=pdump,src=1:1,dst=, that is, no password is included after -pwd, then Ghost will ask the user for the password to encrypt the GHO before making the GHO file, and you must remember it. After encrypting the GHO file, others can no longer view or restore our files at will.