The Graham Utilities for OS/2 - Version 2


[Warpspeed]

[Table of Contents] [Index] [Previous] [Next]


HPFS-Bad - Set bad sectors on HPFS disks

Summary

HPFS-Bad allows you to mark sectors as bad on HPFS partitions.

Icon

Command Line Format

Usage: HPFS-Bad {Switches} Drive Spec <N1> [N2]

Switches

-on
Run on Machine Name.

Parameters

N1
This is the first sector to be marked as bad. If it is the only parameter given, then only this sector is marked bad. This parameter must be supplied.
N2
This is the last sector to be marked as bad. This is an optional parameter. If it is given, then the first to last sectors (inclusive) will be marked bad.

Note : Both of the parameters can be given in either decimal or hexadecimal. Decimal is the default. If you wish to enter values in hexadecimal, simply prefix the numbers with a "0x".

Note : The value of the parameters is in Logical Sectors, not absolute. They start at zero (0) and go up to the maximum as defined by HPFSInfo in the Total number of sectors field.

Description

HPFS-Bad allows you to mark sectors on HPFS disks as bad, so that they will not be used.

The sectors to be marked as bad, must first be free for allocation. If they are already in use HPFS-Bad will report it as such, and the sector will not be marked as bad. HPFSView may be used to determine if the sector is in use, and if so, by what.

-on Run on Machine Name

This switch forces DEPIPE to be loaded and allows HPFS-Bad to access disk drives located on remote machines. The Machine Name must be specified with a leading "\\". The machine name of the remote machine will have been specified when the network software on the remote machine was installed.

Note : DESVR must be running on the remote machine for this option to work.

Consult Appendix H - DESVR for further details.

Examples

HPFS-Bad
This will report an error as no drive specification or starting sector number was given.
HPFS-Bad E: 1000
HPFS-Bad will attempt to mark logical sector 1000 (decimal) as bad.
HPFS-Bad E: 0x1000
HPFS-Bad will attempt to mark logical sector 1000 hexadecimal (4096 decimal) as bad.
HPFS-Bad F: 1000 0x2000
HPFS-Bad will attempt to mark logical sectors 1000 to 8192 (decimal), inclusive as bad.