Serial number of SATA disks?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
beppe85

Serial number of SATA disks?

Post by beppe85 »

Hi, dudes!

I know the question goes a bit off-topic, but I need to obtain the serial number from SATA disks. I mean the one which the manufacturer generates, not volumes ones.

I have working code to extract from normal ATA, don't know why it don't recognizes SATA. Maybe 'cause I'm a newbye in this subject... -__-

Thank you for your attention.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Serial number of SATA disks?

Post by Pype.Clicker »

honnestly, i haven't gave a look at SATA so far (don't even bothered with googling for docs), but my guess would be SATA actually uses ATAPI rather than plain ATA (and ATAPI just needs another message to get those specs)
srg

Re:Serial number of SATA disks?

Post by srg »

Pype.Clicker wrote: honnestly, i haven't gave a look at SATA so far (don't even bothered with googling for docs), but my guess would be SATA actually uses ATAPI rather than plain ATA (and ATAPI just needs another message to get those specs)
SATA is supposed to be programming compatible with PATA, just the hardware is different.

srg
B.E

Re:Serial number of SATA disks?

Post by B.E »

Here's the specs for Serial ATA(SATA)

I haven't read it completely but it look's like a extension to the ATAPI
srg

Re:Serial number of SATA disks?

Post by srg »

B.E wrote: Here's the specs for Serial ATA(SATA)

I haven't read it completely but it look's like a extension to the ATAPI
but can also emulate PATA.

srg
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Serial number of SATA disks?

Post by Pype.Clicker »

well, it indeed looks like the ATA "Identify Device" function works, so everything should be fine. Make sure the controller is ready, send the "identify device", read the returned 'sector' and you'll get serial number overthere.

Afaik, the Moebius was rather good at identifying drives ... you might try to use it to check whether it's your drive or your software implementation that causes trouble.

http://mobius.sourceforge.net/download.php
beppe85

Re:Serial number of SATA disks?

Post by beppe85 »

Hi!

I'll give a read on the specs and try to figure out what's going wrong.

Thank you all.
Post Reply