home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of A1200
/
World_Of_A1200.iso
/
programs
/
disk
/
misc
/
pfs
/
tools
/
diskspare2.2
/
crunchdisk
/
doc
< prev
next >
Wrap
Text File
|
1995-02-27
|
8KB
|
221 lines
CrunchDisk 1.2
written and © 1993
by Klaus Deppisch
All rights reserved
What is it:
CrunchDisk is a disk-archiver. That means it crunches a whole
disk or a partition to a single file.
Why one more disk-cruncher? Because 'the others' can't
crunch disks which are formatted in my disk-format!
With CrunchDisk you may crunch EACH device which works like the
trackdisk.device, e.g. a harddisk-partition, a Syquest-catridge,
a normal disk formatted with FFS, DirCache, PFS or whatever,
a MS-DOS-disk (via mfm.device) OR a disk formatted with
diskspare.device (that's it).
What do you need:
Kickstart 2.0 or higher.
Powerpacker.library V35 or higher.
Reqtools.library V37 or higher.
XpkMaster.library V2 or higher. (+ RDCN,BLZW,IMPL,NUKE,SHRI.lib)
Powerpacker.library and reqtools.library are both copyright
by Nico Francois.
XPK libraries are copyright by Urban Dominik Mueller and others.
How to use:
CrunchDisk is controlled by gadgets. The great reqtools-
requesters can be controlled by keyboard too. ('ESC' for
cancel, 'return' for ok.)
New for v1.2:
You may call CrunchDisk with a commandline now. Usage:
'CrunchDisk filename devicename' where filename is the name
of the file (whole path!) you wish to write back to a device.
Example: 'CrunchDisk dh0:test DF1:' The ':' behind the device-
name isn't needed. The commandline works ONLY for write back,
AND the verify option CAN'T be disabled !
Gadgets:
Mode: There're two modes.
1. Dev->File (Device to File)
Transform a disk/partition to a (crunched) file.
2. File->Dev (File to Device)
Write a (crunched) file back to disk/partition.
Cr.: (Crunchmode) three possibilities:
1. None (without compression)
2. PP (with powerpacker.library)
3. XPK (with xpk.library)
Without compression makes sense on disks with only
lha-archives on it. (they can be crunched with shrink only)
Eff.: efficiency
When crunchmode is set to 'none' this gadget is disabled.
Fast (pp) RDCN (xpk)
Mediocre (pp) BLZW (xpk)
Good (pp) IMPL (xpk)
Very Good (pp) NUKE (xpk)
Best (pp) SHRI (xpk)
There are five modes per lib.
Where 'best' and 'shri' are the best. It may be that
'good' (pp) is better than 'very good' (pp) or 'impl'
is better than 'nuke'. It depends to the data you want
to crunch. -> Try different modes.
Only SHRInk is always the best AND slowest mode. (on a
68020/14M Amiga it's bloody slow. I've not tested it on
a 68000/7M Amiga !)
In case you've got a sublib for xpk.lib which is better
than SHRInk please send it to me.
Verify Write:
With this gadget you can switch on and off the verify option.
Should be on with new disks. Should always be on!
Password:
If this gadget is active, a password is saved with the file.
You can't write back the file without knowing the password.
When crunching a disk you are prompted to enter a password.
To be sure you typed the right word it is shown to you again.
When writing back a file you must enter the correct password
(You don't see the word). If you fail three times the
procedure is cancelled.
Device:
In this list you see all the available devices (e.g. DF0,DF1,
DH0,...). Choose the one you want to work on with the mouse.
On the right hand side some device-specific values are displayed.
Heads (read/write-heads)
Sectors (sectors per track)
LowCyl (first cylinder)
HighCyl (last cylinder)
Bytes/S. (bytes per sector)
Device (name of the device)
ReRead List:
With this Gadget you can cause CrunchDisk to reread the complete
devicelist. This will be necessary for HD floppies or other devices
which are able to change the capacity during operation.
About:
A very interesting (?) text and the amount of free memory
are displayed (chip/fast as usual).
Save Configuration:
The current state of the Mode/CrunchMode/Eff./Device/Verify
and Password - gadgets are saved to disk.
(to S:CrunchDisk.config)
Cancel:
While crunching/writing a disk/partition and only then you
can click on cancel to cancel the operation.
It may take a few seconds (maybe even some more seconds)
until it is really canceled.
Start:
Start crunching/writing.
Dev->File:
You're prompted to type in a filename (or select an existing
file). If the file exists you must confirm to overwrite it.
If there's no disk (or whatever) in the selected drive you're
prompted to insert one.
Now the operation starts. It's displayed on which cylinder
CrunchDisk is working on and how many cylinders are left.
If there's an error you'll get a requester to choose whether
CrunchDisk should retry or not.
At the end it is displayed how many bytes were processed and
how many bytes were left.
File->Dev:
You must select a file to write back. If the file was compressed
from another (different) device, the file-values are displayed.
If there's no disk (or whatever) in the selected drive you're
prompted to insert one.
Now the operation starts. It's displayed which cylinder is in
progress and how many cylinders are to go.
Last not least there'll be a message saying: everything's fine.
Remarks:
I've tried to make CrunchDisk as safe as I could. But since
CrunchDisk doesn't make ANY restrictions to the device you
are able to (try to) crunch your cd-rom, tape-streamer or
other stuff. In that case, I can't say what CrunchDisk will
do with your disk.
I DON'T check if there's enough space on the destination-drive
because it's impossible to say how large the file may get!
(You may get a 'disk full' requester that's ALL).
The HD floppy problem:
If you've got a HD drive and want to decrunch a file onto,
you may get a 'Drive Type Error'-Requester when there is no
disk in the drive. This is caused by both the trackdisk and
my device, which hold the type of the last disk until a new
disk is inserted. To fix the problem is very easy. Simply
insert the disk BEFORE you start CrunchDisk or reread the
device-list.
Note:
CrunchDisk compresses the disk block per block. That means,
that not only the used blocks but ALL blocks are crunched.
The advantage of this is that ALL trackdisk compatible devices,
formatted with ANY filesystem you imagine, can be crunched.
The disadvantage is that CrunchDisk may produce a little bit
larger files than some other disk-cruncher.
A hint to keep the file small:
Format the disk (maybe RAD:?) before you copy your files to it.
Do NOT use the 'quick'-option in order to format all sectors.
P.S. NOBODY except the competent filesystem or at least a
'diskdoctor' should know about the organisation of
the data on disk !!!
IMPORTANT:
This program is FreeWare. You are allowed to distribute
it, as long as you don't make ANY profit with it
(except, a reasonable copying charge), and you leave the
doc.file(s) with it.
You MUSTN'T modify the program itself or this doc.file.
Only exception is a translation of this file.
MOST IMPORTANT:
You are using this software at your OWN RISK!
Under NO CIRCUMSTANCES will the author be liable for any
direct or indirect damage or data loss resulting from
the use or missuse of this software.
All rights are reserved by the author.
Suggestions and (detailed) bug-reports are welcome.
Author:
Klaus Deppisch
Beckenwengert 3
97246 Eibelstadt
Germany
Phone: 09303 1579