home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / linux / 10396 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  1.9 KB

  1. Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!torvalds
  2. From: torvalds@klaava.Helsinki.FI (Linus Benedict Torvalds)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: Unable to use floppies under Linux
  5. Message-ID: <1992Sep10.193917.5396@klaava.Helsinki.FI>
  6. Date: 10 Sep 92 19:39:17 GMT
  7. References: <1992Sep10.182648.12564@eua.ericsson.se>
  8. Organization: University of Helsinki
  9. Lines: 35
  10.  
  11. In article <1992Sep10.182648.12564@eua.ericsson.se> tmpcms@eua.ericsson.se (Carl-Michael Skoog) writes:
  12. >I've installed Linux about 20-30 times, and every single time the filesystem 
  13. >ends up corrupted when I use some floppy-related command like tar(with /dev/fd0
  14. >as file, pax and GNU tar alike), dd, fdformat...
  15.  
  16. [ *BAD* problems deleted ]
  17.  
  18. This certainly looks like the linux floppy driver has /major/ problems
  19. with your machine - just as a guess I'd assume it's some weird DMA
  20. incompatibility as the floppy driver is the only thing in the standard
  21. kernel which uses DMA.  
  22.  
  23. It would seem that the DMA accesses go all over your memory, resulting
  24. in weird and incorrect behaviour - writing over the wrong buffers,
  25. kernel data structures etc. 
  26.  
  27. >Could it be my hardware that is stabbing my back? 386BSD and MINIX works
  28. >fine though.
  29. >I will be infinitely grateful if someone can help me with this.
  30.  
  31. As minix and 386bsd works, it would certainly seem to be a bug in the
  32. floppy driver.  A very weird one, though - this is the first such report
  33. I've ever seen. 
  34.  
  35. If you are at all familiar with the PC's DMA setup, I'd suggest you take
  36. a look into floppy.c: setup_DMA(), which is the obvious first suspect. 
  37. If anybody can come up with suggestions on what could be wrong, I'd
  38. certainly be interested - but as I cannot see the problem, I'm somewhat
  39. at a disadvantage to find it. 
  40.  
  41. On possibility is simply that it's a timing problem: even re-writing the
  42. floppy driver to use the slower outb_p commands instead of the current
  43. immoutb_p() might help.
  44.  
  45.         Linus
  46.