![]() |
![]() |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
When to Use the format UtilityDisk drives are partitioned and labeled by the Solaris installation program when you install the Solaris release. You can use the format utility to do the following:
The main reason a system administrator uses the format utility is to divide a disk into disk slices. These steps are covered in Chapter 34, SPARC: Adding a Disk (Tasks) and Chapter 35, x86: Adding a Disk (Tasks). See the following section for guidelines on using the format utility. Guidelines for Using the format UtilityTable 32-6 The format Utility Guidelines
Formatting a DiskIn most cases, disks are formatted by the manufacturer or reseller. So, they do not need to be reformatted when you install the drive. To determine if a disk is formatted, use the format utility. For more information, see How to Determine if a Disk is Formatted. If you determine that a disk is not formatted, use the format utility to format the disk. When you format a disk, you accomplishes two steps:
A small percentage of total disk space that is available for data is used to store defect and formatting information. This percentage varies according to disk geometry, and decreases as the disk ages and develops more defects. Formatting a disk might take anywhere from a few minutes to several hours, depending on the type and size of the disk. About Disk LabelsA special area of every disk is set aside for storing information about the disk's controller, geometry, and slices. That information is called the disk's label. Another term that is used to described the disk label is the VTOC (Volume Table of Contents) on a disk with a VTOC label. To label a disk means to write slice information onto the disk. You usually label a disk after you change its slices. If you fail to label a disk after you create slices, the slices will be unavailable because the operating system has no way of "knowing" about the slices. Partition TableAn important part of the disk label is the partition table, which identifies a disk's slices, the slice boundaries (in cylinders), and the total size of the slices. You can display a disk's partition table by using the format utility. The following table describes partition table terminology. Table 32-7 Partition Table Terminology
Partition flags and tags are assigned by convention and require no maintenance. For more information on displaying the partition table, see How to Display Disk Slice Information or How to Examine a Disk Label. Displaying Partition Table InformationThe following is an example of a partition table from a 4.0-Gbyte disk with a VTOC label displayed from the format utility:
The partition table displayed by the format utility contains the following information:
The following is an example of a EFI disk label displayed by using the prtvtoc command.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||