Release 1.4 Manual Using the New diag to Format and Label Disks 0 diag> format format/verify, DESTROYS ALL DISK DATA! are you sure? y 2. Now, diag asks for the number of surface analysis passes to do on the disk. The surface analysis phase of the formatting is for detecting bad spots on the disk and mapping them to alternate places. When formatting a disk for the first time, five surface analysis passes is a reasonable number. You can use just one surface analysis pass if you are reformatting a disk that has been formatted before and is known not to have any bad spots: # of surface analysis passes (5 recommended)?
5 The complete format phase (5 passes) takes about two hours for a Fujitsu M2322, and about five hours for an Eagle. It is well worth taking the time to do this when formatting a new disk. After surface analysis, diag formats the disk, and displays the current cylinder number as it for- mats each cylinder. At the end of the format process, diag displays a message telling you that it has finished; then it tells you to use the label command to label the disk: cyl 588 format complete - 0 bad sector(s) Use the label command to label the disk diag> 0 Labelling the disk is the next step. 3. 2.4, Labelling SMD Disks A disk must be labelled after it has been formatted.
The disk label records information about how the disk is divided into partitions for such things as paging space and file systems. To label your disk, you use the label subcommand. When you give the command to diag, it asks if you want to use the logical partition map that is 'built in' to the program, and then asks for confirmation before proceeding 5 . Default partitioning for Sun-supplied SMD disks is outlined in the following table 6 : • Ir these default maps are inadequate for your system, you can use diag's partition command at this point to design your own labels. See diag(8S) for information.
11 Note that in all discussions of disk partitioning, numbers are approximate, since formatted capacity depends on the type or controller being used with the drive. Also, note that a 'Megabyte', as far as numbers given in discussions of disk capacity, is defined as one million bytes. 0 Release 1.4 of February 1985 3-7