The Graham Utilities for OS/2 - Version 2


[Warpspeed]

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


HPFSStat - Examine the status of HPFS disks

Summary

HPFSStat displays the current status of, and allows modification of the status of HPFS disks.

Icon

Command Line Format

Usage: HPFSStat {Switches} <Drive Spec(s)>

Switches

-c
Mark the partition as CLEAN.
-d
Mark the partition as DIRTY.
-r
Remount the partition.
-on
Run on Machine Name.

Note : The -c and -d switches can not be specified together.

If no Drive Spec(s) are entered, the default drive only is searched

Description

HPFSStat allows you to change the status of HPFS disks. If there are no options entered the current status of the HPFS disk is displayed. If the disk was improperly stopped, the status of the disk will most probably be DIRTY. If a disk is DIRTY OS/2 will not mount the drive and you will either have to run CHKDSK /F to clean it, or manually change the status to CLEAN. HPFSStat can be used to manually change the status to CLEAN. HPFSStat can optionally remount the drive, to enable OS/2 to access the files on it. Using the remount option you will not have to reboot the system in order for OS/2 to recognise the drive.

The possible values for the partition status are:

Status Values:

00
Partition is Clean.
01
Partition is Dirty.
02
Spare DIRBLK's are used.
04
Hotfix sectors are used.
08
Bad sector, corrupt disk.
10
Bad bitmap block.
20
Partition was quick formatted.
40
Reserved.
80
An old version wrote to the partition.

If you ask HPFSNull to operate on a non HPFS drive you will get the following message:

Drive is not HPFS.

-c Mark the partition as CLEAN

This switch forces HPFSStat to mark the partition as CLEAN.

-d Mark the partition as DIRTY

This switch forces HPFSStat to mark the partition as DIRTY.

-r Remount the partition

Normally, after you have CLEANed a partition you will have to reboot the computer in order to allow OS/2 file access to the drive. This option attempts to remount the partition. If a partition is DIRTY OS/2 will not let you access any files on the drive. It will return the error SYS0005: Access is denied. If the disk is successfully remounted OS/2 will allow file access to the drive. Using this option saves you from having to reboot the computer to access the drive.

-on Run on Machine Name

This switch forces DEPIPE to be loaded and allows HPFSStat 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

HPFSStat C: -c
HPFSStat will clean the HPFS drive C:.
HPFSStat F: -cr
HPFSStat will set the status of drive F: to clean and remount the drive.
HPFSStat D: -c -on \\DELENN
HPFSStat will clean the drive D: on the remote machine named DELENN.