On Sat, Jan 06, 2024 at 10:28:33AM -0800, 'Adam Billyard' via MFM Discuss wrote:
>
>
> On Saturday 6 January 2024 at 17:57:37 UTC
d...@pdp8online.com wrote:
>
>> Reading from real disks bad sectors are expected but if image created
>> with emulator you shouldn't get them.
>
>
> But on tek4404 you have to use the *formatw* command to low level format
> before starting. Perhaps its screws up some data?
> (I notice the sysreformat floppy come with a unique badblocks file for the
> Micropolis HD it is associated with - slightly insane and begging for
> catastrophe back in the day..)
>
> Trying to find a format that the 4404 accepts has proved frustrating.
> Endless "Physical format: Controller error" when formatw starts.
>
Sounds like Tek only intended for it to be used with disks that they
preformatted and it can't properly format a random disk since it needs
to read something from it first.
> In the end I took the known good 20MB image using 3 heads, and modified
> your *copy_emu.c *prog to sling data from heads 0-2 to heads 3-5 to at
> least get a file of the right size and that formatw didn't reject with a
> Controller error. As I say, messy..
>
Interesting that worked since the sector headers would have been wrong.
> I've repeatedly run "devcheck /dev/disk +V" which read/writes every single
> block and gives a clean bill of health. Zero errors.
>
I'm still confused. You said
but
does still occasionally have read/write errors and then tears itself to bit
wanting to delete corrupt files etc.
Your saying devcheck reports no errors but the operating system does report
errors?
> I mean if you use:
> *./ext2emu --ext /dev/zero --emu ../emufile_NEW --cyl 830 --heads 6
> --format Adaptec*
>
> It responds with: "Unknown controller Adaptec. Choices are: ..."
>
ext2emu is a separate program that knows about less formats. We can add support
but would need to figure out how the disk geometry is encoded in the
unknown header flag bytes. I think the only way to to reformat with
different parameters and see how they changes.
For your Tek4404_Uniflex_2.0_st80_wmgr_uemacs_telnet.emu
--sectors 18,0 --heads 3 --cylinders 830
We have
Unknown header flag byte 24 on cyl 0 head 0 physical sector 1
Unknown header flag byte 3c on cyl 0 head 0 physical sector 2
Unknown header flag byte 46 on cyl 0 head 0 physical sector 3
Unknown header flag byte 3e on cyl 0 head 0 physical sector 4
Unknown header flag byte 06 on cyl 0 head 0 physical sector 5
Unknown header flag byte 3e on cyl 0 head 0 physical sector 6
Unknown header flag byte 06 on cyl 0 head 0 physical sector 7
For your latest image with 6 heads we have
Unknown header flag byte 24 on cyl 0 head 0 physical sector 1
Unknown header flag byte 3c on cyl 0 head 0 physical sector 2
Unknown header flag byte 26 on cyl 0 head 0 physical sector 3
Unknown header flag byte 3e on cyl 0 head 0 physical sector 4
Unknown header flag byte 26 on cyl 0 head 0 physical sector 5
Unknown header flag byte 3e on cyl 0 head 0 physical sector 6
Unknown header flag byte 06 on cyl 0 head 0 physical sector 7
They are different but not in a way that makes sense to me.