Good evening,
I currently discovered a problem when using the floppy drive /dev/fd0: I can’t use it.
I can mount /dev/fd0 as normal, can create/write a file, but it is not written to the floppy disk. Instead of that the current program (eg vim) hangs (or is “uninterruptable”) until I remove the floppy disk from the drive. Because of the removal I get several errors in /var/log/messages.
What I’m doing:
== snip ==
mount /dev/fd0 /mnt
echo “TEST” > /mnt/test
sync → HANG until I remove the floppy disk]
[sync “completes”/terminates, insert floppy disk]
umount /mnt
== snap ==
(In this example I used echo instead of vim, because it behaves the same in this situation)
The errors I get are as follows:
dmesg | tail
2999.432797] floppy0: disk absent or changed during operation
2999.432802] end_request: I/O error, dev fd0, sector 34
2999.432825] floppy0: disk absent or changed during operation
2999.432830] end_request: I/O error, dev fd0, sector 1
2999.432834] Buffer I/O error on device fd0, logical block 1
2999.432838] lost page write due to I/O error on fd0
2999.432938] floppy0: disk absent or changed during operation
2999.432948] end_request: I/O error, dev fd0, sector 19
2999.432956] Buffer I/O error on device fd0, logical block 19
2999.432961] lost page write due to I/O error on fd0
/var/log/messages:
May 2 00:14:36 hostname kernel: 2999.431039] floppy0: disk removed during i/o
May 2 00:14:36 hostname kernel: 2999.431052] end_request: I/O error, dev fd0, sector 10
May 2 00:14:36 hostname kernel: 2999.431060] quiet_error: 3 callbacks suppressed
May 2 00:14:36 hostname kernel: 2999.431065] Buffer I/O error on device fd0, logical block 10
May 2 00:14:36 hostname kernel: 2999.431070] lost page write due to I/O error on fd0
May 2 00:14:36 hostname kernel: 2999.432739] floppy0: disk absent or changed during operation
May 2 00:14:36 hostname kernel: 2999.432748] end_request: I/O error, dev fd0, sector 19
May 2 00:14:36 hostname kernel: 2999.432755] Buffer I/O error on device fd0, logical block 19
May 2 00:14:36 hostname kernel: 2999.432760] lost page write due to I/O error on fd0
May 2 00:14:36 hostname kernel: 2999.432797] floppy0: disk absent or changed during operation
May 2 00:14:36 hostname kernel: 2999.432802] end_request: I/O error, dev fd0, sector 34
May 2 00:14:36 hostname kernel: 2999.432825] floppy0: disk absent or changed during operation
May 2 00:14:36 hostname kernel: 2999.432830] end_request: I/O error, dev fd0, sector 1
May 2 00:14:36 hostname kernel: 2999.432834] Buffer I/O error on device fd0, logical block 1
May 2 00:14:36 hostname kernel: 2999.432838] lost page write due to I/O error on fd0
May 2 00:14:36 hostname kernel: 2999.432938] floppy0: disk absent or changed during operation
May 2 00:14:36 hostname kernel: 2999.432948] end_request: I/O error, dev fd0, sector 19
May 2 00:14:36 hostname kernel: 2999.432956] Buffer I/O error on device fd0, logical block 19
May 2 00:14:36 hostname kernel: 2999.432961] lost page write due to I/O error on fd0
My system:
uname -a
Linux hostname.site 2.6.34.7-0.5-desktop #1 SMP PREEMPT 2010-10-25 08:40:12 +0200 x86_64 x86_64 x86_64 GNU/Linux
modprobe floppy
lsmod|grep floppy
floppy 68349 0
groups|grep --color floppy
root floppy
I think there’s a problem with the write caches, that can’t be flushed (-> sync). But that’s all I can say…
Suggestions would be appreciated,
aristokrates