home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 3
/
TheARMClub_PDCD3.iso
/
hensa
/
hd
/
b193_1
/
!ReadMe
next >
Wrap
Text File
|
1994-03-04
|
4KB
|
126 lines
Hard disc map fixer (catchy name, huh?)
===================
ALPHA TEST Version 0.000000001
==============================
READ THIS ENTIRE FILE FIRST
(Apologies if it is long and waffly, but I would like to discourage the
casual user from running the fixer without knowing what was going on)
If *CheckMap on your E-format hard disc reports "Map inconsistent with
directory tree" then this program should fix it. It is thoroughly
safeguarded, and takes backups to ensure that no damage will be done to your
hard disc.
HOWEVER, I can accept no responsibility for any loss of data due to use, or
misuse, of this program. You use it at YOUR risk.
ALSO NOTE that this is an ALPHA TEST version. I have only tested it on three
machines. It is not guaranteed to work successfully on your machine, or
indeed to leave it unharmed.
=========================================================================
Right, that's the end of the disclaimers.
This program searches for areas of disc that are marked as used in the map,
but are not in fact occupied by any files. It then creates a directory of
dummy files that use these areas. It will then check the hard disc map
again, and if 'Map good' is reported, will exit. You can then delete these
files, and the wasted space on the hard disc will be recovered. If the map
is still inconsistent, it will remove the files again, and your hard disc
will be left unaltered.
IF ANYTHING GOES WRONG:
If the program stops with an error, then it is probably due to lack of
memory (especially 'no room for this DIM' or 'Too many nested structures').
In this event, it will not have altered the contents of your hard disc, so
just allocate more memory, and try again.
If the program stops while performing the *CheckMap command then your hard
disc will be left in an intermediate state. This will be safe, as long as you
do not touch the contents of the 'Broken' directory.
HOW TO USE:
1) Create the directory 'Broken' in the root directory of the hard disc
2) Count the number of files on the hard disc (In the filer, use Select All,
then Selection=>Count)
2½) Put a floppy disc in drive 0 with at least 2K free.
3) Using the task manager, set the 'Next' slot to as large a value as
possible.
4) Run the program
5) Enter the first letter of the filing system
6) Enter the drive number
7) Enter the number of files counted
The program will then start. It will display information as it goes along:
1) It reads the basic disc information
2) It loads the disc map, and scans it, making a note of the size and
location of each fragment on the disc.
3) It scans the directory structure recursively, making a note of in which
fragment each file is stored.
4) It compares the results of the last two steps, looking for fragments that
are not occupied by a file, and fragments that are larger than necessary.
4¼) If any files are too small for their fragments, it asks you to back
these up. Do this, and then run the program again.
4½) It makes a backup of the 'Broken' directory to ADFS::0.$.BrokenDir
5) It alters the 'Broken' directory to create dummy files that use the
unoccupied fragments.
6) It performs a *CheckMap
7) If the *CheckMap was successful, then it exits. Otherwise it restores the
backup of the Broken directory from the floppy disc, so your hard disc is
left unaltered.
If the *CheckMap was successful, then you can delete the 'Broken' directory
and its contents (count them first to see how much space has been
recovered!)
If the *CheckMap was unsuccessful, then the program is unable to fix your
hard disc. If this is the case, please e-mail me, and I will see what I can
do. This program has worked successfully on two of the three machines I have
tried it on.
========================================================================
Bug reports, congratulatory messages, pocket money, spare hard discs to:
Kevin Bracey
36 Field View Drive
Downend
BRISTOL
BS16 2TT <kjb1003@phx.cam.ac.uk>
========================================================================