Hard disk detection on SATA AHCI

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
digo_rp
Member
Member
Posts: 233
Joined: Sun Jun 05, 2005 11:00 pm

Hard disk detection on SATA AHCI

Post by digo_rp »

Hi all, before doing the same mistake like I did last post, I´m here to ask help.

I must ask forgive me please, I don´t speak much english, and so, some times I take a long time trying to find documentations in wrong search terms in english.

I don´t really knows how to find: I need to know how can I get drive parameters attached to my AHCI controller at my notebook. now I have a small sata ahci working like your post AHCI from wiki. and my ssd is a kingstom 200GB.

I don´t really know how to find, I´m trying so much combinations. drive "osdev detection in sata", "linux sata ahci device hdd detection string".

could anyone helps me please?

tnx so much and please sorry about stupid questions.
Nable
Member
Member
Posts: 453
Joined: Tue Nov 08, 2011 11:35 am

Re: Hard disk detection on SATA AHCI

Post by Nable »

As far as I understand your post, you are looking for a way to determine drive parameters.
Wiki states that "SATA uses the same command set as parallel ATA", so you can just use standard command "IDENTIFY" (of course, you should send it according to AHCI rules but command is the same), you could notice it in AHCI article: http://wiki.osdev.org/AHCI#SATA_basic , then scroll down to the line "7) Example".
Post Reply