fd0 problems

From: Johan Pettersson <manlix_at_demonized.net>
Date: Sun, 25 Apr 2004 02:41:46 +0200
The fdc driver doesn't seem to work as it is supposed to.

beard /home/manlix# mount_msdosfs /dev/fd0 /mnt
beard /home/manlix# ls /mnt/
p4p800.rom
beard /home/manlix# rm /mnt/*
rm: /mnt/p4p800.rom: Input/output error
beard /home/manlix# cd /mnt/
beard /mnt# ls
beard /mnt# cd
beard ~# fdformat fd0
fdformat: open(/dev/fd0): Device busy
beard ~# umount fd0
umount: fd0: statfs: No such file or directory
umount: fd0: unknown file system
beard ~# fdformat fd0
fdformat: open(/dev/fd0): Device busy
beard ~# umount fd0
umount: fd0: statfs: No such file or directory
umount: fd0: unknown file system
beard ~# cd
beard ~# umount /mnt
umount: unmount of /mnt failed: Resource temporarily unavailable
beard ~# umount /mnt
umount: unmount of /mnt failed: Resource temporarily unavailable
beard ~# umount /mnt
umount: unmount of /mnt failed: Resource temporarily unavailable
beard ~# umount -f /mnt
beard ~# 

And this appears in /var/log/messages

Apr 25 02:30:57 beard kernel: fd0: hard error cmd=read fsbn 2812 (ST0
40<abnrml> ST1 20<bad_crc> ST2 20<bad_crc> cyl 78 hd 0 sec 5)
Apr 25 02:30:57 beard kernel: vm_fault: pager read error, pid 572 (cp)
Apr 25 02:32:33 beard su: manlix to root on /dev/ttyp0
Apr 25 02:32:48 beard kernel: fd0: hard error cmd=write fsbn 19 (ST0
40<abnrml> ST1 2<write_protect> ST2 0 cyl 0 hd 1 sec 2)
Apr 25 02:33:16 beard kernel: fd0: hard error cmd=write fsbn 4 of 4-6
(ST0 40<abnrml
> ST1 2<write_protect> ST2 0 cyl 0 hd 0 sec 5)
Apr 25 02:33:16 beard kernel: fd0: hard error cmd=write fsbn 7 of 7-9
(ST0 40<abnrml
> ST1 2<write_protect> ST2 0 cyl 0 hd 0 sec 8)
Apr 25 02:33:16 beard kernel: fd0: hard error cmd=write fsbn 13 of 13-15
(ST0 40<abn rml> ST1 2<write_protect> ST2 0 cyl 0 hd 0 sec 14)
Apr 25 02:33:16 beard kernel: fd0: hard error cmd=write fsbn 16 of 16-18
(ST0 40<abn rml> ST1 2<write_protect> ST2 0 cyl 0 hd 0 sec 17)
Apr 25 02:33:16 beard kernel: fd0: hard error cmd=write fsbn 19 (ST0
40<abnrml> ST1 2<write_protect> ST2 0 cyl 0 hd 1 sec 2)
Apr 25 02:33:24 beard kernel: fd0: hard error cmd=write fsbn 4 of 4-6
(ST0 40<abnrml
> ST1 2<write_protect> ST2 0 cyl 0 hd 0 sec 5)
Apr 25 02:33:24 beard kernel: fd0: hard error cmd=write fsbn 7 of 7-9
(ST0 40<abnrml
> ST1 2<write_protect> ST2 0 cyl 0 hd 0 sec 8)
Apr 25 02:33:24 beard kernel: fd0: hard error cmd=write fsbn 13 of 13-15
(ST0 40<abn rml> ST1 2<write_protect> ST2 0 cyl 0 hd 0 sec 14)
Apr 25 02:33:24 beard kernel: fd0: hard error cmd=write fsbn 16 of 16-18
(ST0 40<abn rml> ST1 2<write_protect> ST2 0 cyl 0 hd 0 sec 17)
Apr 25 02:33:24 beard kernel: fd0: hard error cmd=write fsbn 19 (ST0
40<abnrml> ST1 2<write_protect> ST2 0 cyl 0 hd 1 sec 2)
Apr 25 02:33:32 beard kernel: fd0: hard error cmd=write fsbn 4 of 4-6
(ST0 40<abnrml
> ST1 2<write_protect> ST2 0 cyl 0 hd 0 sec 5)
Apr 25 02:33:33 beard kernel: fd0: hard error cmd=write fsbn 7 of 7-9
(ST0 40<abnrml
> ST1 2<write_protect> ST2 0 cyl 0 hd 0 sec 8)
Apr 25 02:33:33 beard kernel: fd0: hard error cmd=write fsbn 13 of 13-15
(ST0 40<abn rml> ST1 2<write_protect> ST2 0 cyl 0 hd 0 sec 14)
Apr 25 02:33:33 beard kernel: fd0: hard error cmd=write fsbn 16 of 16-18
(ST0 40<abn rml> ST1 2<write_protect> ST2 0 cyl 0 hd 0 sec 17)
Apr 25 02:33:33 beard kernel: fd0: hard error cmd=write fsbn 19 (ST0
40<abnrml> ST1 2<write_protect> ST2 0 cyl 0 hd 1 sec 2)
Apr 25 02:33:33 beard kernel: fsync: giving up on dirty: 0xc44eb208: tag
devfs, type VCHR, usecount 2, writecount 0, refcount 7, lock type devfs:
EXCL (count 1) by thre ad 0xc44b37e0 (pid 646)
Apr 25 02:33:33 beard kernel: dev fd0
Apr 25 02:33:42 beard kernel: fd0: hard error cmd=write fsbn 4 of 4-6
(ST0 40<abnrml
> ST1 2<write_protect> ST2 0 cyl 0 hd 0 sec 5)
Apr 25 02:33:43 beard kernel: fd0: hard error cmd=write fsbn 7 of 7-9
(ST0 40<abnrml
> ST1 2<write_protect> ST2 0 cyl 0 hd 0 sec 8)
Apr 25 02:33:43 beard kernel: fd0: hard error cmd=write fsbn 13 of 13-15
(ST0 40<abn rml> ST1 2<write_protect> ST2 0 cyl 0 hd 0 sec 14)
Apr 25 02:33:43 beard kernel: fd0: hard error cmd=write fsbn 16 of 16-18
(ST0 40<abn rml> ST1 2<write_protect> ST2 0 cyl 0 hd 0 sec 17)
Apr 25 02:33:43 beard kernel: fd0: hard error cmd=write fsbn 19 (ST0
40<abnrml> ST1 2<write_protect> ST2 0 cyl 0 hd 1 sec 2)
Apr 25 02:33:43 beard kernel: fsync: giving up on dirty: 0xc44eb208: tag
devfs, type VCHR, usecount 2, writecount 0, refcount 7, lock type devfs:
EXCL (count 1) by thre ad 0xc44b3690 (pid 647)
Apr 25 02:33:43 beard kernel: dev fd0
Apr 25 02:34:14 beard kernel: fd0: hard error cmd=write fsbn 4 of 4-6
(No status) Apr 25 02:34:16 beard kernel: fd0: hard error cmd=write fsbn
7 of 7-9 (No status)   Apr 25 02:34:18 beard kernel: fd0: hard error
cmd=write fsbn 13 of 13-15 (No status) Apr 25 02:34:20 beard kernel:
fd0: hard error cmd=write fsbn 16 of 16-18 (No status) Apr 25 02:34:23
beard kernel: fd0: hard error cmd=write fsbn 19 (No status) Apr 25
02:34:25 beard kernel: fd0: hard error cmd=write fsbn 4 of 4-6 (No
status) Apr 25 02:34:27 beard kernel: fd0: hard error cmd=write fsbn 7
of 7-9 (No status) Apr 25 02:34:30 beard kernel: fd0: hard error
cmd=write fsbn 13 of 13-15 (No status) Apr 25 02:34:32 beard kernel:
fd0: hard error cmd=write fsbn 16 of 16-18 (No status) Apr 25 02:34:34
beard kernel: fd0: hard error cmd=write fsbn 19 (No status) Apr 25
02:34:34 beard kernel: fsync: giving up on dirty: 0xc44eb208: tag devfs,
type VCHR, usecount 2, writecount 0, refcount 7, lock type devfs: EXCL
(count 1) by thre ad 0xc40c8930 (pid 649)
Apr 25 02:34:34 beard kernel: dev fd0
Apr 25 02:34:57 beard kernel: fd0: hard error cmd=write fsbn 4 of 4-6
(No status) Apr 25 02:34:59 beard kernel: fd0: hard error cmd=write fsbn
7 of 7-9 (No status) Apr 25 02:35:01 beard kernel: fd0: hard error
cmd=write fsbn 13 of 13-15 (No status) Apr 25 02:35:03 beard kernel:
fd0: hard error cmd=write fsbn 16 of 16-18 (No status) Apr 25 02:35:06
beard kernel: fd0: hard error cmd=write fsbn 19 (No status) Apr 25
02:35:29 beard kernel: fd0: hard error cmd=write fsbn 4 of 4-6 (No
status) Apr 25 02:35:31 beard kernel: fd0: hard error cmd=write fsbn 7
of 7-9 (No status) Apr 25 02:35:33 beard kernel: fd0: hard error
cmd=write fsbn 13 of 13-15 (No status) Apr 25 02:35:35 beard kernel:
fd0: hard error cmd=write fsbn 16 of 16-18 (No status) Apr 25 02:35:38
beard kernel: fd0: hard error cmd=write fsbn 19 (No status) Apr 25
02:36:01 beard kernel: fd0: hard error cmd=write fsbn 4 of 4-6 (No
status) Apr 25 02:36:03 beard kernel: fd0: hard error cmd=write fsbn 7
of 7-9 (No status) Apr 25 02:36:05 beard kernel: fd0: hard error
cmd=write fsbn 13 of 13-15 (No status) Apr 25 02:36:07 beard kernel:
fd0: hard error cmd=write fsbn 16 of 16-18 (No status) Apr 25 02:36:10
beard kernel: fd0: hard error cmd=write fsbn 19 (No status) Apr 25
02:36:31 beard kernel: fd0: hard error cmd=write fsbn 4 of 4-6 (No
status) Apr 25 02:36:31 beard kernel: fd0: hard error cmd=write fsbn 7
of 7-9 (No status) Apr 25 02:36:31 beard kernel: fd0: hard error
cmd=write fsbn 13 of 13-15 (No status) Apr 25 02:36:31 beard kernel:
fd0: hard error cmd=write fsbn 16 of 16-18 (No status) Apr 25 02:36:31
beard kernel: fd0: hard error cmd=write fsbn 19 (No status) Apr 25
02:37:01 beard kernel: fd0: hard error cmd=write fsbn 4 of 4-6 (No
status) Apr 25 02:37:01 beard kernel: fd0: hard error cmd=write fsbn 7
of 7-9 (No status) Apr 25 02:37:01 beard kernel: fd0: hard error
cmd=write fsbn 13 of 13-15 (No status) Apr 25 02:37:01 beard kernel:
fd0: hard error cmd=write fsbn 16 of 16-18 (No status) Apr 25 02:37:01
beard kernel: fd0: hard error cmd=write fsbn 19 (No status) Apr 25
02:37:31 beard kernel: fd0: hard error cmd=write fsbn 4 of 4-6 (No
status) Apr 25 02:37:31 beard kernel: fd0: hard error cmd=write fsbn 7
of 7-9 (No status) Apr 25 02:37:31 beard kernel: fd0: hard error
cmd=write fsbn 13 of 13-15 (No status) Apr 25 02:37:31 beard kernel:
fd0: hard error cmd=write fsbn 16 of 16-18 (No status) Apr 25 02:37:31
beard kernel: fd0: hard error cmd=write fsbn 19 (No status)
Apr 25 02:38:01 beard kernel: fd0: hard error cmd=write fsbn 4 of 4-6
(No status) Apr 25 02:38:01 beard kernel: fd0: hard error cmd=write fsbn
7 of 7-9 (No status) Apr 25 02:38:01 beard kernel: fd0: hard error
cmd=write fsbn 13 of 13-15 (No status) Apr 25 02:38:01 beard kernel:
fd0: hard error cmd=write fsbn 16 of 16-18 (No status) Apr 25 02:38:01
beard kernel: fd0: hard error cmd=write fsbn 19 (No status)
Apr 25 02:40:10 beard kernel: fsync: giving up on dirty: 0xc44eb208: tag
devfs, type VCHR, usecount 2, writecount 0, refcount 7, lock type devfs:
EXCL (count 1) by thread 0xc44b3a80 (pid 671) Apr 25 02:40:10 beard
kernel: dev fd0

And with fdformat i get this.

beard ~# fdformat fd0
fdformat: fcntl(F_SETFL): Invalid argument
Received on Sat Apr 24 2004 - 15:41:49 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:52 UTC