begin Tuesday 13 January 2004 10:25, Lionel Elie Mamane quote:
On Mon, Jan 12, 2004 at 09:12:06PM +0100, Yves Glodt
wrote:
I wonder how I can make an 1:1 copy of a floppy,
including the bad
sectors on it...
Well, bad sectors are, by definition, unreadable, so I don't think
such a thing is possible.
It all depends on how bad the sectors really are. If there is only a
small bad spot on the disk surface, the rest of the sector may still
be read ok. The checksum won't match however (because a couple of
bytes may be misread), and in that condition the OS usually considers
the whole sector as bad, and doesn't give it to the application.
Fdutils uses a lower-level API which allows the application to see the
data as it came from the floppy disk controller.
What you can try is to increase the number
of times a bad sectors is tried before returning with an error. I used
to have a program to copy disks where this was tunable in the good'ol
DOS days, vgacopy.
"info --node '(fdutils.info.gz)Error handling options'" seems to
talk
about this.
I'm sure Alain will have much more complete explanations than I do :)
Once the data is read, the next challenge however, is to deliberately
create, on the copy, a disk with the same bad sector...
If you are lucky, the copy-protected program may not actually check
for the exact error (CRC, sector absent, etc.), but only for the fact
that there is an error (no matter which one). In that case, just
format a disk (also using fdrawcmd) with that sector missing...
If the program really checks for CRC errors, it might be somewhat more
difficult.
Alain