Just tried this out with latest Ubuntu Feisty kernel 2.6.20-16-generic
and got the error messages from 'smartctl'. As others have reported, I
had used 'smartctl' successfully under Edgy (I used it in a script to
report drive info in Conky). I just got around to setting this up in
Feisty after a period of laziness, so I am just discovering the issue.

Since the error message suggests using '-T permissive', I tried the '-T
permissove' option, and it forces 'smartctl' to overlook the "status"
error and report all other drive info successfully.

According to 'smartctl' man pages, multiple "-T permissive" commands may
be required to overcome multiple errors. Since it only required one '-T
permissive' command, I must conclude that the "status" error is the only
one encountered. This seems to be the case as I could only find one
mention of an error in the 'smartctl' output amongst all the other
information. The error text is as follows:

Error SMART Status command failed
Please get assistance from http://smartmontools.sourceforge.net/
Register values returned from SMART Status command are:
CMD=0x50
FR =0x00
NS =0x00
SC =0x00
CL =0x00
CH =0x00
SEL=0x00

Also, a 'diff' (meld) comparison of output from the 'smartctl' command
using '-T permissive' in one instance and '-T verypermissive' in another
('-T verypermissive' tells 'smartctl' to ignore any number of errors)
yielded a difference of only the outputs' timestamps.

Bottom line: until the underlying issue is resolved (consensus thus far
says it is the kernel) you can modify your commands by adding 'the '-T
permissive' (which should suffice) or the '-T verypermissve' option. For
example:

smartctl -a -d ata /dev/sda

becomes

smartctl -T permissive -a -d ata /dev/sda

or

smartctl -T verypermissive -a -d ata /dev/sda

I tested this on three SATA drives with success:

- Western Digital Raptor 37GB HDD (SATA 1.5 Gbit/s HDD on main MB 1.5 Gbit/s 
connection)
- Samsung 160GB HDD (SATA 1.5 Gbit/s HDD on main MB 1.5 Gbit/s connection)
- Seagate 320GB HDD (SATA 3.0 Gbit/s HDD on SI 3114 1.5 Gbit/s SATA/RAID 
controller built-in to MB)

-- 
smartmontools/smartctl does not work on SATA drives on Linux Kernel 2.6.20-15.27
https://bugs.launchpad.net/bugs/106821
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to