User`s guide
INITIALIZE
/REPLACE[:RETAIN]
If you have an RK06, RK07, RL01, or RL02 disk, use this option to scan a disk
for bad blocks. If RT–11 finds any bad blocks, it creates a replacement table so
that routine operations access good blocks instead of bad ones. Thus, the disk
appears to have only good blocks. Note, though, that accessing this replacement
table slows response time for routine input and output operations.
If you use /REPLACE:RETAIN, RT–11 initializes the volume and retains the bad-
block replacement table (and FILE.BAD files) created by the previous /REPLACE
command.
Note that if the monitor file resides on a block that contains a bad-sector error
(BSE) and you are doing bad-block replacement, a boot error results when
you attempt to bootstrap RT–11. In this case, move the monitor. Use the
DIRECTORY/BADBLOCKS/FILES command to determine which files reside on
bad blocks.
With an RK06, RK07, RL01, or RL02 disk, you have the option of deciding which
bad blocks you want replaced if there is a replacement table overflow. The RK06s
and RK07s support up to 32 bad blocks in the replacement table; the RL01s and
RL02s support up to 10.
With an RK06 or RK07 disk, RT–11 can replace only those bad blocks that
generate a bad-sector error (BSE). With an RL01 or RL02 disk, RT–11 can replace
any kind of bad block. The following paragraphs describe how to designate which
blocks to replace on an RK06, RK07, RL01, or RL02 disk.
When you use /REPLACE, RT–11 displays a list of replaceable bad blocks as in
the following sample:
.INITIALIZE/REPLACE DL0:
Block Type
030722 12754. Replaceable
115046 39462. Replaceable
133617 46991. Replaceable
136175 48253. Replaceable
136277 48319. Replaceable
136401 48385. Replaceable
140405 49413. Replaceable
146252 52394. Replaceable
DUP-I-Bad blocks detected 8.
If there is a replacement table overflow, RT–11 prompts you to indicate which
blocks you want replaced as follows:
?DUP-W-Replacement table overflow DEV:
Type
RET
, 0, or nnnnnn (
RET
)
Replace block
The variable nnnnnn represents the octal number of the block you want RT–11
to replace.
After you enter a block number, RT–11 responds by repeating the Replace block
prompt. If you type a 0 at any time you do not want any more blocks replaced,
RT–11 Command Descriptions 149










