skip book previous and next navigation links
go up to top of book: HP OpenVMS System Manager's Manual, Volume 1:... HP OpenVMS System Manager's Manual, Volume 1:...
go to beginning of chapter: Managing Storage Media Managing Storage Media
go to previous page: Using Interrupt Priority Level C (IPC) Using Interrupt Priority Level C (IPC)
go to next page: Using Files and DirectoriesUsing Files and Directories
end of book navigation links

Using the Bad Block Locator Utility to Detect Media Errors  



The DCL command ANALYZE/MEDIA invokes the optional Bad Block Locator utility (BAD), which analyzes block-addressable media and records the location of blocks that cannot reliably store data.
NoteMany newer devices automatically check for bad blocks; therefore, BAD is more useful with older devices that do not check for bad blocks.

To test the blocks on a volume, ANALYZE/MEDIA performs the following tasks:

If the data does not compare exactly, a block cannot reliably store data.

When the Bad Block Locator utility locates a bad block, it records the address of the block. Consecutive bad blocks are recorded as single entries for non-last-track devices. After it finishes testing the disk, BAD writes the addresses of the bad blocks into a file called the detected bad block file (DBBF).


CautionTesting a volume for bad blocks destroys its contents. However, you can update the detected bad block file (DBBF) without erasing the contents of the volume by using the ANALYZE/MEDIA qualifiers /NOEXERCISE and /BAD_BLOCKS.

How to Perform This Task

To use BAD, perform the following steps:

  1. Allocate the device with the DCL command ALLOCATE (to ensure that the device is not accessed by any other programs).
  2. Enter the DCL command MOUNT/FOREIGN.

    When the device is mounted as foreign, the system does not recognize it as a Files-11 volume, and BAD can execute.
  3. Enter the DCL command ANALYZE/MEDIA.

Refer to online help or to the archived manual OpenVMS Bad Block Locator Utility Manual for details on using the Bad Block Locator utility.


go to previous page: Using Interrupt Priority Level C (IPC) Using Interrupt Priority Level C (IPC)
go to next page: Using Files and DirectoriesUsing Files and Directories