Configuring a hard disk

Scanning a disk for defects using badtrk

The badtrk(ADM) utility scans IDE, EIDE, UDMA, ESDI, SCSI, and USB disks for defective tracks. It maps any flawed tracks to good ones elsewhere on the disk. It also creates a table of all the bad tracks on your hard disk.

NOTE: Do not run badtrk on IDA disks. IDA controllers handle bad tracks automatically.

When you first install a SCSI disk, badtrk creates a table of bad blocks in the partition. On SCSI disks, badtrk tries to use spare disk blocks that are maintained by the disk controller as replacements for bad blocks. If bad blocks cannot be mapped out in this way, the disk driver maps out bad blocks using the spare blocks and the bad block table in the disk partition. You can force it to use this table by specifying the -O option to badtrk. You can also enable Automatic Read/Write Remapping (ARR/AWR) for the entire SCSI disk if the disk controller supports this feature. Any defects that arise will be remapped without notifying you.

badtrk can:

When installing a new disk, you should perform a thorough destructive scan on the complete UNIX system partition. It may take several hours to scan a large hard disk.

WARNING: If you run badtrk on a disk which already contains filesystems, the data in these will be lost if you change the size of the bad block table. In such a case, remake the filesystems and restore the data from a backup archive.

Next topic: Dividing a disk partition into divisions using divvy
Previous topic: Partitioning a hard disk using fdisk

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003