* [BUG] dd, floppy, 2.5.18
@ 2002-06-06 18:19 Stuart MacDonald
2002-06-06 18:53 ` Dave Jones
0 siblings, 1 reply; 4+ messages in thread
From: Stuart MacDonald @ 2002-06-06 18:19 UTC (permalink / raw)
To: linux-kernel
# uname -a
Linux moll 2.5.18 #1 SMP Wed May 29 15:18:20 EDT 2002 i686 unknown
[insert floppy]
# dd if=/dev/fd0 of=diskette.image
8+0 records in
8+0 records out
# ls -alF diskette.image
-rw-r--r-- 1 root root 4096 Jun 6 11:49 test
This is obviously wrong. But a second try at it:
# dd if=/dev/fd0 of=diskette.image
2880+0 records in
2880+0 records out
# ls -alF diskette.image
-rw-r--r-- 1 root root 1474560 Jun 6 11:49 test
However:
# tar xvf diskette.image
wget-1.8.1.tar.gz
# cmp wget-1.8.1.tar.gz wget-181.tar.gz
wget-1.8.1.tar.gz wget-181.tar.gz differ: char 7681, line 34
So that's wrong too. This works under RedHat's 2.4.7-10, and has
worked previously in various 2.4 and 2.2 kernels.
I'm willing to help with some testing to figure out the problem; I use
this dd method to make diskette images for customers all the time, and
I will need it fixed for 2.6.x.
Some things I've noticed:
- the 8 records attempt always happens after a new media insertion. To
say it another way, the "good" 2880 attempt only happens on the second
and subsequent attempts on an already inserted floppy.
- I though I'd noticed that this would corrupt the floppy itself, but
have been unable to reproduce. May have been two bad floppies in a row
coincidentally.
..Stu
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [BUG] dd, floppy, 2.5.18
@ 2002-06-06 18:48 Mikael Pettersson
2002-06-07 19:02 ` Stuart MacDonald
0 siblings, 1 reply; 4+ messages in thread
From: Mikael Pettersson @ 2002-06-06 18:48 UTC (permalink / raw)
To: stuartm; +Cc: linux-kernel
On Thu, 6 Jun 2002 14:19:22 -0400, Stuart MacDonald wrote:
># uname -a
>Linux moll 2.5.18 #1 SMP Wed May 29 15:18:20 EDT 2002 i686 unknown
[various floppy problems]
The floppy driver got broken in 2.5.13. Please try the following patch:
http://www.csd.uu.se/~mikpe/linux/patches/2.5/patch-fix-floppy-2.5.20
It works for me and at least one other person.
/Mikael
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [BUG] dd, floppy, 2.5.18
2002-06-06 18:19 Stuart MacDonald
@ 2002-06-06 18:53 ` Dave Jones
0 siblings, 0 replies; 4+ messages in thread
From: Dave Jones @ 2002-06-06 18:53 UTC (permalink / raw)
To: Stuart MacDonald; +Cc: linux-kernel
On Thu, Jun 06, 2002 at 02:19:22PM -0400, Stuart MacDonald wrote:
> I'm willing to help with some testing to figure out the problem; I use
> this dd method to make diskette images for customers all the time, and
> I will need it fixed for 2.6.x.
There's a patch included in 2.5.20-dj3 from Mikael Pettersson,
which should address the corruption on IO problem.
You can also fish out the individual patch at..
http://www.codemonkey.org.uk/patches/merged/2.5.20/dj3/
Dave
--
| Dave Jones. http://www.codemonkey.org.uk
| SuSE Labs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [BUG] dd, floppy, 2.5.18
2002-06-06 18:48 [BUG] dd, floppy, 2.5.18 Mikael Pettersson
@ 2002-06-07 19:02 ` Stuart MacDonald
0 siblings, 0 replies; 4+ messages in thread
From: Stuart MacDonald @ 2002-06-07 19:02 UTC (permalink / raw)
To: Mikael Pettersson, davej; +Cc: linux-kernel
From: "Mikael Pettersson" <mikpe@csd.uu.se>
> The floppy driver got broken in 2.5.13. Please try the following patch:
> http://www.csd.uu.se/~mikpe/linux/patches/2.5/patch-fix-floppy-2.5.20
> It works for me and at least one other person.
Applied to 2.5.18 (had to apply hunk #3 by hand). It fixes the
problem. Thanks.
..Stu
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-06-07 19:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-06 18:48 [BUG] dd, floppy, 2.5.18 Mikael Pettersson
2002-06-07 19:02 ` Stuart MacDonald
-- strict thread matches above, loose matches on Subject: below --
2002-06-06 18:19 Stuart MacDonald
2002-06-06 18:53 ` Dave Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox