home *** CD-ROM | disk | FTP | other *** search
-
-
- DF.C - A utility to format a disk.
- CopyWrong 198?, SLADE Software ULTD.
-
- Released into the world of freely-mungable software sometime
- in the year 1989. If you find this software useful, great. If
- you don't, please be kind and pass it on anyway.
-
-
-
-
- DF was a program originally written for use with Palomax drive
- systems. At the time, Palomax did not support bad sector remapping with
- other than an OMTI controller, and the only solution for bad sectors on
- a non-OMTI controller was to partition around them - and not many people
- like having a 20 meg drive split up into 10 partitions (I don't know why..).
-
- It will (given the correct switches), format a drive, and create a
- file called 'bad.blocks' that contains links to all the bad blocks it finds.
- Optionally, you may enter a list of bad blocks by hand - or, even better, stick
- the list in a file, and redirect it into DF. Actually, you are only allowed to
- specify entire tracks, and not the individual sectors in the track, due to the
- way the Amiga does its disk I/O.
-
-
- Invocation:
-
- DF <device name> [<options>] [<volume name>]
-
- Where
- <device name> is df0:, df1:, dh0:, etc.
- <options> is zero or more of the following:
-
- -q QUICK FORMAT
- -nv NO VERIFY
- -p PRINT BAD BLOCK LIST
- -u UPDATE BAD BLOCK FILE
- -ffs USE FAST FILING SYSTEM
- -t ENTER BAD TRACK LIST
-
-
- Quick Format
- The same as the QUICK option in Format. All it does is create an
- empty boot and root block - effectively erasing the drive. It does
- not verify any part of the drive except for those two blocks.
-
-
- No Verify
- Format without doing a read verify of the track just formated. It
- is about 50% faster, but less reliable on a questionable disk.
-
-
- Print bad block list
- Not implemented...
-
-
- Update bad block file
- Not implemented...
-
-
- Use fast filing system
- Use a FFS signature on the boot block (DOS\001 instead of DOS\000),
- Which tells DOS how to handle the drive.
-
-
- Enter bad track list
- You will be prompted for a list of head/track to enter into the
- bad track list. Typing 'q' at the 'Head' prompt will terminate
- the list.
-
-
- Caveats, Usage notes, Bugs, Thoughts on dinner...
-
- - Woe to the person entering the same bad head,track twice. You
- will get a requestor saying 'key xxx already set'. It seems that
- AmigaDOS gets real upset if two files say they own the same block.
-
- - I ruined a disk on purpose (NOT a hard disk) to test this program.
- The results - well... It caught most of the trashed tracks, but not
- all of them. I had to try copying files to it 5 times to catch all
- of the bad spots. If it is a floppy, you may as well just chuck it -
- As a friend of mine said - who wants to make a career out of
- formatting disks?
- If it is a hard drive, and you have no other way around it, my
- suggestion is to alter the code to do a format, read and write
- verify. This should do the trick.
-
- - I appologize for the 'not implemented' features. I lost interest
- when I gained the ability to do software remapping. If there is
- sufficient interest (and no-one has done it yet), I will do it.
-
- - If a volume name is not specified, it defaults to 'empty'.
-
- - This code was manx'ed. I have not idea if it will compile
- with lattice. So much for C being a portable language...
-
-
- Address thoughts, anecdotes, bug reports, etc to:
-
-
- Jim Thibodeau Larry Laplume
- 78A Janine Dr. 64 Garland Dr. #4
- Zephyrhills, FL. 34248 Jackson, TN. 38301
- (813) 788-2627 (901) 664-7059
-
-
-