I can even give one tip that hung me up for a bit, a few months ago: I didn't realize back then that I needed to wait for an interrupt, (or alternately for the "busy" flag to clear) -- in between EVERY SINGLE sector that I was reading or writing in PIO mode. I was under the impression that once I issued the command, I'd have to wait for the disk to become ready, and then the whole thing would be streamed in one gulp ... silly, I know.
![Wink :wink:](./images/smilies/icon_wink.gif)
But now I've run into it again. I just moved from Bochs (where everything was running perfectly) onto *gasp* real hardware. And now I get random disk lockups -- it seems after about 10 or 20 reads/writes.
So: I'd love to hear some examples of what caused disk lockups for all the rest of you, and maybe it'll shorten my debugging time. I hate debugging random stuff.
![Mad :x](./images/smilies/icon_mad.gif)