System Administration Guide, Volume 1

Displaying Disk Slices

You can use the format utility to check whether or not a disk has the appropriate disk slices. If you determine that a disk does not contain the slices you want to use, use the format utility to re-create them and label the disk. See "SPARC: How to Create Disk Slices and Label a Disk" or "IA: How to Create Disk Slices and Label a Disk" for information on creating disk slices.


Note -

The format utility uses the term partition in place of slice.


How to Display Disk Slice Information

  1. Become superuser.

  2. Enter the format utility.


    # format
    
  3. Identify the disk for which you want to display slice information by selecting a disk listed under AVAILABLE DISK SELECTIONS.


    Specify disk (enter its number):1
    
  4. Enter the partition menu by typing partition at the format> prompt.


    format> partition 
    
  5. Display the slice information for the current disk drive by typing print at the partition> prompt.


    partition> print
    
  6. Exit the format utility by typing q at the partition> prompt and typing q at the format> prompt.


    partition> q
    format> q
    #
  7. Verify displayed slice information by identifying specific slice tags and slices.

    If the screen output shows that no slice sizes are assigned, the disk probably does not have slices.

Examples--Displaying Disk Slice Information

The following example displays slice information for disk /dev/dsk/c0t3d0.


# format
Searching for disks...done
Specify disk (enter its number):1
Selecting c0t3d0
format> partition
partition> print
Current partition table (original):
Total disk cylinders available: 2036 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm       0 -  300      148.15MB    (301/0/0)   303408
  1       swap    wu     301 -  524      110.25MB    (224/0/0)   225792
  2     backup    wm       0 - 2035     1002.09MB    (2036/0/0) 2052288
  3 unassigned    wm       0               0         (0/0/0)          0
  4 unassigned    wm       0               0         (0/0/0)          0
  5 unassigned    wm       0               0         (0/0/0)          0
  6        usr    wm     525 - 2035      743.70MB    (1511/0/0) 1523088
  7 unassigned    wm       0               0         (0/0/0)          0
partition> q
format> q
#

See Chapter 28, Disk Management (Overview) for a detailed description of the slice information displayed in these examples.

The following example displays the slice information on disk /dev/dsk/c0t0d0.


# format
Searching for disks...done
Specify disk (enter its number): 0
selecting c0t0d0
[disk formatted]
format> partition
partition> print
Current partition table (original):
Total disk cylinders available: 817 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders       Size            Blocks
  0 unassigned    wm       3 - 816        6.26GB    (814/0/0) 13128192
  1 unassigned    wm       0              0         (0/0/0)          0
  2     backup    wm       0 - 816        6.28GB    (817/0/0) 13176576
  3 unassigned    wm       0              0         (0/0/0)          0
  4 unassigned    wm       0              0         (0/0/0)          0
  5 unassigned    wm       0              0         (0/0/0)          0
  6 unassigned    wm       0              0         (0/0/0)          0
  7 unassigned    wm       0              0         (0/0/0)          0
  8       boot    wu       0 -   0        7.88MB    (1/0/0)      16128
  9 alternates    wu       1 -   2       15.75MB    (2/0/0)      32256
partition> q
format> q