WelcomeProductsViruses & RisksSupportDownloadsStore
Home & Home Office
Symantec.com > Home & Home Office > Support > Knowledge Base


Switches: GDisk and GDisk32 for Norton Ghost 2003

Situation:
You need to know what Norton Ghost 2003 GDisk and GDisk32 utilities can do and when they can be used.

Solution:
Two versions of GDisk are available with Norton Ghost 2003:

GDisk

General information:
GDisk is a DOS program with seven main operations: These commands can be run from the DOS command line or from a batch file (/BATCH). In addition, GDisk provides help from the command line.

GDisk and GoBack
GDisk does not function correctly in some instances when the computer has GoBack installed. To use GDisk in this case, disable GoBack, start the computer from a floppy disk, and then run GDisk.

Displaying GDisk help
General help is available by using the ? switch:

Help on a particular operation is available by using the switch for the operation without additional parameters. The format of this command is:
For instance, the following command displays information regarding deleting partitions:
Switches for GDisk operations
Here are the GDisk switches, as provided by the Gdisk /? <operation> command.

Gdisk /?
The following is the screen displayed when running gdisk /? from the command line prompt:

==============================================
A:\>gdisk /?
GDISK Fixed Disk Partitioning Utility

GDISK disk /CRE {/PRI|/EXT|/LOG} [/SZ:{mbytes|pcent{P|%}}] [/END] [/FOR [/Q] [/V[:label]]] [/-32] [/NTFAT16] [/X] [/I] [/S] [/Y] [/R]
GDISK disk /DEL {/PRI[:nth]|/EXT[:nth]|/LOG:nth|/P:partn-no|/ALL} [/X] [/I] [/S] [/Y] [/R] {[/QWIPE|/DODWIPE|/CUSTOMWIPE:passes]}
GDISK [disk] [/STATUS] [/RAW|/LBA] [/SER] [/X] [/I] [/S] [/Y] [/R]
GDISK disk /[-]ACT /P:partn-no [/X] [/I] [/S] [/Y] [/R]
GDISK disk /[-]HIDE /P:partn-no [/X] [/I] [/S] [/Y] [/R]
GDISK disk /MBR [/WIPE] [/X] [/I] [/S] [/Y] [/R]
GDISK disk /DISKWIPE [/DOD|CUSTOM:passes] [/X] [/I] [/S] [/Y] [/R]
GDISK [disk] /BATCH[:filename] [switch[switch...]]
GDISK /? [/CRE|/DEL|/STATUS|/[-]ACT|/[-]HIDE|/MBR|/DISKWIPE|/BATCH]

Copyright (C) 1998-2002 Symantec Corp. All rights reserved. 2003.775
==============================================

The numbers after "All rights reserved." is the Ghost version of GDisk. In this example, this version of Ghost is Norton Ghost 2003.

GDisk /? /CRE
This command displays the command line format for the /CRE operation. The /CRE command creates fixed disk partitions and logical drives.

General command:

GDISK disk /CRE {/PRI|/EXT|/LOG} [/SZ:{mbytes|pcent{P|%}}] [/END] [/FOR [/Q] [/V[:label]]] [/-32] [/NTFAT16] [/X] [/I] [/S] [/Y] [/R]
GDisk /? /DEL
This command displays the command-line format for the /DEL operation. The /DEL command deletes fixed disk partitions and logical drives.

General command:

GDISK disk /DEL {/PRI[:nth]|/EXT[:nth]|/LOG:nth|/P:partn-no|/ALL} [/X] [/I] [/S] [/Y] [/R] {[/QWIPE|/DODWIPE|/CUSTOMWIPE:passes]}
GDisk /? /STATUS
This command displays the command-line format for the /STATUS operation. The /STATUS command displays information about fixed disk partitions.

General command:
GDISK [disk] [/STATUS] [/RAW|/LBA] [/SER] [/X] [/I] [/S] [/Y] [/R] GDisk /? /ACT
This command displays the command line format for the /ACT operation. The /ACT command Activates a partition. The /-ACT command deactivates the partition.

General command:

GDISK disk /[-]ACT /P:partn-no [/X] [/I] [/S] [/Y] [/R]
GDisk /? /HIDE
This command displays the command line format for the /HIDE operation. The /HIDE command hides a regular partition or unhides a hidden partition.

General command:

GDISK disk /[-]HIDE /P:partn-no [/X] [/I] [/S] [/Y] [/R]
Gdisk /? /MBR
This command displays the command line format for the /MBR operation. The /MBR command rewrites the boot code in the Master Boot Record by overwriting it.

Although reinitializing (writing over) the Master Boot Record (MBR) does not alter the disk's partition information, it can be destructive if other software has written information into the MBR. Typical programs that use space in the MBR include drive translation software such as OnTrack's Disk Manager, or boot managers, such as OS/2's Boot Manager. These types of utility programs are known by various names, such as disk extender, drive overlay, and operating system loader.


CAUTION: Do not use the /MBR switch on a disk that is using drive translation software installed to the MBR. Writing over the translation software makes the partition data inaccessible unless the drive translation software can be successfully reinstalled.


The most common reason to use this command is to write over a boot sector virus. This destroys the virus that is residing in the MBR. This command does not prevent reinfection of the MBR.

General command:

GDISK disk /MBR [/WIPE] [/X] [/I] [/S] [/Y] [/R]
GDisk /? /DISKWIPE
This command displays the command line format for the /DISKWIPE operation. The /DISKWIPE command wipes out all information on the hard disk.


CAUTION: The /DISKWIPE command wipes out the entire contents of the physical disk. Make sure that you specify the correct fixed physical disk before proceeding. You can use the /STATUS command with a disk number to check the identity of the fixed disk that you specify.


General command:

GDISK disk /DISKWIPE [/DOD|CUSTOM:passes] [/X] [/I] [/S] [/Y] [/R]

disk        The physical fixed disk (1-8).
/DISKWIPEWipes the contents of the whole disk.
/DODDoD 5200.28-M STD Wipe of the contents of the whole disk.
/CUSTOM:passesDoD 5200.28-M STD Wipe of the contents of the whole disk.
/XIgnore extended disk-access support.
/IIgnore direct IDE disk-access support.
/SIgnore direct SCSI disk-access support.
/YSuppress prompting to confirm that you wish the action to be performed. /SURE has the same meaning.
/RReboot after execution of command.
GDisk /? /BATCH
The batch mode switch, /BATCH, allows GDisk to perform multiple operations with a single command. The operations can be specified interactively at a DOS command-line, or they can be supplied in advance in a text file.

GDisk's batch mode uses the following command line format:

GDISK [disk] /BATCH[:filename] [switch[switch...]]

disk        Tells GDisk which fixed physical disk (1 through 8) the commands apply to).
/BATCHTells GDisk that it will be executing multiple GDisk commands. This command is optional.
/FILENAMEProvides GDisk with the name of the text file that includes multiple GDisk commands.  If no file name is provided, GDisk prompts the user (interactively) for the command line parameters.
/SWITCHLists the command line parameters (switches). If the command-line calls a batch file, the switches specified on the command line are run after running the commands contained in the batch file.


GDisk32

General information:
Use GDisk32.exe for:
Displaying GDisk32 help
General help is available by using the ? switch:

Help on a particular operation is available by using the switch for the operation without additional parameters. The format of this command is:
For instance, the following command displays information regarding deleting partitions:
Switches for GDisk32 operations
Here are the GDisk32 switches, as provided by the Gdisk32 /? <operation> command.

Gdisk32 /?
The following is the screen displayed when running gdisk32 /? from the command line prompt within Windows:

==============================================
C:\>Program Files\Symantec\Norton Ghost 2003>gdisk32 /?
GDISK32 Fixed Disk Partitioning Utility

GDISK32 [disk] [/STATUS] [/RAW|/LBA] [/SER] [/X] [/I] [/S] [/Y] [/R]
GDISK32 disk /[-]ACT /P:partn-no [/X] [/I] [/S] [/Y] [/R]
GDISK32 disk /[-]HIDE /P:partn-no [/X] [/I] [/S] [/Y] [/R]
GDISK32 /BOOTINI {/ADD|/REMOVE|/DEFAULT} [/D:disk-no] [P:partn-no] [DESC:desc] [/ENTRY:no] [/TIMEOUT:sec] [/INIFILE:filename] [/BSECTFILE:filename] [/WINNT [/SYSFOLDER:folder]] [/R]
GDISK32 [disk] /BATCH[:filename] [switch[switch...]]
GDISK32 /? [/STATUS|/[-]ACT|/[-]HIDE|/BOOTINI|/BATCH]

Copyright (C) 1998-2002 Symantec Corp. All rights reserved. 2003.775
==============================================

GDisk32 /? /STATUS
This command displays the command-line format for the /STATUS operation. The /STATUS command displays information about fixed disk partitions.

General command:

GDISK32 [disk] [/STATUS] [/RAW|/LBA] [/SER] [/X] [/I] [/S] [/Y] [/R] GDisk32 /? /ACT
This command displays the command line format for the /ACT operation. The /ACT command Activates a partition. The /-ACT command deactivates the partition.

General command:

GDISK32 disk /[-]ACT /P:partn-no [/X] [/I] [/S] [/Y] [/R] GDisk32 /? /HIDE
This command displays the command line format for the /HIDE operation. The /HIDE command hides a regular partition or unhides a hidden partition.

General command:

GDISK32 disk /[-]HIDE /P:partn-no [/X] [/I] [/S] [/Y] [/R] GDisk32 /? /BOOTINI
This command displays the command line format for the /BOOTINI operation. The /BOOTINI command modifies the boot.ini file on Windows NT and 2000 platforms.

General command:

GDISK32 /BOOTINI {/ADD|/REMOVE|/DEFAULT} [/D:disk-no] [P:partn-no] [DESC:desc] [/ENTRY:no] [/TIMEOUT:sec] [/INIFILE:filename] [/BSECTFILE:filename] [/WINNT [/SYSFOLDER:folder]] [/R]

/BOOTINIModifies boot.ini file.
/ADDCreates a new entry in boot.ini file.
/D:disk-noThe physical fixed disk (1-8).
/P:partn-noThe number of the partition to boot from.
/INIFILE:filenameFull path and filename for boot.ini file. Default is C:\boot.ini.
/BSECTFILE:filenameBoot sector file to create - e.g. C:\bsect.dat. Default is C:\<desc without invalid chars>.dat (8.3).
/WINNTAdds entry to boot another NT/2000 system, e.g., multi(x)disk(y)rdisk(z)partition(w)\<sysfolder>.
/SYSFOLDER:folderWindows system folder on NT/2000 system to boot from. Default is WINNT, which is the standard location.
/RReboot after execution of command.
Command line for removing an entry from boot.ini:
GDISK32 /BOOTINI /REMOVE /ENTRY:no [/INIFILE:filename] [/R]

/REMOVERemoves entry from boot.ini file.
/ENTRY:noID of entry to be removed from boot.ini file.
Command line for setting default boot option and timeout:
GDISK32 /BOOTINI /DEFAULT [/ENTRY:no] [/TIMEOUT:sec] [/INIFILE:filename] [/R]

/DEFAULTSets default boot option and timeout.
/ENTRY:noID of entry to be set as default boot option.
/TIMEOUT:secSeconds before the default boot option is selected.
GDisk32 /? /BATCH
The batch mode switch, /BATCH, allows GDisk32 to perform multiple operations with a single command.

GDisk32's batch mode uses the following command-line format:

GDISK32 [disk] /BATCH[:filename] [switch[switch...]]

disk        Tells GDisk32 which fixed physical disk (1 through 8) the commands apply to).
/BATCHTells GDisk32 that it will be executing multiple GDisk32 commands. This command is optional.
/FILENAMEProvides GDisk32 with the name of the text file that includes multiple GDisk32 commands.  If no filename is provided, GDisk32 prompts the user (interactively) for the command-line parameters.
/SWITCHLists the command-line parameters (switches). If the command-line calls a batch file, the switches specified on the command-line are run after running the commands contained in the batch file.


References:
Introduction to GDisk
Switches: GDisk

 

Available Translations:


RATE THIS SOLUTION
Was this solution helpful to you?
Yes
No
If any information was unclear, or the information you were seeking was not provided, please let us know. Your feedback will help us improve this service.

NOTE: Comments entered here will NOT recieve a personal email response.


Document ID: 2002112213111525
Last Modified: 11/03/2004
Date Created: 11/22/2002
Operating System(s): DOS, Windows 95, Windows 98, Windows ME, Windows NT, Windows 2000, Windows XP
Product(s): Norton Ghost 2003


Site Index · Legal Notices · Privacy Policy · · Contact Us · Global Sites · License Agreements
©1995 - 2009 Symantec Corporation