Hello, Stable. Latest smartmontools 5.40 doesn't work with AHCI driver :( I've found old thread about 5.38, but I have 5.40 and it doesn't work with any `-d' type... What do I do wrong? # id uid=0(root) gid=0(wheel) groups=0(wheel),5(operator) # uname -srp FreeBSD 8.2-PRERELEASE amd64 # ls /var/db/pkg | grep smart smartmontools-5.40 # ls /dev/ada[0-9] /dev/ada0 /dev/ada1 /dev/ada2 /dev/ada3 /dev/ada4 /dev/ada5 blob# smartctl -A /dev/ada0 smartctl 5.40 2010-10-16 r3189 [FreeBSD 8.2-PRERELEASE amd64] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net /dev/ada0: No such file or directory Smartctl: please specify device type with the -d option. Use smartctl -h to get a usage summary # smartctl -A -d ata /dev/ada0 smartctl 5.40 2010-10-16 r3189 [FreeBSD 8.2-PRERELEASE amd64] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net Smartctl: Device Read Identity Failed (not an ATA/ATAPI device) A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options. # smartctl -A -d scsi /dev/ada0 smartctl 5.40 2010-10-16 r3189 [FreeBSD 8.2-PRERELEASE amd64] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net Smartctl open device: /dev/ada0 failed: No such file or directory # smartctl -A -d atacam /dev/ada0 smartctl 5.40 2010-10-16 r3189 [FreeBSD 8.2-PRERELEASE amd64] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net Smartctl open device: /dev/ada0 failed: No such file or directory # -- // Black Lion AKA Lev Serebryakov <lev@FreeBSD.org>
On 03.12.10 14:04, Lev Serebryakov wrote:> Hello, Stable. >Hi,> Latest smartmontools 5.40 doesn't work with AHCI driver :( I've > found old thread about 5.38, but I have 5.40 and it doesn't work > with any `-d' type... > > What do I do wrong? > >I had the same problem the cause was that i did not have "device pass" in my kernel, i had this in my messages: messages.5.bz2:Oct 12 12:46:45 xxx kernel: xptioctl: pass driver is not in the kernel messages.5.bz2:Oct 12 12:46:45 xxx kernel: xptioctl: put "device pass" in your kernel config file -- Florian Smeets
on 03/12/2010 15:04 Lev Serebryakov said the following:> Hello, Stable. > > Latest smartmontools 5.40 doesn't work with AHCI driver :( I've > found old thread about 5.38, but I have 5.40 and it doesn't work > with any `-d' type... > > What do I do wrong? >I don't know. Try ktrace, etc. $ smartctl -A /dev/ada0 smartctl 5.40 2010-10-16 r3189 [FreeBSD 8.2-PRERELEASE amd64] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net === START OF READ SMART DATA SECTION ==SMART Attributes Data Structure revision number: 16 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x000b 100 100 016 Pre-fail Always - 0 2 Throughput_Performance 0x0005 132 132 054 Pre-fail Offline - 142 3 Spin_Up_Time 0x0007 141 141 024 Pre-fail Always - 273 (Average 271) 4 Start_Stop_Count 0x0012 100 100 000 Old_age Always - 103 5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always - 0 7 Seek_Error_Rate 0x000b 100 100 067 Pre-fail Always - 0 8 Seek_Time_Performance 0x0005 131 131 020 Pre-fail Offline - 29 9 Power_On_Hours 0x0012 098 098 000 Old_age Always - 18243 10 Spin_Retry_Count 0x0013 100 100 060 Pre-fail Always - 0 12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 65 192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 244 193 Load_Cycle_Count 0x0012 100 100 000 Old_age Always - 244 194 Temperature_Celsius 0x0002 162 162 000 Old_age Always - 37 (Min/Max 20/54) 196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 0 197 Current_Pending_Sector 0x0022 100 100 000 Old_age Always - 0 198 Offline_Uncorrectable 0x0008 100 100 000 Old_age Offline - 0 199 UDMA_CRC_Error_Count 0x000a 200 200 000 Old_age Always - 0 -- Andriy Gapon