> It's not so simple to rearrange the cluster table.
I suppose you mean the FAT.
It's not that hard, really. Just scan the entire disk for bad sectors and
keep up a table in which they are listed. Then try to read & recover the bad
sectors, and relocate them to a 'clean' disk area by writing it to that
location and modifying the FAT a little.
>>If I recall correctly there is a DiskROM routine to read a drive's
sectors.
>>It returns an error code (if any), which tells you what error has
occurred.
>>But it won't show the annoying (A)bort, (R)etry, (I)gnore message, which I
>>want to avoid.
>
> Yes, but you'll not be able to read the sector, also. So, how to
relocate its
> data?
Just try to read it several times. And if that doesn't work, insert a
cluster filled with zeroes.
That's what (MSDOS) scandisk does...
~Grauw
--
>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<
email me: [EMAIL PROTECTED] or ICQ: 10196372
visit my homepage at http://grauw.blehq.org/
>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<
****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED]
and put "unsubscribe msx [EMAIL PROTECTED]" (without the quotes) in
the body (not the subject) of the message.
Problems? contact [EMAIL PROTECTED]
More information on MSX can be found in the following places:
The MSX faq: http://www.faq.msxnet.org/
The MSX newsgroup: comp.sys.msx
The MSX IRC channel: #MSX on Undernet
****