Information Technology Reference
In-Depth Information
The format Command
The format(1M) command supports the ability to format, analyze, repair,
label, and partition disk drives. The format command provides an interactive
menu from which you can select subcommands and submenus. Table 7.4
describes these format subcommands and menus.
Table 7.4
Subcommands and Submenus of the format Command
Subcommand/Submenu
Description
disk
Selects a disk.
type
Defines a disk type.
partition
Creates/modifies a partition table for the selected disk (sub-
menu).
current
Displays information about the selected disk.
format
Formats and analyzes the selected disk.
fdisk
Runs the fdisk(1M) program for the selected disk (Intel-
compatible only).
repair
Repairs a defective sector on the selected disk.
show
Translates a disk address (Intel-compatible only).
label
Writes a label to the selected disk.
analyze
Performs surface analysis on the selected disk (submenu).
defect
Displays defect lists for the selected disk (submenu).
backup
Searches for backup labels.
verify
Displays the label for the selected disk.
save
Saves new disk/partition definitions.
inquiry
Displays vendor, model, and revision of the selected disk
(SPARC only).
volname
Defines an eight-character volume name for the selected
disk.
! cmd
Executes cmd using the user's shell, and then returns to the
format command.
quit
Exits the format command.
When the format command is started, the available disk drives are listed and
the user is required to select one of the drives. The format> string is used as
a command prompt. The following listing shows the format command:
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t1d0 <SUN2.1G cyl 2733 alt 2 hd 19 sec 80>
Search WWH ::




Custom Search