home *** CD-ROM | disk | FTP | other *** search
- UNEEKIT.TOS
- ===========
-
- UNEEKIT.TOS is a programme to overcome a problem that strikes most
- Atari ST users from time to time -- the lack of a unique serial number on disk-
- ettes formatted on MS-DOS systems. This problem gets re-discovered from time
- to time and many fixes get suggested -- e.g. using different formatting
- programmes, or a sector editor to patch the boot sector, etc. -- but so far I
- have not seen a simple programme to fix a disk, so here is a little hack to do
- the job.
-
- The Problem: When TOS wants to check if a diskette has been changed, it looks
- at a sequence of 3 bytes in the boot sector, which get written with a random
- 24-bit number (i.e. pretty likely to be unique) when TOS formats the diskette.
- If it sees the same number there as the last time it looked, it assumes (quite
- reasonably) that the same diskette is in the drive and that the directory and
- file allocation table (FAT) data it has in memory are valid for that diskette.
- However, the field used by TOS to store this "serial number" is within the
- field specified by Microsoft to hold a name given by the OEM supplying any
- particular version of MS-DOS. Since this name is always the same, TOS then
- considers such diskettes all to have the same serial number. Hence the problem
- (which also obtains if you use a disk copy programme to duplicate a diskette --
- the copy has the same serial number as the original!): TOS does not detect when
- an MS-DOS diskette has been changed for another, and proceeds to write
- directory and FAT information from the previous diskette onto the new one, with
- usually disastrous results.
-
- The Cure: You can circumvent the problem is several ways. The simplest is to
- put a TOS formatted diskette in the drive and press <Esc> before putting a
- second MS-DOS diskette in the drive, so that TOS sees a diskette change. You
- can also close the diskette window and re-open it. However these are "active"
- measures that require you to remember which system each diskette was formatted
- under. Far better to eliminate the problem by ensuring that each diskette does
- have a truly unique serial number. Hence UNEEKIT.TOS, which reads in the
- diskette's boot sector, provides it with a random serial number, and then
- writes it back onto the diskette. Now you only have to remember to UNEEK
- each diskette the first time you bring it home from work... UNEEKed diskettes
- are still entirely usable under MS-DOS.
-
- Ivan D Reid, Untersiggenthal CH 9/12/1990
- ivan@cageir5a.bitnet 20550::ivan ivan@cvax.psi.ch
- also close the disk
- ə