The Graham Utilities for OS/2 - Version 2


[Warpspeed]

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


HPFSInfo - Report on HPFS internals

Summary

HPFSInfo reports all of the information contained in the Super and Spare blocks.

Icon

Command Line Format

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

Switches

-b
Display bad sector lists.
-c
Display the spare directory clusters.
-d
Display dynamic hot fix list.
-f
Display the free spaces.
-h
Hard disks only.
-m
Display the bitmap sector lists.
-on
Run on Machine Name.

Description

Note : For a complete discussion on the terms and concepts presented here, please consult Appendix G - HPFS Internals.

HPFSInfo displays all of the information which is obtainable from the HPFS Super and Spare blocks.

The information which it returns is:

Super Block Information:

Total number of sectors
This is the total number of useable sectors on the volume. It does not include the hidden sectors which are at the beginning of the volume.
CHKDSK /F was last run
This is the last date and time that CHKDSK /F was run. If CHKDSK has not been run, HPFSInfo will report Never.
Number of bad sectors
This is the total number of bad sectors on the volume.
Root directory FNODE
This is the logical sector number of the root directory FNode.
List of Bitmap sectors
This is the starting sector number of the lists which map out the locations of all of the bitmap sectors.
List of Bad sectors
This is the starting sector of the bad sector lists. It is four sectors long. Each group has room for 511 entries. If there are more than 511 bad sectors, the first entry in the list is a pointer to the next group, and so on.
Number of sectors in directory band
This is the number of sectors in the directory band.
Starting sector of directory band
This is the logical sector number of the first sector of the directory band.
Ending sector of directory band
This is the logical sector number of the last sector of the directory band.
Bitmap sector for directory band
This is the starting logical sector number of the bitmap sectors for the directory band. The directory band has its own bitmap.
ACL information sectors
There are eight sectors allocated near the directory band, which are used for holding access control list information. These sectors are only used with HPFS386, but they are reserved and unused in the normal HPFS.

Spare Block Information:

Partition status flag
This is the partition status flag. It describes the current status of the disk. The values are added together as follows:
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.
List of hot fixes
This is the logical sector number of the list which contains all information about the current hot fixes.
Number of hot fixes used
This is the number of hot fixes currently in use.
Total number of hot fixes available
This is the total number of hotfix locations which have been allocated for the volume.
Number of spare directory clusters
This is the total number of spare directory clusters. It is normally 20. They are normally located immediately after the end of the directory band.
Total number of spare dir clusters
This is the number of spare directory clusters which are currently free.
Code page directory
This is the logical sector number of the code page directory for the volume.
Number of code pages
The number of code pages supported on this volume.
Code Page #n (Ctry: x CP: y) at
This is the logical sector number of the nth code page for the volume. The country code x and code page id y for the code page is also displayed.

Other Information:

Number of free spaces
This is number of free spaces as calculated from the bitmaps.

When the information which is returned is a logical sector number, it is also displayed as a Cylinder, Head and Sector.

If you ask HPFSInfo to report on a non HPFS drive you will get the following message:

Drive is not HPFS.

-b Display bad sector lists

This switch displays the logical sector numbers of all sectors which have been marked as bad. The sector numbers of the bad sector lists are also displayed.

-c Display the spare directory clusters

The -c switch forces HPFSInfo to list the starting logical sector numbers of all of the spare DIRBLKs. Normally there are twenty spare DIRBLKs. Each DIRBLK is four sectors long.

-d Display dynamic hot fix list

This switch tells HPFSInfo to display all of the currently hot fixed sectors. The original bad sector and the sector that it was remapped to are listed.

-f Display the free spaces

The -f switch forces to HPFSInfo to display the free space of the disk. The first and last sectors of the free spaces are displayed. They are displayed as both logical sector numbers and as a Cylinder, Head and Sector number.

-h Hard disks only

HPFSInfo will scan all logical disk drives defined by the system, starting at drive C:. The drives are scanned in order, starting at C:, then D: and so on.

-m Display the bitmap sector lists

This switch tells HPFSInfo to display the starting sector locations of all of the bitmap sectors. Each group of bitmap sectors is four sectors long.

-on Run on Machine Name

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

HPFSInfo
This will produce the minimum amount of information that HPFSInfo can extract from the Super and Spare blocks.
HPFSInfo /b
HPFSInfo will display all of its normal information as well as all of the sectors which are currently marked as bad.
HPFSInfo -bcdfhm
HPFSInfo will scan all hard disks and report on the maximum amount of information available.
HPFSInfo C: -bcdfm -on \\WARP
HPFSINFO will display all of the information available about C: on the remote machine named WARP.