[lkml]   [2003]   [Jan]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject2.4.18: filesystem corruption on harddisk when bad sectors on floppydisk (!)

When I read from a floppy disk with badsectors and write to a file
on the harddisk, I get filesystem corruption. Filesystem on hard-
disk is ext3. I'm reading the floppy in raw mode (open("/dev/fd0"
In dmesg I get:
floppy0: data CRC error: track 32, head 1, sector 7, size 2
floppy0: data CRC error: track 32, head 1, sector 7, size 2
end_request: I/O error, dev 02:00 (floppy), sector 1176
and suddenly the write fails with 22. The file attributes are
suddenly weird:
-rwxr-Sr-T 1 root root 602112 Jan 3 00:50 ../test
Nothing in the logs.
Kernel version is 2.4.18.
Harddisk is on IDE:
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller on PCI bus 00 dev 21
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xd800-0xd807, BIOS settings: hda:DMA, hdb:pio
hda: ST320413A, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
No fiddling with hdparm or whatsoever.

Folkert van Heusden

p.s. the rather trivial program I used can be found at:
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:32    [W:0.024 / U:1.632 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site