On 02/19/2011 10:37 AM, John Robinson wrote: > On 19/02/2011 11:52, Mathias Burén wrote: > [...] >> What I wonder is, how do I know what device is ata3? I do have 4 >> devices of that model (WD20EARS). I've tried searching in /sys but >> there's nothing of value there (or I've missed it). If dmesg only >> showed the S/N... >> I posted the smartctl --all output of all devices here in case someone >> has time to take a look: >> http://stuff.dyndns.org/logs/smart-sd[a,b,c,d,e,f,g].log > > Try using Phil Turmel's excellent lsdrv script; I've attached the version I use on EL5, but I hacked it about to work on such an old distro so I wouldn't swear it will work on more recent distros; Phil's original that does work on more recent distros can be found in the list archives around 6 November last year in the thread "Determining which spindle is out of order". I've attached the latest version. It falls back to smartctl if it can't find the sginfo utility. It should work on both old and new sysfs layouts. Phil