Re: Which disk is ata4?

From: Alan Cox
Date: Thu Aug 30 2012 - 12:35:27 EST


On Thu, 30 Aug 2012 18:29:38 +0200
Borislav Petkov <bp@xxxxxxxxx> wrote:

> On Thu, Aug 30, 2012 at 06:14:46PM +0200, Jan Engelhardt wrote:
> > This tells me everything to replace a disk.
> > 1. sdparm -C stop /dev/sdb
> > 2. Removing Z1F0KR3H from the chassis.
>
> Yep, the serial number is the best suggestion so far.
>
> Are we sure this serial number is always programmed in by the hdd
> vendors so that sdparm can read it out?

With three known exceptions
- fake ones generated by some IT821X adapters in RAID mode
- certain old Maxtor PATA drives had a peculiar firmware failure where
they changed to some kind of default serial number. Very unusual. Was
never really fully explained and seems to have been very rare.
- drives so ancient they don't support IDENTIFY, and we don't support
them in libata anyway !

Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/