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

DIAG(8S) MAINTENANCE COMMANDS DIAG(8S) 0 Interphase controller, and sectors with Xylogics controllers. This command is not available for use with Adaptec disk controllers (ST-506 interface). mapcheck Enables/disables checking for overlapping mapped sectors/tracks during the posi- tion, read, test, or write commands. If the internal variable set by mapcheck is 'on' when an error occurs (default), then the current mappings (if any) are read from the disk and checked to see if there are overlapping mappings over the area of the disk where the transfer failed. partition Creates, assigns, or modifies logical partition tables for a disk. The UNIX operating system requires logical partitions.

The label command writes the partition map to the disk. There are standard partition tables for each type of disk that. diag knows about. position Continuously tests the disk by reading random sectors from the disk. To abort the test, type a .. C (CONTROL-C). quit Quits from diag and returns to the PROM monitor. rhdr Reads and displays the track headers for a specified track. Note: this command is available for the Xylogics 450 controller only. read Reads specified blocks from the disk. The read command prompts for the starting block number, number or blocks, and the block increment. The read command doesn't report the data it reads - it is intended for verifying that blocks are read- able.

scan Continuously scans over a range of sectors looking for defective sectors by writing/reading/verifying various bit patterns to sequential sectors. Any data on the disk in the range to be scanned is destroyed. Sectors previously mapped are not scanned, so any errors reported will be newly found defective sectors. Ir used with a Xylogics controller, defective sectors can be automatically mapped/slipped when they are found. To abort the scan, type a .. C (CONTROL-C). 0 seek Performs a seek test on the disk: a seek is made to every cylinder and to every pos- sible cylinder distance. slip Explicitly slips one sector on a track. Usually used for manual bad sector slipping.

The format and fiz commands usually do this automatically when bad sectors are found and the proper conditions exist. Note: slipping is available only with the Xylogics 450 controller, and only when the disk has a spare data sector per track. allpmsgs Displays/suppresses display or track headers before and after each slip operation that occurs during the fiz, format, and slip commands (toggles; default is display off). status Reports the ready status or each drive on the current controller. test Continuously tests the disk by writing random data to random sectors on the disk and then verifying that the correct data can be read back. The test command des- troys data on the disk.

To abort the test, type a .. C (CONTROL-C). time Turns timing on/off. When timing is on, diag reports on how long certain opera- tions take - diag is less verbose in this state so it doesn't waste time displaying messages (toggles; default is timing off). translate Translates a given block number into its decimal value, hexadecimal value, and log- ical disk address. verify Reads and displays the label from the disk. Shows the logical partition assign- ments. This done automatically when the label command has labelled the disk. 0 version Displays the SCCS identification strings for this version of diag. Sun Release 1.4 Last change: 1 February 1985 23