Page 1 of 1

Serial number of SATA disks?

Posted: Mon May 02, 2005 12:25 pm
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.

Re:Serial number of SATA disks?

Posted: Tue May 03, 2005 12:31 am
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)

Re:Serial number of SATA disks?

Posted: Tue May 03, 2005 2:15 am
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

Re:Serial number of SATA disks?

Posted: Tue May 03, 2005 2:17 am
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

Re:Serial number of SATA disks?

Posted: Tue May 03, 2005 2:35 am
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

Re:Serial number of SATA disks?

Posted: Tue May 03, 2005 3:07 am
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

Re:Serial number of SATA disks?

Posted: Wed May 04, 2005 2:55 pm
by beppe85
Hi!

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

Thank you all.