System Administration Guide

SPARC: Example--Creating Disk Slices and Labeling a System Disk

The following example uses the format utility to divide a 200-Mbyte disk into two slices: one for the root (/) file system and one for the swap area.


# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
       0. c0t2d0 <SUN0207 cyl 1254 alt 2 hd 9 sec 36>
          /sbus@1,f8000000/esp@0,800000/sd@2,0
       1. c0t3d0 <SUN0424 cyl 1151 alt 2 hd 9 sec 80>
          /sbus@1,f8000000/esp@0,800000/sd@3,0
Specify disk (enter its number): 0
selecting c0t2d0
[disk formatted]
format> partition
partition> print
partition> modify
Select partitioning base:
	0. Current partition table (original)
	1. All Free Hog
Choose base (enter number) [0]? 1
 
Part      Tag    Flag     Cylinders        Size       Blocks
  0       root    wm       0               0         (0/0/0)
  1       swap    wu       0               0         (0/0/0)
  2     backup    wu       0 - 1253      198.39MB    (1254/0/0)
  3 unassigned    wm       0               0         (0/0/0)
  4 unassigned    wm       0               0         (0/0/0)
  5 unassigned    wm       0               0         (0/0/0)
  6        usr    wm       0               0         (0/0/0)
  7 unassigned    wm       0               0         (0/0/0)