Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ badblk(1M) — A/UX 0.7

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     badblk(1M)                                             badblk(1M)



     NAME
          badblk - set or update bad block information

     SYNOPSIS
          badblk [-w] [-mN] /dev/rXYZ [M]

     DESCRIPTION
          badblk sets or updates bad block information for disk drives
          which support soft sector bad block remapping.

          -w          write/verify to determine if there is a bad
                      block; otherwise, only read.

          -mN         set the number of alternate blocks to N.
                      Returns an error if N > NICALT (currently 50).

          /dev/rXYZ   device name.

          M           one or more block numbers separated by blanks.

          If you invoke badblk without a block number and you haven't
          verified bad blocks before, it checks each block on the disk
          and sets up bad block information in block 0.

          If you invoke badblk with no block numbers, but block 0
          already has bad block information, it verifies the whole
          disk and adds any new bad blocks not already on the block 0
          table.

          If you invoke badblk with the device name and block numbers,
          it only updates the indicated blocks in block 0.

          After assigning alternate blocks, it updates block 0 and
          verifies the updated blocks to make sure the alternate
          blocks are good.  If the alternate blocks are not good, it
          assigns new alternate block numbers.

          You should specify a raw device that accesses the entire
          disk and allows for writing block zero.

     EXAMPLE
               badblk -w /dev/rw1hw0

          does a full write/verify on winchester 1 and updates the
          header block.  rw1hw0 specifies raw (r) winchester 1 (w1),
          the full disk (h), with the capability of writing block 0
          (w0).

               badblk /dev/rw1hw0 3754 8123

          adds blocks 3754 and 8123 to the badblock list.




     Page 1                                       (last mod. 12/12/86)





     badblk(1M)                                             badblk(1M)



     FILES
          /usr/bin/badblk





















































     Page 2                                       (last mod. 12/12/86)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026