System Administration Guide, Volume 1

How to Format a Disk

  1. Become superuser.

  2. Enter the format utility.


    # format
    
  3. Enter the number of the disk that you want to format from the list displayed on your screen.


    Specify disk (enter its number): 0
    

    Caution - Caution -

    Do not select the system disk. Formatting your system disk deletes your operating system and any data that you might have on this disk.


  4. To begin formatting the disk, enter 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
    
  5. Verify that the disk format is successful by identifying the following messages.


    Beginning format. The current time Tue ABC xx xx:xx:xx xxxx
    
    Formatting...
    done
    
    Verifying media...
            pass 0 - pattern = 0xc6dec6de
       2035/12/18  
    
            pass 1 - pattern = 0x6db6db6d
       2035/12/18  
    
    Total of 0 defective blocks repaired.

Example--Formatting a Disk

The following example formats the disk c0t3d0.


# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
  0. c0t1d0 <SUN1.05 cyl 2036 alt 2 hd 14 sec 72>
     /iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000/sd@1,0
  1. c0t3d0 <SUN1.05 cyl 2036 alt 2 hd 14 sec 72>
     /iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000/sd@3,0
Specify disk (enter its number):1
Selecting c0t3d0
[disk formatted]
format> format
Ready to format. Formatting cannot be interrupted
and takes 23 minutes (estimated). Continue? yes
Beginning format. The current time is Wed Jul 14 10:03:34 1999
Formatting ...
done
Verifying media...
        pass 0 - pattern = 0xc6dec6de
   2035/12/18  

        pass 1 - pattern = 0x6db6db6d
   2035/12/18  

Total of 0 defective blocks repaired.
format>