AdamK wrote:There is no 'OS' way to do that.
Anima wrote:I would like to have a contiguous block of a certain size reserved on the hard disk from which I can read using the ACSI DMA or IDE registers. The "best" way so far, all I can think of, is to defragment the HD first, then create a file of the given size and obtain somehow the CHS info from its starting sector. Is this possible in an easier way like using some existing HD driver routines or tools?
AtariZoll wrote:Now, idea of reserving whole partition is not bad too - depending of needed sizes. I had in some earlier partitioner SW option for creating such, special RAW partitions. Absolute loc. of some partition on media can find with help of PUN too. That is part of code for finding loc. of specific file, where just need to add to it loc. of file inside partition. That later is done with little trick, so no need to walk thru FAT.
Btw. you will need at least 3 low level hard disk code: basic ACSI, ICD extended ACSI and IDE (LBA, CHS only if want to support some really old drives).
Thanks for the code. Looks promising so far.AtariZoll wrote:I sent you code in PM. That's for getting file location. Part of it is how to get partition loc. on drive, using PUN. That should work with any decent driver SW. There are other ways, but that will be for sure more complicated.
Users browsing this forum: No registered users and 2 guests