home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 3
/
PDCD_3.iso
/
utilities
/
utilsf
/
fsck
/
elim_help
< prev
next >
Wrap
Text File
|
1995-02-05
|
4KB
|
103 lines
eliminate (1.11) - file eliminator!
NOTE: this program is SHAREWARE. Read the !SHAREWARE file for more info.
eliminate is a disc utility that eliminates a file from the directory but not
from the disc map. This means that the disc space used by the file is lost
(you should recover it using fsck). eliminate can effectively be useful only
to remove the files that cannot be deleted in the usual way by RISC OS (for
example a broken directory).
Usage
-----
eliminate filename
Why you could need eliminate
----------------------------
eliminate is one of the programs that you generally don't need to use but that
sometimes can be very helpful. I think that the only use of eliminate is to
delete a broken directory or a non-mapped file that cannot be removed by RISC
OS. After the file or directory has been removed you should run fsck so that
the disc space that was used by it will be relinked in a file. You can
finally remove that file and gain some free space (and finally have a good
map, too!). Generally, all the files that were stored in a broken directory
will be relinked by fsck too but you will not be able to have their original
names and informations back. Anyway, new versions of fsck (from 1.20 onward)
should be able to restore all the subdirectories and their content.
While fsck scans the directory tree, it will tell if there is some file to
eliminate.
If you find another use for eliminate I will be really pleased to hear from
you.
Disclaimer
----------
eliminate is a very dangerous program (since it removes files, corrupts the
map and, obviously, writes to your disc). If you remove an important file and
(for some obscure reason) fsck will not recover its content, I am sorry for
you but I can't do nothing more since you are the only responsible for what
you made!
Actually eliminate is less dangerous than a common 'delete' because if you
eliminate a files, the informations to retrieve it are still stored in the
map and fsck should be able to give you the file back (but you will never
recover its original name); on the other hand a delete will not 'corrupt'
the map while eliminate will make it inconsistent.
Summing up: it's not wise to play with eliminate if you have no real reasons
to use it.
History
-------
1.00 First working version. Tried only on floppies...
1.01 Some test was done on HardDiscs (all successful). Updated to match
the changes in the common sources with fsck.
1.02 Auto-dismount the disc after the file has been eliminated.
1.10 Completely rewritten in order to keep it up-to-date with the new
versions of fsck. This caused a big size reduction (since most of
the code included in the old one was used only by fsck!). Some more
check and meaningful messages added.
1.11 Nothing really new, just linked with a more stable library (see fsck).
Thanks go to:
-------------
- Keith Bailey who was the first who tried eliminate (successfully!) on
his HardDisc.
- the person who spread on Internet a document describing the E Format
structure.
- Mohsen Alshayef for his !ArcTools, a very useful utility that allowed
me to search in the ROM FileCore module for some code...
Conditions of use
-----------------
eliminate can only be distributed with the complete fsck suite.
Read the !SHAREWARE file for the conditions of use and distribution of the
whole package.
I can be contacted at the following address:
Sergio Monesi
Via Trento e Trieste 30
20046 Biassono (MI)
Italy
E-mail address:
pel0015@cdc8g5.cdc.polimi.it
If you don't receive a reply (or if the message is bounced) I can also be
contacted at:
sergio@phantom.com
or:
sergio@g386bsd.first.gmd.de