Re: how to get serial_no from usb HD disk (HDIO_GET_IDENTITY ioctl,hdparm -i)

From: Stephen Clark
Date: Sat Jan 06 2007 - 12:00:34 EST


Kay Sievers wrote:

On 1/6/07, Greg KH <greg@xxxxxxxxx> wrote:


On Fri, Jan 05, 2007 at 12:27:34AM +0200, Yakov Lerner wrote:


How can I get serial_no from usb-attached HD drive ?


use the *_id programs that come with udev, they show you how to properly
do that.



Only "advanced" ATA-USB bridges will offer you the serial number the
adapter reads from the disk on power-up. The usual id-tools will just
work fine on theses bridges.

There is no way to reach that information with most of the cheap USB
storage-adapters.

Kay
-
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/



HI Kay,

I am looking to buy a usb to ata adapter can you name some of the advanced adapters?

Thanks,
Steve

--

"They that give up essential liberty to obtain temporary safety, deserve neither liberty nor safety." (Ben Franklin)

"The course of history shows that as a government grows, liberty decreases." (Thomas Jefferson)



-
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/