Sun Microsystems Sun Workstation — Sun Workstation 1.4 Manual: Release Notes, Installation, Troubleshooting

D1AG(8S) MAINTENANCE COMMANDS DIAG(8S) 0 NAME diag - stand-alone disk initialization and diagnosis SYNOPSIS b stand/dlag DESCRIPTION Diag is a general-purpose stand-alone utility package for disk initialization and diagnosis. Diag supports the various SMD and ST-506 disk controllers. Note: that diag can only be called from the Sun Workstation PROM monitor - diag is not a sys- tem utility. The most common use of diag is formatting and labelling a disk - see the format, label, and par- tition commands. Diag is interactive - it prompts for options and arguments. There are two phases to using diag:

in the first phase, diag prompts for information about the type of disk drive and controller that it is working with, and essentially 'configures' itself to work with that disk and controller. At the end of this phase, diag tries to access the disk controller you have defined. If the attempt succeeds, diag gives you a status report on the disk and gives you a 'diag>' prompt; this signals the beginning of diag's second phase. If the attempt to access the controller fails (if the con- troller is mis-defined or non-existent, for example), you get a bus error message, and return to the PROM monitor.

During diag's second phase, you can use the commands listed below in response to the 'diag>' prompt. Only enough characters to uniquely identify the command need be typed. The com- mands that diag currently recognizes are: 0 abortdma Aborts/does not abort the dmatest command when a data miscompare is detected. That is, if the internal variable set by abortdma is 'on' (default), the dmatest com- mand aborts as soon as it finds an error; otherwise, the dmatest continues. clear dlag Sends a restore command to a disk. This is needed to manually reset disk faults. Re-initializes the diag program itself - goes back to phase one of the initialization process described above.

dmateat Begins a continuous DMA test. The test copies random data to and from the desig- nated controller, comparing data. If a miscompare is found, an error message is displayed and the test aborts (unless the abortdma command is used - see abortdma, above). Note: this command is available only with the Xylogics 450 Controller. errors Reports/does not report all errors as they occur (toggles; default is reporting off). ftx Formats and verifies a range of tracks; any defective tracks/sectors found are automatically corrected using mapping or slipping. Note: this command is avail- able for SMD controllers only.

format For SMD disks, formats the entire disk; for SCSI disks, initiates the SCSI format program. help or? Displays a list of the available commands. Info Reports/suppresses report of all disk activity as it completes (toggles; default is reporting off). label Labels the disk. map Displays current mappings and allows you to explicitly map one track/sector to a different track/sector. Usually used for manual bad sector mapping. The format and fix commands usually do this automatically when a bad track/sector is found. Note: the map command is disk controller-dependent: you can map tracks with an 0 22 Last change: 1 February 1985 Sun Release 1.4