Article View: comp.sys.amiga.tech
Article #11776Re: Disk Questions for WorkBench replacement project
From: Joe Smith
Date: Mon, 13 Mar 1989 04:28
Date: Mon, 13 Mar 1989 04:28
30 lines
2362 bytes
2362 bytes
In article <6200@columbia.edu> simon@copper.UUCP (Thor Simon) writes:
>I vaguely recall hearing something in this group earlier during the
>discussion of Project D about some copy-protection schemes looking at
>the time/date stamp on the disk. Hunh. I didn't think there was a
>time/date stamp on the format itself. Maybe I'm wrong, but if not,
>this could be a cheap way out, as that would make it two IDs (name and
>date) rather than one.
AmigaDOS disks have two dates in the root block. One is updated whenever
anything is written on the disk, the other is set when the disk is formatted
or diskcopied. The DISKCOPY that comes with Workbench makes a track-for-track
copy of the disk with two exceptions. 1) The name is set to "copy of ..." and
2) the volume creation date is set to the current date/time. Even if you
you relabel the disk so that it has the same name as the original, Workbench
can tell them apart due to the different volume creation dates. If you run
a different diskcopy program, one that makes an exact duplicate, then you
should remove the duplicate before exiting the copy program so that
Workbench will not be confused by seeing two disks with the same name and
same creation date in two different drives.
Technical details:
A block of 512 bytes is treated as 128 words of 32 bits each. Words 105-107
contain the volume modification date/time. Words 108-120 have the volume
name. Words 121-123 contain the volume creation date/time.
--
Joe Smith (408)922-6220 | jms@antares.Tymnet.COM or jms@opus.Tymnet.COM
McDonnell Douglas FSCO | UUCP: ...!{ames,pyramid}!oliveb!tymix!antares!jms
PO Box 49019, MS-D21 | PDP-10:JMS@F74.Tymnet.COM CA license plate:"POPJ P,"
San Jose, CA 95161-9019 | narrator.device: "I didn't say that, my Amiga did!"
Technical Details
Message-ID:
<420@antares.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!pasteur!helios.ee.lbl.gov!ucsd!ames!oliveb!tymix!antares!jmsReferences:
<21173@agate.BERKELEY.EDU> <821@microsoft.UUCP> <6200@columbia.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!pasteur!helios.ee.lbl.gov!ucsd!ames!oliveb!tymix!antares!jms From: jms@antares.UUCP (Joe Smith) Newsgroups: comp.sys.amiga.tech Subject: Re: Disk Questions for WorkBench replacement project Summary: Disks have 2 dates Message-ID: <420@antares.UUCP> Date: 13 Mar 89 04:28:25 GMT References: <21173@agate.BERKELEY.EDU> <821@microsoft.UUCP> <6200@columbia.edu> Reply-To: jms@antares.UUCP (Joe Smith) Organization: Tymnet QSATS, San Jose CA Lines: 30