Hi there, I suspect that the harddrive in my new Thinkpad T61p (dmesg below) is failing, so I tried to examine its SMART statistics. I encountered two problems. I'm using OpenBSD 4.2-RELEASE (amd64).
The first problem was that I couldn't get atactl to work. The command: # atactl sd0c smartstatus results in: atactl: ATAIOCCOMMAND failed: Inappropriate ioctl for device I searched for this error message on Google and the archives of this list, but couldn't find anyting appropriate. Does atactl fail because the disk is a SATA disk behind an ahci controller, thus appearing as a SCSI-disk? Or am I overlooking something? After that, I installed smartctl from packages. This failed too, but in a bigger way. This is what happened: # smartctl -a /dev/sd0c smartctl version 5.33 [x86_64-unknown-openbsd4.2] Copyright (C) 2002-4 Bruce Allen Home page is http://smartmontools.sourceforge.net/ Device: ATA ST910021AS Version: 4.06 sd0( The last line (starting with sd0) was printed by the kernel. I didn't get a prompt back, instead the machine just resetted after some seconds. No panic, no ddb, it just resetted. (All sysctl settings were default, so ddb.panic was 1) Invoking smartctl with the -d ata option resulted in a similar message atactl gave: "Inappropriate ioctl for device". What can I do to diagnose and/or (help) fix this? Thanks, OpenBSD 4.2 (GENERIC) #1179: Tue Aug 28 10:37:50 MDT 2007 [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC real mem = 2112147456 (2014MB) avail mem = 2039836672 (1945MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (73 entries) bios0: vendor LENOVO version "7LET56WW (1.26 )" date 10/18/2007 bios0: LENOVO 64606XG acpi at mainbus0 not configured cpu0 at mainbus0: (uniprocessor) cpu0: Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz, 2194.88 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR,NXE,LONG cpu0: 4MB 64b/line 16-way L2 cache cpu0: unknown Enhanced SpeedStep CPU, msr 0x06170c2d06000c2d cpu0: using only highest and lowest power states cpu0: Enhanced SpeedStep 2400 MHz (1420 mV): speeds: 2400, 1200 MHz pci0 at mainbus0 bus 0: configuration mode 1 pchb0 at pci0 dev 0 function 0 "Intel 82965GM MCH" rev 0x0c ppb0 at pci0 dev 1 function 0 vendor "Intel", unknown product 0x2a01 rev 0x0c pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 vendor "NVIDIA", unknown product 0x040c rev 0xa1 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) em0 at pci0 dev 25 function 0 "Intel ICH8 IGP M AMT" rev 0x03: irq 11, address 00:1c:25:10:cd:8f uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x03: irq 11 uhci1 at pci0 dev 26 function 1 "Intel 82801H USB" rev 0x03: irq 11 ehci0 at pci0 dev 26 function 7 "Intel 82801H USB" rev 0x03: irq 11 ehci0: timed out waiting for BIOS usb0 at ehci0: USB revision 2.0 uhub0 at usb0: Intel EHCI root hub, rev 2.00/1.00, addr 1 azalia0 at pci0 dev 27 function 0 "Intel 82801H HD Audio" rev 0x03: irq 11 azalia0: host: High Definition Audio rev. 1.0 azalia0: codec: Analog Devices/0x1984 (rev. 4.0), HDA version 1.0 azalia0: codec: Conexant/0x2bfa (rev. 0.0), HDA version 0.9 azalia0: codec[1]: No support for modem function groups azalia0: codec[1]: No audio function groups audio0 at azalia0 ppb1 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x03 pci2 at ppb1 bus 2 ppb2 at pci0 dev 28 function 1 "Intel 82801H PCIE" rev 0x03 pci3 at ppb2 bus 3 "Intel Wireless WiFi Link 4965AGN" rev 0x61 at pci3 dev 0 function 0 not configured ppb3 at pci0 dev 28 function 2 "Intel 82801H PCIE" rev 0x03 pci4 at ppb3 bus 4 ppb4 at pci0 dev 28 function 3 "Intel 82801H PCIE" rev 0x03 pci5 at ppb4 bus 5 ppb5 at pci0 dev 28 function 4 "Intel 82801H PCIE" rev 0x03 pci6 at ppb5 bus 13 uhci2 at pci0 dev 29 function 0 "Intel 82801H USB" rev 0x03: irq 10 uhci3 at pci0 dev 29 function 1 "Intel 82801H USB" rev 0x03: irq 11 uhci4 at pci0 dev 29 function 2 "Intel 82801H USB" rev 0x03: irq 11 ehci1 at pci0 dev 29 function 7 "Intel 82801H USB" rev 0x03: irq 11 ehci1: timed out waiting for BIOS usb1 at ehci1: USB revision 2.0 uhub1 at usb1: Intel EHCI root hub, rev 2.00/1.00, addr 1 ppb6 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xf3 pci7 at ppb6 bus 21 cbb0 at pci7 dev 0 function 0 "Ricoh 5C476 CardBus" rev 0xba: irq 10 "Ricoh 5C832 Firewire" rev 0x04 at pci7 dev 0 function 1 not configured sdhc0 at pci7 dev 0 function 2 "Ricoh 5C822 SD/MMC" rev 0x21: irq 11 sdmmc0 at sdhc0 "Ricoh 5C843" rev 0x11 at pci7 dev 0 function 3 not configured "Ricoh 5C592 Memory Stick" rev 0x11 at pci7 dev 0 function 4 not configured "Ricoh 5C852 xD" rev 0x11 at pci7 dev 0 function 5 not configured cardslot0 at cbb0 slot 0 flags 0 cardbus0 at cardslot0: bus 22 device 0 cacheline 0x0, lattimer 0xb0 pcmcia0 at cardslot0 pcib0 at pci0 dev 31 function 0 vendor "Intel", unknown product 0x2811 rev 0x03 pciide0 at pci0 dev 31 function 1 "Intel 82801HBM IDE" rev 0x03: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility atapiscsi0 at pciide0 channel 0 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: <MATSHITA, DVD-RAM UJ-852, RB02> SCSI0 5/cdrom removable cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 pciide0: channel 1 ignored (disabled) ahci0 at pci0 dev 31 function 2 "Intel 82801HBM SATA" rev 0x03: irq 10, AHCI 1.1 scsibus1 at ahci0: 32 targets sd0 at scsibus1 targ 0 lun 0: <ATA, ST910021AS, 4.06> SCSI2 0/direct fixed sd0: 95396MB, 12161 cyl, 255 head, 63 sec, 512 bytes/sec, 195371568 sec total ichiic0 at pci0 dev 31 function 3 "Intel 82801H SMBus" rev 0x03: irq 11 iic0 at ichiic0 usb2 at uhci0: USB revision 1.0 uhub2 at usb2: Intel UHCI root hub, rev 1.00/1.00, addr 1 usb3 at uhci1: USB revision 1.0 uhub3 at usb3: Intel UHCI root hub, rev 1.00/1.00, addr 1 usb4 at uhci2: USB revision 1.0 uhub4 at usb4: Intel UHCI root hub, rev 1.00/1.00, addr 1 usb5 at uhci3: USB revision 1.0 uhub5 at usb5: Intel UHCI root hub, rev 1.00/1.00, addr 1 usb6 at uhci4: USB revision 1.0 uhub6 at usb6: Intel UHCI root hub, rev 1.00/1.00, addr 1 isa0 at pcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pms0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pms0 mux 0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: <PC speaker> spkr0 at pcppi0 aps0 at isa0 port 0x1600/31 ugen0 at uhub2 port 2 ugen0: STMicroelectronics Biometric Coprocessor, rev 1.00/0.01, addr 2 dkcsum: sd0 matches BIOS drive 0x80 root on sd0a swap on sd0b dump on sd0b umass0 at uhub1 port 2 configuration 1 interface 0 umass0: SanDisk Corporation Cruzer Mini, rev 2.00/0.10, addr 2 umass0: using SCSI over Bulk-Only scsibus2 at umass0: 2 targets sd1 at scsibus2 targ 1 lun 0: <SanDisk, Cruzer Mini, 0.1> SCSI2 0/direct removable sd1: 244MB, 31 cyl, 255 head, 63 sec, 512 bytes/sec, 501759 sec total -- Jurjen Oskam Savage's Law of Expediency: You want it bad, you'll get it bad.

