Ghost commonly used parameters detailed _dos/bat

Source: Internet
Author: User
The use of Dos people are not unfamiliar with the parameters, dos many programs have parameters, although it is a dull English alphabet, but the function is very powerful. Ghost is a typical DOS program that supports parameters, making full use of its parameters, and we can better control ghost. To get them to work better for us, for the first few examples, we used the ghost parameters to make a self starter CD that automatically backs up and recovers hard disk data. It is precisely because of ghost parameters, powerful, we have to put some of the most commonly used parameters listed for everyone to use for reference.

Small Tips

★ Parameter (Parameter) is a program to provide us with some hidden options, by adding parameters, you can achieve the normal startup program could not be implemented or can be implemented, but need a lot of steps to achieve the function, can bring us a lot of convenience.

★ The parameter and the program, the parameter and the parameter are separated by spaces.

★ We can write the parameters of Ghost to some bat files, and use it to clone and restore our system more conveniently through the control statement.

1. disk Copy to disk

Graphical interface: Disk to disk

parameter example: GHOST-CLONE,MODE=COPY,SRC=1,DST=2-SURE-FX

Parameter function: Copy the entire contents of disk one to disk two, do not need to ask, complete exit ghost.

2. Back up all the content on the disk to image files

Graphical interface: Disk to Image

parameter example: GHOST-CLONE,MODE=DUMP,SRC=1,DST=D:\WIN98SYS.GHO-Z3-SURE-FX

Parameter function: Backup machine The whole contents of the first hard disk to another hard disk D:\Win98sys.gho file, high compression, do not need to ask, complete exit ghost.

3. Restore from backup image files to disk

Graphical interface: Disk from Image

parameter example: GHOST-CLONE,MODE=LOAD,SRC=D:\WIN98SYS.GHO,DST=1-SURE-FX

Parameter function: From backup on another hard disk D:\Win98sys.gho image file restored to the first hard drive, do not have to ask, complete exit ghost.

4. Partition to partition copy

Graphical interface: Partition to Partition

Parameter example: Ghost-clone,mode=pcopy,src=1:1,dst=2:1-SURE-FX

Parameter function: Copy all content on the first partition of the first hard drive to the first partition on the second hard drive, do not ask, and exit ghost after completion.

5. Back up the contents of the partition into an image file

Graphical interface: Partition to Image

parameter example: GHOST-CLONE,MODE=PDUMP,SRC=1:1,DST=D:\WIN98SYS.GHO-Z9-SURE-FX

Parameter function: Backup first hard disk first partition to D:\Win98sys.gho, use the highest compression rate, do not need to ask, complete exit ghost.

6. Cloning from a backup image file to a partition

Graphical interface: Partition from Image

Parameter example: Ghost-clone,mode=pload,src=d:\win98sys.gho:1,dst=1:1-SURE-FX

Parameter function: The first partition memory in the D:\Win98sys.gho is cloned to the first partition of the first hard disk, do not need to inquire, and exit ghost after completion.

7. Parallel port Cable line directly connected to computer client

Graphical interface: Lpt/slave

parameter example: Ghost-lps

Parameter function: Start client (two PCs must execute ghost simultaneously).

8. Parallel port Cable line direct Connection service machine

Graphical interface: Lpt/master

parameter example: GHOST-LPM-CLONE,MODE=DUMP,SRC=1,DST=C:\WIN98SYS.GHO-SURE-FX

Parameter function: To backup the contents of the first hard disk of the server to the client C:\Win98sys.gho file, do not need to inquire, and exit ghost after completion.

9. Direct cloning between hard drives

parameter example: Ghost-clone,mode=copy,src=1,dst=2-sure

Parameter function: In the internal mode copy the first hard drive to the second hard drive, without prompting, direct cloning.

10. Network Backup

parameter example: Ghost-nbm-clone,mode=dump,src=2,dst=c:\xxxx.gho

Parameter function: Connect the NetBIOS mode to the Ghost\slave network remote PC and back up the local second hard drive to the remote hard drive C:\xxxx.gho into an image compressed file.

Small Tips

The remote client must be started using the Ghost-nbs command.

11. Cloning the image file to the hard disk

parameter 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 drive.

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

parameter example: Ghost-clone,mode=pdump,src=1:2,dst=g:\imgs\part2.gho

Parameter function: Back up the second partition of the first hard drive to the G:\imgs\part2.gho image file.

parameter example: Ghost-clone,mode=pload,src=g:\imgs\part2.gho:2,dst=1:2

Parameter function: Load (restore) The second partition within the image file to the first hard drive on the internal hard disk.

13. Different hard disk different partition copy

parameter example: ghost-clone,mode=pcopy,src=1:2,dst=2:1

Parameter function: Copy the second partition of the first hard drive to the first partition of the second hard disk.

14. Restore to the second hard drive and resize the partition

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

Parameter functionality: Clones the G:\imgs\2prtdisk.gho image file to the second hard drive and restructure the partition size by 60% and 40% size.

15. Restore to the first hard drive and adjust the partition size

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

Parameter function: Clone the E:\imgs\3prtdisk.gho image file to the first hard disk, and reorganize the partition size: the first partition 450MB, the second partition 1599MB, the third partition 2047MB.

16. Retain the first partition, others do not assign

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 drive and keep the first partition to the same source size, but the remaining space in the other partitions is not allocated.

17. Restore to the final partition and resize the partition

parameter example: Ghost-clone,mode=load,src=g:\imgs\2prtdisk.gho,dst=1,szel

Parameter feature: Loads the image file to the final partition of the disk and resizes it according to capacity, and the first partition uses the remaining space.

18. Read from the parameter file

parameter example: GHOST. EXE @ (parameter file)

Parameter function: Ghost command-line arguments can be read and executed from the parameter file (note that the parameter file is in text format).

Small Tips

Parameter files can be written in text format containing any ghost command-line arguments, in addition to-afile= and-dfile= parameters.

19. Backup and Automatic segmentation

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

Parameter function: It is used to back up the first partition information of the first hard disk into the System.gho under the current folder, if the generated System.gho is greater than 630MB, the resulting Gho file will be split, which is 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=system.gho

Parameter function: The function of the statement is to backup the first partition information of the first hard disk into the System.gho under the current folder, and use 666888 as the password for the generated Gho file for encryption. Later use Ghost to restore System.gho files, or use Ghost Explorer to release the files, you must enter a password, otherwise can not restore or release files, thus playing a role in secrecy. If the input ghost-sure-pwd-clone,mode=pdump,src=1:1,dst=system.gho, that is,-pwd after the password, Ghost in the production of Gho file will ask the user to encrypt the password Gho, you must remember. After encrypting the Gho file, others are unable to 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.