The Graham Utilities for OS/2 - Version 2


[Warpspeed]

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


FAT-Bad - Set bad clusters on FAT disks

Summary

FAT-Bad allows you to mark clusters as bad on FAT partitions.

Icon

Command Line Format

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

Switches

-on
Run on Machine Name.

Parameters

N1
This is the first cluster to be marked as bad. If it is the only parameter given, then only this cluster is marked bad. This parameter must be supplied.
N2
This is the last cluster to be marked as bad. This is an optional parameter. If it is given, then the first to last cluster (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 are in Clusters. They start at two (2) and go up to the maximum as defined by FAT-Info in the Number of clusters field.

Description

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

The clusters to be marked as bad, must first be free for allocation. If they are already in use, FAT-Bad will report it as such, and the sector will not be marked as bad. FAT-View 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 FAT-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

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