Wanderer 09 дек 2005, 00:26
Мда. И как, на NTFS работать будет? У меня давно нет разделов FAT.
Кстати:
[code]
If you switch to the density corresponding to the disk density (for example 250 000 bits/sec for a 1 MB double-density disk), you’ll get either the actual data or the MFM synchronization bits.
Here’s the example:
1 0 0 1 0 0 1 0 0 1 0 1 0 1 0 0 The full data on disk.
| | | | | | | |
0 1 0 0 1 1 1 0 4Eh => character ‘N’
| | | | | | | |
1 0 0 1 0 0 0 0 90h => MFM synchronization bits for ‘N’
With the actual data, you can reconstruct, or simply ignore, the MFM synchronization bits, except for the MFM synchronization words. However, these words can be detected by analysis of sector headers. For example 0000A1A1 may be the beginning of an Amiga sector, with its two standard MFM synchronization words. To verify it is a valid Amiga sector, CRC can be checked on the whole header. This approach is efficient enough to read standard tracks without CRC errors nor non-standard sector headers.
With the MFM synchronization bits, you’re out of luck because you can’t reverse them to actual data. The only way to get the actual data is to read the disk once again, until actual data is read as above. In this example, when reading 90h (MFM synchronization bits for 4Eh), it can correspond to the following non-encoded data:
1 0 0 1 0 0 0 0 => synchronization bits 90h.
0 1 0 0 1 0 1 ? |
0 1 0 0 1 1 0 1 | possible data resulting in a synchronization value of 90h.
0 1 0 0 1 1 1 ? |
|
You can’t tell whether this bit was ‘0’ or ‘1’.
So the value 4Eh is only a possibility among others.
Sector data are always aligned, so you will be able to extract at least a full sector with luck. The Amiga always writes a full track at once, so changes in the alignment may only appear once in the whole track, where the Amiga stopped writing the track. However, the PC behaves differently: it will format a whole track at once, but it will write only one sector at a time on a formatted disk. This can lead to a change in the alignment before the sector data (just before the synchronization mark which corresponds to 12 * MFM ”00h”, then 3 * raw ”4489h”, then MFM “FBh”), and after the sector data (just after the 2 CRC bytes).
[/code]
Это взято из описания работающей программки читающей диск Амиги.