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