Managing partitions using GDisk

Overview of main command-line switches

129

Overview of main command-line switches

GDisk has nine main modes of operation. The first four correspond to the menu options on the Fdisk main menu. The mode in which GDisk operates is selected by one of the following switches:

Table 10-1

GDisk main commands

 

 

 

Mode

Switch

Explanation

 

 

 

 

Create

/cre

 

Creates partitions: primary DOS partitions, extended

 

 

 

DOS partitions. This switch functions with GDisk

 

 

 

only.

 

 

 

 

Delete

/del

 

Deletes partitions of any type, including non-DOS

 

 

 

partitions. This switch functions with GDisk only.

 

 

 

Status (default)

/status

Lists information on the specified fixed disk and its

 

 

 

partitions.

 

 

 

 

Activate

/act

Activates and deactivates a partition (specifying it as

 

/-act

the bootable partition).

 

 

 

 

Hide

/hide

Hides an existing partition or unhides a hidden

 

/-hide

partition.

 

 

 

Reinitialize MBR

/mbr

Reinitializes the Master Boot Record. This switch

 

 

 

functions with GDisk only.

 

 

 

Batch

/batch

Uses batch-mode command execution.

 

 

 

Disk wipe

/diskwipe

Wipes the contents of the whole disk. This switch

 

 

 

functions with GDisk only.

 

 

 

Boot.ini

/bootini

Makes a modification to the Windows NT/2000/XP

 

 

 

boot menu. This switch functions with GDisk32 only.

 

 

 

 

Page 129
Image 129
Symantec 10024709 manual Overview of main command-line switches, Mode Switch Explanation