public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Q: how to send ATA cmds to USB drive?
@ 2006-05-24  9:22 Herbert Rosmanith
  2006-05-24 11:22 ` Alan Cox
  0 siblings, 1 reply; 7+ messages in thread
From: Herbert Rosmanith @ 2006-05-24  9:22 UTC (permalink / raw)
  To: linux-kernel


good day,

I have a question concerning sending arbitrary ATA commands to an USB
drive.

Currently, I have a particular application which sends special ATA commands
to an IDE drive using IDE_TASKFILE. So far, this works pretty well.

But now I also have to support USB harddisks from the same company.
The USB harddisk uses the same set of ATA commands as the IDE harddisk,
well, at least that's what I suppose.

How do I send ATA commands to this USB drive? I suppose this would be
done via SG_IO (the drive is recognised by linux as usb-storage, of
course), but how exactly does this have to be done? I have already
used SG_IO before to send some MMC commands to cdvd-drives, but I
don't know how to send ATA (such as those from T13) commands with this
interface.

Do you have any kind of advice?

kind regards,
herbert rosmanith



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-06-12 10:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <6fXQT-16z-11@gated-at.bofh.it>
2006-05-24 23:15 ` Q: how to send ATA cmds to USB drive? Robert Hancock
2006-05-24 23:33   ` Jeff Garzik
2006-05-24  9:22 Herbert Rosmanith
2006-05-24 11:22 ` Alan Cox
2006-06-12  9:22   ` Herbert Rosmanith
2006-06-12 10:02     ` Herbert Rosmanith
2006-06-12 10:26       ` Herbert Rosmanith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox