Skip to contentSkip to conversation

2.5.34-bk floppy weirdness

DISCUSSION Mikael Pettersson 2 participants 2 messages Sep 11, 2002

lore
Share & tools
lore
#0 lore raw
Quoted 14 lines · Thomas Molina

The following appeared with the latest bk updated kernel. It was not present with the 2.5.33 version, nor with a 2.4 kernel version.

I cannot dd to the floppy until either it has been mounted, or until the superuser has dd'd to the floppy. The following is from a fresh boot:

[tmolina@dad testfloppystable]$ ls
floppy floppyimage
[tmolina@dad testfloppystable]$ ls -l /dev/fd0
brw-rw---- 1 tmolina floppy 2, 0 Apr 11 09:25 /dev/fd0
[tmolina@dad testfloppystable]$ ls -l
total 1448

drwxr-xr-x    2 tmolina  tmolina      4096 Dec 31  1969 floppy
-rw-rw-r--    1 tmolina  tmolina   1474560 Sep  1 09:49 floppyimage
Quoted 7 lines

[tmolina@dad testfloppystable]$ dd if=floppyimage of=/dev/fd0
dd: opening `/dev/fd0': No such device or address [tmolina@dad testfloppystable]$ su
Password:
[root@dad testfloppystable]# dd if=floppyimage of=/dev/fd0 2880+0 records in
2880+0 records out

My 2.5.34 (proper, not bk) doesn't have this misbehaviour.

Are you building the floppy driver as a module and relying on kmod+modutils to insert it on demand? If so, you may be seeing the same problem I was when I upgraded my user-space to RedHat 7.3: dd of=/dev/fd0 as a user won't load floppy.o. See RedHat bug id 65685 for details.

/Mikael

#1 lore raw
Quoted 7 lines · Mikael Pettersson
Quoted 6 lines

dd: opening `/dev/fd0': No such device or address [tmolina@dad testfloppystable]$ su
Password:
[root@dad testfloppystable]# dd if=floppyimage of=/dev/fd0 2880+0 records in
2880+0 records out

Quoted 7 lines

My 2.5.34 (proper, not bk) doesn't have this misbehaviour.

Are you building the floppy driver as a module and relying on kmod+modutils to insert it on demand? If so, you may be seeing the same problem I was when I upgraded my user-space to RedHat 7.3: dd of=/dev/fd0 as a user won't load floppy.o. See RedHat bug id 65685 for details.

You are exactly right. The floppy driver is built as a module. I'll refer to the bugzilla and add a comment if needed. Since this is a RedHat-specific symptom I'll handle it through them.