On Tue, Jan 18, 2011 at 11:52:01PM -0500, Mark Lord wrote: > I was sorting through drives here today, and found one that > was "security locked" (had a user passwd set on it), > and for which I did not know the password. > > So I hotplugged it to my SiI-3132 card, with the intent > of simply erasing the drive (thereby clearing the passwd) > using hdparm. > > Except.. the kernel (?) sat there for a very long time trying > (and failing) over and over and over and over and over and over > to read sector-0 (the partition table). Of course the reads > each failed, and then got retried 5-times by SCSI, and then > retried again a zillion times at a higher level. I think SCSI and libata are behaving okay here. The root cause is how the partition code handles IO errors. Different partition table type probes do IOs separately. It's somewhat reasonable given that they may poke at different sectors which sometimes could be near the end of the device failure of which might not necessarily mean the whole device is inaccessible, but anyways the end result is that the each partition table type pokes the drive regardless of how the previous attempt went. And yeah we probably need some improvements there. Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html