home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 6 File
/
06-File.zip
/
hva2001.zip
/
HVA.DOC
next >
Wrap
Text File
|
1996-02-06
|
4KB
|
102 lines
HVA - the HPFS Volume Analyzer - Version 3.07 (06-Feb-1996)
WARNING: This program may NOT be distributed without written permission
from the author. If you received this program from anyone
other than the author, or OS/2 Support staff, DO NOT USE IT!
WARNING: This program CAN MODIFY YOUR DATA! If you are unsure of what
you are doing, DO NOT USE THIS PROGRAM. If you do use it,
YOU DO SO AT YOUR OWN RISK!
(C) 1992, 1996 IBM Corp. All Rights Reserved.
Description:
This program is designed to assist OS/2 support personnel in diagnosing
errors with HPFS filesystems. Its main purpose is to scan HPFS file
allocation information, and report any errors.
Syntax:
HVA [-E] [-D{+|-}] [-N] [-{p|P}nnn] [-R] [-S] [-Vx.y] [-3] filespec
filespec should be a fully-qualified drive\path specification.
wildcards (? and *) are allowed in the last component of the path.
Do not use relative paths (paths containing "." or "..").
Switch meanings:
-E Only display information for files with errors
-D- Clear the DIRTY VOLUME flag
-D+ Set the DIRTY VOLUME flag
-N Don't consider FNODE/DIRENT name mismatches as errors
-pnnn Search for matching filenames with codepage other than nnn
-Pnnn Change codepage to nnn for all matching filenames
-R Recurse into subdirectories
-S Display more volume information
-Vx.y Set HPFS version ID to x.y
-3 Consider HPFS386 ACL information as errors
Examples of use:
1) If you suspect some kind of error on HPFS drive C:, use the command:
HVA -E -R -S C:\* > A:HVA.LOG
This command process ALL files on C:, but only displays file
information if it finds an error. The information is written to the
log file, "A:HVA.LOG." This file can be sent to OS/2 support for
analysis.
2) If you suspect an error on a specific HPFS file, use the command:
HVA -S C:\path\bad_file_name > A:HVA.LOG
This command dumps all HPFS allocation information pertaining to the
file, "C:\path\bad_file_name" and writes that dump to A:HVA.LOG.
3) If you had to turn off your computer without flushing the filesystem,
and need to access the drive WITHOUT running CHKDSK, use the command:
HVA -D- C:
This command clears the "dirty" flag on drive C:, which will allow
HPFS to mount the drive without running an auto-CHKDSK.
4) To find all filenames using codepage other than 437, use the command:
HVA -R -E -p437 C:\*
This command will display an error message if any filename (or
directory name) is using a codepage other than 437. Only filenames
with characters > 0x7F are actually "using" a codepage.
5) To switch codepages on a group of filenames, use the command:
HVA -R -E -P437 C:\*
This will find all filenames using codepages other than 437, and
change those filenames to 437.
WARNING: This command makes changes to HPFS directory entries. There
is no "are you sure" warnings. You should always redirect the output
of this command to a logfile, so you can reverse the change if you
find it wasn't what you expected. You should also use the -p switch
first, to see what filenames the -P switch will change.
While the -P switch will change codepages, which will allow you
to access files with characters that aren't represented in your
native code page, such a switch can often cause files to fall out
of lexical order (strict order is required by HPFS). Once you use
the -P switch, you should use the same command with -p to see if
you have created any ordering problems. Such problems can usually
be corrected by running CHKDSK, or moving files from one directory
to another.
NOTE: If the target code page in the -P switch is not already
recorded on the drive, the -P switch will be ignored, an error
message will be displayed, and HVA will continue as if the -p switch
were supplied instead.