From: "Folkert van Heusden" <folkert@vanheusden.com>
To: <linux-kernel@vger.kernel.org>
Subject: 2.4.18: filesystem corruption on harddisk when bad sectors on floppydisk (!)
Date: Fri, 3 Jan 2003 00:55:26 +0100 [thread overview]
Message-ID: <00a001c2b2ba$6c77ffe0$3640a8c0@boemboem> (raw)
Hi,
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"
etc.).
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:
http://www.vanheusden.com/Linux/recoverdm-0.1.tgz
reply other threads:[~2003-01-02 23:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='00a001c2b2ba$6c77ffe0$3640a8c0@boemboem' \
--to=folkert@vanheusden.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox