Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (9842 KB)
addbadsec(1M)Name | Synopsis | Description | Options | Operands | Files | Attributes | See Also | Notes Name
Synopsisaddbadsec [-p] [-a blkno [blkno]...] [-f filename] raw_device Descriptionaddbadsec is used by the system administrator to map out bad disk blocks. Normally, these blocks are identified during surface analysis, but occasionally the disk subsystem reports unrecoverable data errors indicating a bad block. A block number reported in this way can be fed directly into addbadsec, and the block will be remapped. addbadsec will first attempt hardware remapping. This is supported on SCSI drives and takes place at the disk hardware level. If the target is an IDE drive, then software remapping is used. In order for software remapping to succeed, the partition must contain an alternate slice and there must be room in this slice to perform the mapping. It should be understood that bad blocks lead to data loss. Remapping a defective block does not repair a damaged file. If a bad block occurs to a disk-resident file system structure such as a superblock, the entire slice might have to be recovered from a backup. Options
The following options are supported: OperandsFilesThe raw device should be /dev/rdsk/c?[t?]d?p0. See disks ### UNMATCHED MARKUP: manvolnum ### for an explanation of SCSI and IDE device naming conventions. AttributesSee attributes(5) for descriptions of the following attributes:
See Alsodisks ### UNMATCHED MARKUP: manvolnum ### , diskscan ### UNMATCHED MARKUP: manvolnum ### , fdisk ### UNMATCHED MARKUP: manvolnum ### , fmthard ### UNMATCHED MARKUP: manvolnum ### , format ### UNMATCHED MARKUP: manvolnum ### , attributes(5) NotesThe format ### UNMATCHED MARKUP: manvolnum ### utility is available to format, label, analyze, and repair SCSI disks. This utility is included with the addbadsec, diskscan ### UNMATCHED MARKUP: manvolnum ### , fdisk ### UNMATCHED MARKUP: manvolnum ### , and fmthard ### UNMATCHED MARKUP: manvolnum ### commands available for x86. To format an IDE disk, use the DOS "format" utility; however, to label, analyze, or repair IDE disks on x86 systems, use the Solaris format ### UNMATCHED MARKUP: manvolnum ### utility. Name | Synopsis | Description | Options | Operands | Files | Attributes | See Also | Notes |
||||||