On Sun, 27 Jan 2013, John S wrote:
What I can't find is a description of the bytes
encoded on the disk to
mark a track as spare. One possibility is this is dealt with by the HP
disk controller firmware, and so hidden to the operating system, which
sees a LIF directory as per the above descriptions, without seeing the
spare tracks.
Now that's simple. The disc (HP don't say disk) format is described in
some HP-IB floppy drive manual. A bad track is marked by $FF as the
cylinder value in the ID field of each sector of a track. When reading,
you just skip to the next track as long as the cylinder value is $FF. For
example, if you've read (physical) cylinder 37 side 0 and want to read
side 1, when the cyl. value if $FF, you skip to cylinder 38 side 0. But
attention, the information in the ID field says cylinder 37 head 1
instead. So you have to distinguish between physical accesses and logical
tracks.
I am trying to find some floppies with spare tracks
and then analyse
them on a PC, hopefully someone has been there already and can shed some
light on the mechanism used.
You are right with your above assumption that the drive's firmware is
automatically doing bad track handling. I have several 3.5" floppies that
have one or two bad tracks and are otherwise unusable as normal DOS
disks. I use those floppies with the 9122C drive that I have on the
HP1000.
Christian