From owner-freebsd-stable@FreeBSD.ORG Sat Sep 6 04:49:59 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 01C7816A4BF for ; Sat, 6 Sep 2003 04:49:59 -0700 (PDT) Received: from bast.unixathome.org (bast.unixathome.org [66.11.174.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04B0C43FBD for ; Sat, 6 Sep 2003 04:49:57 -0700 (PDT) (envelope-from dan@langille.org) Received: from wocker (wocker.unixathome.org [192.168.0.99]) by bast.unixathome.org (Postfix) with ESMTP id 84C973D28 for ; Sat, 6 Sep 2003 07:49:56 -0400 (EDT) From: "Dan Langille" To: freebsd-stable@FreeBSD.org Date: Sat, 06 Sep 2003 07:51:45 -0400 MIME-Version: 1.0 Message-ID: <3F599211.23779.97AE35B@localhost> Priority: normal X-mailer: Pegasus Mail for Windows (v4.02a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Subject: ATA problems caused by cable or drive? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Sep 2003 11:49:59 -0000 Please CC me on this thread. I'm running: FreeBSD polo.example.org 4.8-STABLE FreeBSD 4.8-STABLE #3: Fri Aug 15 15:36:34 EDT 2003 dan@polo.example.org:/usr/obj/usr/src/sys/POLO i386 I arrived home Friday about 15:30 to find this box had rebooted and having trouble with its IDE drive. A screen shot of the console is at http://www.freebsddiary.org/tmp/ata-failure.jpg I rebooted into single user mode and ran "fsck -y" on /, /tmp, /var, and /usr. After another freeze up of the system and a manual reboot, a second fsck of /usr succeeded and the box booted. IRC folks suggested a bad IDE cable so I installed a new cable. When looking at the logs, there was nothing there after 8:51 that morning and before my rebooting attempts. Here Sep 5 16:18:10 polo /kernel: Copyright (c) 1992-2003 The FreeBSD Project. Sep 5 16:18:10 polo /kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 Sep 5 16:18:10 polo /kernel: The Regents of the University of California. All rights reserved. Sep 5 16:18:10 polo /kernel: FreeBSD 4.8-STABLE #3: Fri Aug 15 15:36:34 EDT 2003 Sep 5 16:18:10 polo /kernel: dan@polo.example.org:/usr/obj/usr/src/sys/POLO Sep 5 16:18:10 polo /kernel: Timecounter "i8254" frequency 1193182 Hz Sep 5 16:18:10 polo /kernel: CPU: Intel Pentium III (797.42-MHz 686-class CPU) Sep 5 16:18:10 polo /kernel: Origin = "GenuineIntel" Id = 0x686 Stepping = 6 Sep 5 16:18:10 polo /kernel: Features=0x383f9ff Sep 5 16:18:10 polo /kernel: real memory = 268173312 (261888K bytes) Sep 5 16:18:10 polo /kernel: config> di sn0 Sep 5 16:18:10 polo /kernel: config> di lnc0 Sep 5 16:18:10 polo /kernel: config> di ie0 Sep 5 16:18:10 polo /kernel: config> di fe0 Sep 5 16:18:10 polo /kernel: config> di ed0 Sep 5 16:18:10 polo /kernel: config> di cs0 Sep 5 16:18:10 polo /kernel: config> q Sep 5 16:18:10 polo /kernel: avail memory = 255664128 (249672K bytes) Sep 5 16:18:10 polo /kernel: pnpbios: Bad PnP BIOS data checksum Sep 5 16:18:10 polo /kernel: Preloaded elf kernel "kernel" at 0xc0527000. Sep 5 16:18:10 polo /kernel: Preloaded userconfig_script "/boot/kernel.conf" at 0xc05270a8. Sep 5 16:18:10 polo /kernel: Pentium Pro MTRR support enabled Sep 5 16:18:10 polo /kernel: md0: Malloc disk Sep 5 16:18:10 polo /kernel: Using $PIR table, 12 entries at 0xc00f2cd0 Sep 5 16:18:10 polo /kernel: npx0: on motherboard Sep 5 16:18:10 polo /kernel: npx0: INT 16 interface Sep 5 16:18:10 polo /kernel: pcib0: on motherboard Sep 5 16:18:10 polo /kernel: pci0: on pcib0 Sep 5 16:18:10 polo /kernel: agp0: mem 0xf8000000-0xfbffffff at device 0.0 on pci0 Sep 5 16:18:10 polo /kernel: pcib1: at device 1.0 on pci0 Sep 5 16:18:10 polo /kernel: pci1: on pcib1 Sep 5 16:18:10 polo /kernel: pci1: at 0.0 irq 11 Sep 5 16:18:10 polo /kernel: pcib2: at device 30.0 on pci0 Sep 5 16:18:10 polo /kernel: pci2: on pcib2 Sep 5 16:18:10 polo /kernel: de0: port 0xdc00-0xdc7f mem 0xfeaffc00-0xfeaffc7f irq 3 at device 10.0 on pci2 Sep 5 16:18:10 polo /kernel: de0: SMC 21041 [10Mb/s] pass 1.1 Sep 5 16:18:10 polo /kernel: de0: address 00:00:c0:e6:7d:cf Sep 5 16:18:10 polo /kernel: pci2: (vendor=0x1274, dev=0x1371) at 12.0 irq 9 Sep 5 16:18:10 polo /kernel: isab0: at device 31.0 on pci0 Sep 5 16:18:10 polo /kernel: isa0: on isab0 Sep 5 16:18:10 polo /kernel: atapci0: port 0xffa0-0xffaf at device 31.1 on pci0 Sep 5 16:18:10 polo /kernel: ata0: at 0x1f0 irq 14 on atapci0 Sep 5 16:18:10 polo /kernel: ata1: at 0x170 irq 15 on atapci0 Sep 5 16:18:10 polo /kernel: uhci0: port 0xef80-0xef9f irq 10 at device 31.2 on pci0 Sep 5 16:18:10 polo /kernel: usb0: on uhci0 Sep 5 16:18:10 polo /kernel: usb0: USB revision 1.0 Sep 5 16:18:10 polo /kernel: uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 Sep 5 16:18:10 polo /kernel: uhub0: 2 ports with 2 removable, self powered Sep 5 16:18:10 polo /kernel: pci0: (vendor=0x8086, dev=0x2443) at 31.3 irq 9 Sep 5 16:18:10 polo /kernel: fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 Sep 5 16:18:10 polo /kernel: fdc0: FIFO enabled, 8 bytes threshold Sep 5 16:18:10 polo /kernel: fd0: <1440-KB 3.5" drive> on fdc0 drive 0 Sep 5 16:18:10 polo /kernel: atkbdc0: at port 0x60,0x64 on isa0 Sep 5 16:18:10 polo /kernel: atkbd0: irq 1 on atkbdc0 Sep 5 16:18:10 polo /kernel: kbd0 at atkbd0 Sep 5 16:18:10 polo /kernel: vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Sep 5 16:18:10 polo /kernel: sc0: at flags 0x100 on isa0 Sep 5 16:18:10 polo /kernel: sc0: VGA <16 virtual consoles, flags=0x300> Sep 5 16:18:10 polo /kernel: sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 Sep 5 16:18:10 polo /kernel: sio0: type 16550A Sep 5 16:18:10 polo /kernel: sio1: configured irq 3 not in bitmap of probed irqs 0 Sep 5 16:18:10 polo /kernel: ppc0: at port 0x378-0x37f irq 7 on isa0 Sep 5 16:18:10 polo /kernel: ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode Sep 5 16:18:10 polo /kernel: plip0: on ppbus0 Sep 5 16:18:10 polo /kernel: lpt0: on ppbus0 Sep 5 16:18:10 polo /kernel: lpt0: Interrupt-driven port Sep 5 16:18:10 polo /kernel: ppi0: on ppbus0 Sep 5 16:18:10 polo /kernel: de0: enabling 10baseT port Sep 5 16:18:10 polo /kernel: ad0: 38172MB [77557/16/63] at ata0-master UDMA100 Sep 5 16:18:10 polo /kernel: acd0: CD-RW at ata1-master PIO4 Sep 5 16:18:10 polo /kernel: Mounting root from ufs:/dev/ad0s1a Here is the hard error... Sep 5 16:18:10 polo /kernel: ad0s1g: hard error reading fsbn 127733311 of 62703200-62703327 (ad0s1 bn 127733311; cn 7951 tn 7 sn 55) trying PIO mode Sep 5 16:18:10 polo /kernel: ad0: DMA problem fallback to PIO mode Sep 5 16:18:10 polo last message repeated 3 times Sep 5 16:18:10 polo /kernel: ad0s1g: hard error reading fsbn 127733375 of 62703200-62703327 (ad0s1 bn 127733375; cn 7951 tn 8 sn 56) status=59 error=40 Sep 5 16:18:10 polo /kernel: ad0s1g: hard error reading fsbn 62703267 (ad0s1 bn 62703267; cn 3903 tn 24 sn 60) status=59 error=40 Since replacing the cable, I've rerun fsck, and no problems were found. What do you think? Cable problem? Or drive problem? -- Dan Langille : http://www.langille.org/