Common Ghost Parameters

Source: Internet
Author: User

DOS users are familiar with parameters. Many DOS programs have parameters. Although they are boring English letters, they are very powerful. Ghost is a typical parameter-supported DOS program. We can better control Ghost by making full use of its parameters. Let them work better for us. In the previous examples, we used the Ghost parameter to make a self-boot disc for automatic backup and recovery of Hard Disk Data. It is precisely because of the large number of 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, the normal startup program cannot be implemented or can be implemented, but many steps are required to implement the functions, it can bring us a lot of convenience.

★Parameters are separated by a space character.

★We can write the Ghost parameter to some BAT files and use the control statement to clone and restore our system more conveniently.

1. Copy a disk

Graphic Interface: Disk To Disk

Example: ghost-clone, mode = copy, src = 1, dst = 2-sure-fx

Parameter Function: Copy all content of Disk 1 to Disk 2. You do not need to ask, and then exit Ghost.

2. Back up all the content on the disk to an image file.

Graphic Interface: Disk To Image

Example: ghost-clone, mode = dump, src = 1, dst = d: \ Win98sys. gho-z3-sure-fx

Parameter Function: Back up all the content on the first hard disk of the machine to the d: \ Win98sys. gho file of the other hard disk. The file is highly compressed and you do not need to ask. After the operation is completed, exit the Ghost.

3. Restore the backup image file to the disk

Graphic Interface: Disk From Image

Example: ghost-clone, mode = load, src = d: \ Win98sys. gho, dst = 1-sure-fx

Parameter Function: restores the image file backed up on another hard disk d: \ Win98sys. gho to the first hard disk. You do not need to ask, and then exit Ghost.

4. Partition-to-partition copy

Graphic Interface: Partition To Partition

Example: ghost-clone, mode = pcopy, src =, dst =-sure-fx

Parameter Function: Copy all content in the first partition of the first disk to the first partition of the second disk. You do not need to ask, and then exit the Ghost.

5. Back up the partition content to an image file

Graphic Interface: Partition To Image

Example of parameters: ghost-clone, mode = pdump, src = 1:1, dst = d: \ Win98sys. gho-z9-sure-fx

Parameter Function: Back up the first partition of the first hard disk to d: \ Win98sys. gho. Use the highest compression rate. You do not need to ask, and then exit Ghost.

6. Clone the backup image file to the partition

Graphic Interface: Partition From Image

Example: ghost-clone, mode = pload, src = d: \ Win98sys. gho: 1, dst =-sure-fx

Parameter Function: Clone the memory in the first partition of d: \ Win98sys. gho to the first partition of the first hard disk. You do not need to ask, and then exit Ghost.

7. Connect the parallel port cable to the computer client directly

Graphic Interface: LPT/Slave

Example: ghost-lps

Parameter Function: Start the client (two computers must execute Ghost simultaneously ).

8. The parallel port cables are directly connected to the server.

Graphical interface: LPT/Master

Example: ghost-lpm-clone, mode = dump, src = 1, dst = c: \ Win98sys. gho-sure-fx

Parameter Function: Back up the content on the first hard disk of the server to the client c: \ Win98sys. gho file. You do not need to ask, and then exit Ghost.

9. Direct cloning between hard disks

Example: ghost-clone, mode = copy, src = 1, dst = 2-sure

Parameter Function: copy the first hard disk to the second hard disk in internal mode. Clone the disk directly without prompting.

10. Network Backup

Example: ghost-nbm-clone, mode = dump, src = 2, dst = c: \ xxxx. gho

Parameter Function: the NetBIOS mode is used to connect to a network remote PC running ghost \ slave and back up the second hard disk of the local machine to the remote hard disk C: \ xxxx. gho to compress the file into an image.

Tips

The remote client must start with the ghost-nbs command.

11. Clone the image file to the hard disk

Example: ghost-clone, mode = load, src = e: \ savdsk. gho, dst = 1

Parameter Function: Read the E: \ SAVEDSK. gho file and clone it to the first hard disk.

12. Back up the second partition as an image file (Restore)

Example: ghost-clone, mode = pdump, src =, dst = g: \ imgs \ part2.gho

Parameter Function: Back up the second partition of the first hard disk to the g: \ imgs \ part2.gho image file.

Example: ghost-clone, mode = pload, src = g: \ imgs \ part2.gho: 2, dst =

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. Copying from different Disks

Example: ghost-clone, mode = pcopy, src =, dst =

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

Example: ghost-clone, mode = load, src = g: \ imgs \ 2prtdisk. gho, dst = 2, sze1 = 60 P, sze2 = 40 P

Parameter Function: Clone the g: \ imgs \ 2prtdisk. gho image file to the second hard disk, and re-allocate the partition size by 60% and 40%.

15. restore to the first hard disk and adjust the partition size

Example: ghost-clone, mode = load, src = e: \ imgs \ 3prtdisk. gho, dst = 1, sze1 = 450 M, sze2 = 1599 M, sze3 = 2047 M

Function: Clone e: \ imgs \ 3prtdisk. the size of the gho image file to the first hard disk is 450 MB for the first partition, 1599 MB for the second partition, and 2047 MB for the third partition.

16. retain the first partition. do not allocate other partitions.

Example of parameters: 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 size of the first partition the same as that of the source. However, the remaining space of other partitions is not allocated.

17. restore to the last partition and adjust the partition size

Example of parameters: ghost-clone, mode = load, src = g: \ imgs \ 2prtdisk. gho, dst = 1, szeL

Parameter Function: load the image file to the last partition of the disk and resize it according to the capacity. The first partition uses the remaining space.

18. Read from parameter files

Parameter example: GHOST. EXE @ (parameter file)

Parameter Function: The 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 contain any Ghost command line parameters in text format, except for the-AFILE = and-DFILE = parameters.

19. Backup and automatic segmentation

Example: ghost-sure-clone, mode = pdump, src =, dst = system. gho-span-split = 630

Parameter Function: it backs up the first partition of the first hard disk to the system in the current folder. in gho, if the Generated system. gho is larger than 630 MB, it splits the generated GHO file, which is useful when backing up large partitions and burning them onto a large MB CD-R.

20. Backup and Encryption

Example: ghost-sure-pwd, 666888-clone, mode = pdump, src =, dst = system. gho

Parameter Function: This statement backs up the first partition of the first hard disk to the system in the current folder. and uses 666888 as the password of the generated gho file for encryption. In the future, when you use Ghost to restore the system. gho file, or use Ghost Explorer to release the file, you must enter a password. Otherwise, the file cannot be recovered or released, which serves as a secret. If you enter ghost-sure-pwd-clone, mode = pdump, src = 1:1, dst = system. gho, that is,-pwd without a password, the Ghost will ask the user to encrypt the GHO password before making the GHO file. You must remember it. After the GHO file is encrypted, others cannot view or restore our files at will.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.