floppy drive problem

Chris Pockele chrisp at belgacom.net
Mon Apr 21 10:12:14 PDT 2003


Hello,

I've got a 486 laptop running a FreeBSD 4.7-STABLE snapshot from
february 4th.  Unfortunately its floppy drive is acting weird under FreeBSD:

nomad# mount -t msdos /dev/fd0a /mnt
fd0c: hard error reading fsbn 0 of 0-3 (ST0 40<abnrml> ST1 10<data_overrun> ST2
0 cyl 0 hd 0 sec 1)
msdos: /dev/fd0a: Input/output error
nomad# dd if=/dev/fd0a /mnt
dd: unknown operand /mnt
nomad# dd if=/dev/fd0a of=/dev/null
fd0c: hard error reading fsbn 0 (ST0 40<abnrml> ST1 10<data_overrun> ST2 0 cyl 0
 hd 0 sec 1)
dd: /dev/fd0a: Input/output error
0+0 records in
0+0 records out
0 bytes transferred in 7.328928 secs (0 bytes/sec)

When I boot with an OpenBSD boot disk and try the same, it shows similar error
messages.

This is with various disks which are readable on other machine, and even on the
same machine under dos/windows, so I presume the drive is not broken.  There
must be some kind of incompatibility between the drive or controller and the
FreeBSD driver.
It works under linux, although the linux kernel prints some messages about
timeouts and unexpected interrupts.

I attached a FreeBSD dmesg (custom kernel - same happens with the GENERIC one),
and the dmesg from tomsrtbt (a one-floppy linux distribution which loads a
ramdisk image from floppy - you can see the messages when it starts reading
that).

Does anyone have an idea about how to start debugging or fixing this?

-- 
Chris
-------------- next part --------------
Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 4.7-STABLE #0: Tue Feb  4 21:45:11 CET 2003
    supc at freedaemon.home.lan:/usr/src/sys/compile/LAPTOP
Timecounter "i8254"  frequency 1193182 Hz
CPU: i486DX (486-class CPU)
real memory  = 8388608 (8192K bytes)
avail memory = 5484544 (5356K bytes)
Preloaded elf kernel "kernel" at 0xc02e9000.
md0: Malloc disk
npx0: <math processor> on motherboard
npx0: INT 16 interface
isa0: <ISA bus> on motherboard
orm0: <Option ROM> at iomem 0xc0000-0xc7fff on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0
ata1 at port 0x170-0x177,0x376 irq 15 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
vga0: <Generic ISA VGA> at port 0x3b0-0x3cf iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA (mono) <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16450
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppi0: <Parallel I/O> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
plip0: <PLIP network interface> on ppbus0
ad0: 1295MB <TOSHIBA MK1302MAN> [2633/16/63] at ata0-master BIOSPIO
Mounting root from ufs:/dev/ad0s2a
 172.16.0.1 netmask 0xffffff00 
fd0c: hard error reading fsbn 0 of 0-3 (ST0 40<abnrml> ST1 10<data_overrun> ST2 0 cyl 0 hd 0 sec 1)
fd0c: hard error reading fsbn 0 (ST0 40<abnrml> ST1 10<data_overrun> ST2 0 cyl 0 hd 0 sec 1)
fd0c: hard error reading fsbn 0 of 0-3 (ST0 40<abnrml> ST1 10<data_overrun> ST2 0 cyl 0 hd 0 sec 1)
fd0c: hard error reading fsbn 0 (ST0 40<abnrml> ST1 10<data_overrun> ST2 0 cyl 0 hd 0 sec 1)
-------------- next part --------------
Linux version 2.2.20ext3 (root at conn6m) (gcc version 2.7.2.3) #6 Thu May 2 12:00:25 2002
BIOS-provided physical RAM map:
 BIOS-88: 0009f000 @ 00000000 (usable)
 BIOS-88: 00700000 @ 00100000 (usable)
Console: colour VGA+ 80x25
Calibrating delay loop... 24.88 BogoMIPS
Memory: 5836k/8192k available (1560k kernel code, 416k reserved, 288k data, 92k init)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Dentry hash table entries: 1024 (order 1, 8k)
Buffer cache hash table entries: 8192 (order 3, 32k)
Page cache hash table entries: 2048 (order 1, 8k)
CPU: 486
Checking 386/387 coupling... OK, FPU using exception 16 error reporting.
Checking 'hlt' instruction... OK.
Checking for popad bug... OK.
POSIX conformance testing by UNIFIX
PCI: No PCI bus detected
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0 for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
TCP: Hash tables configured (ehash 8192 bhash 8192)
Starting kswapd v 1.5 
parport0: PC-style at 0x378, irq 7 [SPP]
Serial driver version 4.27 with no serial options enabled
ttyS00 at 0x03f8 (irq = 4) is a 16450
RAM disk driver initialized:  16 RAM disks of 4096K size
loop: registered device at major 7
hda: TOSHIBA MK1302MAN, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: TOSHIBA MK1302MAN, 1296MB w/128kB Cache, CHS=2633/16/63
Floppy drive(s): fd0 is 1.44M
FDC 0 is an 8272A
ppa: Version 2.07 (for Linux 2.2.x)
WARNING - no ppa compatible devices found.
  As of 31/Aug/1998 Iomega started shipping parallel
  port ZIP drives with a different interface which is
  supported by the imm (ZIP Plus) driver. If the
  cable is marked with "AutoDetect", this is what has
  happened.
imm: Version 2.03 (for Linux 2.0.0)
scsi : 0 hosts.
scsi : detected total.
NET3 PLIP version 2.3-parport gniibe at mri.co.jp
plip0: Parallel port at 0x378, using IRQ 7
early initialization of device plip0 is deferred
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).
3c59x.c 18Feb01 Donald Becker and others http://www.scyld.com/network/vortex.html
Partition check:
 hda: hda1 hda2 hda3 < hda5 >
floppy0: Getstatus times out (10) on fdc 0

floppy driver state
-------------------
now=516 last interrupt=516 diff=0 last called handler=00000000
timeout_message=do wakeup
last output bytes:
 0  0 0
 0  0 0
 0  0 0
 0  0 0
 0  0 0
 0  0 0
 0  0 0
 0  0 0
 0  0 0
 0  0 0
 8 80 476
 8 80 476
 8 80 476
 8 80 476
 8 80 476
 e 80 476
 8 80 476
 8 80 476
 8 80 476
 8 80 476
last result at 476
last redo_fd_request at 477

status=10
fdc_busy=0
cont=00000000
CURRENT=00000000
command_status=-1

floppy0: get result error. Fdc=0 Last status=ffffffff Read bytes=0

floppy driver state
-------------------
now=516 last interrupt=516 diff=0 last called handler=00000000
timeout_message=do wakeup
last output bytes:
 0  0 0
 0  0 0
 0  0 0
 0  0 0
 0  0 0
 0  0 0
 0  0 0
 0  0 0
 0  0 0
 0  0 0
 8 80 476
 8 80 476
 8 80 476
 8 80 476
 8 80 476
 e 80 476
 8 80 476
 8 80 476
 8 80 476
 8 80 476
last result at 476
last redo_fd_request at 477

status=10
fdc_busy=0
cont=00000000
CURRENT=00000000
command_status=-1

floppy0: unexpected interrupt 
VFS: Disk change detected on device fd(2,60)
RAMDISK: bzip2 Compressed image found at block 867
aaaiiiiiiiiiiiiioooooooooooooooooooooooooooooboiiiiiiiiiiioooooooooooooooooooooooooooooooboiiooooooooooooobfff
bzip2_out:0x00253000
bytes_out:0x00253000
NTFS version 000607
VFS: Mounted root (minix filesystem).
Freeing unused kernel memory: 92k freed
Linux PCMCIA Card Services 3.1.29
  kernel build: 2.2.20ext3 unknown
  options:  [pci] [cardbus]
Intel ISA/PCI/CardBus PCIC probe:
  no bridges found.
ds: no socket drivers loaded!
VFS: Can't find an ext3 filesystem on dev ide0(3,1).


More information about the freebsd-questions mailing list