02.07.2013 Views

A/UX® System Administrator's Reference Sections 1M, 7, and 8

A/UX® System Administrator's Reference Sections 1M, 7, and 8

A/UX® System Administrator's Reference Sections 1M, 7, and 8

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

adblk(IM) badblk(IM)<br />

NAME<br />

badblk - set or update bad block information<br />

SYNOPSIS<br />

badblk [-r] /dev/rdsk/c?d?s? [blkno ... ]<br />

DESCRIPTION<br />

badblk sets or updates bad block infonnation for disk partitions.<br />

badblk first attempts to alter a bad block by hardware sparing.<br />

In the event that hardware sparing fails <strong>and</strong> the device supports alternate<br />

bad blocking, badblk will attempt to alternate block the<br />

bad block. Hardware sparing may fail if the device does not support<br />

hardware sparing or if the device's capacity for hardware<br />

sparing has been exceeded.<br />

If you invoke badblk without specifying block numbers, it will<br />

search the whole device for bad blocks <strong>and</strong> print the block<br />

numbers of any that are found.<br />

FLAG OPTIONS<br />

-r When this option is specified, badblk will not attempt to<br />

block any bad blocks, but instead will report those that are<br />

found.<br />

blkno<br />

One or more block numbers separated by blanks.<br />

EXAMPLES<br />

badOlk /dev/rdsk/cOdOs31<br />

does a full read-verify on the whole disk associated with controller<br />

zero, drive zero. Note that the raw device must be specified.<br />

badblk /dev/rdsk/cOdOsO<br />

does a full read-verify on partition zero (usually the root partition)<br />

of the disk associated with controller zero, drive zero.<br />

NOTES<br />

badblk uses very simple tests to determine whether or not a<br />

block is bad.<br />

The alternate block map information can be accessed <strong>and</strong><br />

modified through the dp(IM) utility.<br />

The badblk comm<strong>and</strong> does not work on floppy disks.<br />

February, 1990<br />

Revision C<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!