System Administration Guide: Devices and File Systems

ProcedureHow to Determine if a Disk Is Formatted

  1. Become superuser or assume an equivalent role.

  2. Invoke the format utility.


    # format
    

    A numbered list of disks is displayed.

  3. Type the number of the disk that you want to check.


    Specify disk (enter its number): 0
    
  4. Verify that the disk you chose is formatted by noting the following message:


    [disk formatted]

Example 11–2 Determining if a Disk Is Formatted

The following example shows that disk c1t0d0 is formatted.


# format /dev/rdsk/c1*
AVAILABLE DISK SELECTIONS:
       0. /dev/rdsk/c1t0d0s0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@2,0/QLGC,isp@2,10000/sd@0,0
       1. /dev/rdsk/c1t1d0s0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@2,0/QLGC,isp@2,10000/sd@1,0
       2. /dev/rdsk/c1t8d0s0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@2,0/QLGC,isp@2,10000/sd@8,0
       3. /dev/rdsk/c1t9d0s0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@2,0/QLGC,isp@2,10000/sd@9,0
Specify disk (enter its number): 0
selecting /dev/rdsk/c1t0d0s0
[disk formatted]