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

2007-01-06 Thread Kay Sievers
On Sat, 2007-01-06 at 11:59 -0500, Stephen Clark wrote: > Kay Sievers wrote: > >On 1/6/07, Greg KH <[EMAIL PROTECTED]> 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 com

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

2007-01-06 Thread Stephen Clark
Kay Sievers wrote: On 1/6/07, Greg KH <[EMAIL PROTECTED]> 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 "adv

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

2007-01-06 Thread Kay Sievers
On 1/6/07, Greg KH <[EMAIL PROTECTED]> 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 th

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

2007-01-05 Thread Greg KH
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. good luck, greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

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

2007-01-04 Thread Yakov Lerner
How can I get serial_no from usb-attached HD drive ? The HDIO_GET_IDENTITY ioctl fails (like 'hdparm -i'). Any advice on how to extract the drive serialNo from the usb disk ? Can I write kernel module to extract the SerialNo ? (I don't need whole 'struct hd_driveid', only the SerialNo). Thanks Y