Professional Documents
Culture Documents
Disk 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:
Label a disk
Disk Labels
A 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.
Partition Table
An 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
Partition
Value Description
Term
Number 0-7 VTOC - Partitions or slices, numbered 0-7.
The following is an example of a partition table from a 4.0-Gbyte disk with a VTOC label
displayed from the format utility:
#format
Enter 0
Enter Partition
Enter Print
2. Identify the disks that are recognized on the system with the format utility.
# format
# format
3. Type the number of the disk that you want to check from the list displayed on your
screen.
4. Verify that the disk you chose is formatted by noting the following message.
[disk formatted]
# format
3. Type the number of the disk that you want to format from the list displayed on your
screen.
4. Caution - Do not select the system disk. If you format your system disk, you delete
the operating system and any data on this disk.
5. To begin formatting the disk, type format at the format> prompt. Confirm the
command by typing y.
format> format
Ready to format. Formatting cannot be interrupted
and takes 23 minutes (estimated). Continue? yes
6. Verify that the disk format is successful by noting the following messages.
Formatting...
done
Verifying media...
pass 0 - pattern = 0xc6dec6de
2035/12/18
The following example displays slice information for disk with a VTOC label.
# format
Searching for disks...done
Specify disk (enter its number):1
Selecting c0t0d0
format> partition
partition> print
Current partition table (original):
Total disk cylinders available: 8892 + 2 (reserved cylinders)
Partitioning:
#format
Enter 0
Enter format>Partition
Enter Partition>Print
It asks Tag: help (select which is not used in the partition table)
It asks: enter
It asks cy (cylinders’ range) :( enter the below range which is specified in partition table)
It asks lable: l
Enter y
Partition>print
Partition>q
Format>q
#newfs /dev/rdsk/c0d0s3
#mkdir slice3
Make an entry for this new file system in vfstab to make this as permanent.
#vi /etc/vfstab
(Device to mount) (device to fsck) (mount point) (fs type) (fsck pass) (mount at boot) (mount options)