How to use Ghost command line switches

Article:TECH108178  |  Created: 2002-01-19  |  Updated: 2013-11-18  |  Article URL http://www.symantec.com/docs/TECH108178
Article Type
Technical Solution


Environment

Issue



Ghost Technical Support has advised you to use a command line switch to resolve a particular problem, or you want to use the Ghost command line to accomplish a task that you are not able to accomplish using the graphic user interface or options menu.


Cause



general information


Solution



To run Ghost from a command line

  1. Reboot the computer with the proper boot package in the drive.
    Note: this can be a floppy, CD, USB (or PXE) for DOS, Windows PE is not loadable from floppy.
  2. Once Ghost loads and you see the Ghost User Interface, select quit.
    Note: If the boot package is DOS based then this will return you to a DOS command prompt similar to the following:

    A:\Ghost>

    If the boot package is Windows PE based then this will return you to a command prompt similar to the following:

    X:\Windows\System32>

    You will need to change the focus to the x:\Ghost directory by entering" \Ghost".
  3. To enter a Ghost command line, you must start with the name of the correct executable.
    If you are unsure of which version you have, Type DIR at the command prompt, then press Enter. Review the list of files to see which executable is present on the boot disk.
    Possible executable names are:
    In DOS : Ghost.exe unless you have manually added a diffrent executable.
    In Windows PE: Ghost32.exe, Gdisk32.exe or Ghwalk32.exe and others.

  4. Add a space after the executable name, then add your command line switches.

    The following example shows a command line using the -split switch. This particular example directs Ghost.exe to not split the image file into 2gig pieces in a DOS environment.

    Ghost.exe -split=0

    The following example is a command line needed when imaging IBM/Lanovo systems to capture addition information needed to successfully clone a client from the image from a Windows PE boot environment.

    Ghost32.exe -ib

    The following example is a command that can be run after a successful clone that will use Ghostwalker to change a systems SID.

    Ghwalk32.exe /sure


  5. To run a task from the Ghost Console
    For the Ghost console, the switches are added to the definition for a task or backup regime.
    To add switches to a Clone task
    1. Right-click the task you want to modify, then click Properties.
    2. On the Clone tab, click Advanced.
    3. Add the switches, separated by spaces, in the space provided, then click OK.


    To add switches to an Image Create task
    1. Right-click the Create New Image task definition, then click Properties.
    2. Click Advanced.
    3. Add the switches, separated by spaces, in the space provided, then click OK.
      Note: When using a switch here Ghost.exe or Ghost32.exe is assumed and you just add the switch.
      For example when creating an image of an IBM or Lenove you would use the "-ib" switch.


    To add switches to a backup regime
    1. Right-click on the backup regime definition you want to modify, then click Properties.
    2. Add the switches, separated by spaces, in the space provided, then click OK.

For additional information on Ghost command line switches, refer to the document Switches: Alphabetical list of switches



Legacy ID



2002091914103925


Article URL http://www.symantec.com/docs/TECH108178


Terms of use for this information are found in Legal Notices