Detect SATAs in real machine.

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
donggas90
Member
Member
Posts: 38
Joined: Fri Oct 17, 2014 12:07 pm

Detect SATAs in real machine.

Post by donggas90 »

I solved to find IDE and SCSI in VMware at this topic.
However in real machine probably that way doesn't match.

I had been querried all PCI devices in my PC and results are below.
Only listed device that has valid Vendor ID and Device ID.
All numeric in decimal.
  • Bus Device Function / ClassCode Subclass Prog IF
    0 0 0 / 6 0 0
    0 1 0 / 6 4 0
    0 22 0 / 7 128 0
    0 26 0 / 12 3 32
    0 27 0 / 4 3 0
    0 28 0 / 6 4 0
    0 28 1 / 6 4 0
    0 28 2 / 6 4 0
    0 28 3 / 6 4 0
    0 28 4 / 6 4 0
    0 28 5 / 6 4 0
    0 28 6 / 6 4 1
    0 28 7 / 6 4 0
    0 29 0 / 12 3 32
    0 31 0 / 6 1 0
    0 31 2 / 1 6 1
    0 31 3 / 12 5 0
    1 0 0 / 3 0 0
    1 0 1 / 4 3 0
    3 0 0 / 12 3 48
    6 0 0 / 12 3 48
    7 0 0 / 2 0 0
    8 0 0 / 6 4 1
    9 3 0 / 12 0 16
    9 3 1 / 12 0 16
    9 3 2 / 12 0 16
    9 3 3 / 12 0 16
    9 3 4 / 12 0 16
    9 3 5 / 12 0 16
    9 3 6 / 12 0 16
    9 3 7 / 12 0 16
    10 0 0 / 1 6 1
There are only two SATA with ACHI detected.
but my mainboard has more SATA slots and they are now using.
1SDD, 4HDDs and 1ODD are connected.

Mainboard model is ASUS P8P67.
Image


and I'll attach Windows Device Manager screen.
cap.PNG
I'm a Korean thus my Windows using Korean.
so listing some Korean in English below.
드라이브 is Drive
표준 is Standard
컨트롤러 is Controller

In Windows Device Manager, ACHI are can see device position in PCI so can compare with my OS.
but ATAs and CD/DVD-ROMs are not.
Format like this.
(Channel 1, Target 0, Lun 0)
It means, are they using another Interface instead of PCI?

What PCI device is SDD, HDD or ODD?

Additionally, Why Windows marked pair of ATAs as same position and name?
Such as 'ATA Channel0' and 'ATA Channel1'.

Thanks.
Octocontrabass
Member
Member
Posts: 5590
Joined: Mon Mar 25, 2013 7:01 pm

Re: Detect SATAs in real machine.

Post by Octocontrabass »

donggas90 wrote:There are only two SATA with ACHI detected.
There are two SATA controllers. One SATA controller has 6 ports, and the other SATA controller has 2 ports. This is what Linux says about your motherboard:

Code: Select all

lspci -knn: 00:1f.2 SATA controller [0106]: Intel Corporation Cougar Point 6 port SATA AHCI Controller [8086:1c02] (rev 04)
lspci -knn: 	Subsystem: ASUSTeK Computer Inc. Device [1043:844d]
lspci -knn: 	Kernel driver in use: ahci
lspci -knn: 0a:00.0 SATA controller [0106]: Marvell Technology Group Ltd. Device [1b4b:9130] (rev 11)
lspci -knn: 	Subsystem: ASUSTeK Computer Inc. Device [1043:8438]
lspci -knn: 	Kernel driver in use: ahci
donggas90 wrote:Format like this.
(Channel 1, Target 0, Lun 0)
It means, are they using another Interface instead of PCI?
They are using SATA.
donggas90 wrote:What PCI device is SDD, HDD or ODD?
Those are not PCI devices, those are SATA devices. You must communicate with the SATA controller to find them.
donggas90 wrote:Additionally, Why Windows marked pair of ATAs as same position and name?
Such as 'ATA Channel0' and 'ATA Channel1'.
Some of those belong to the first SATA controller, and others belong to the second SATA controller. Change the view from "Devices by type" to "Devices by connection" and it will make sense.
donggas90
Member
Member
Posts: 38
Joined: Fri Oct 17, 2014 12:07 pm

Re: Detect SATAs in real machine.

Post by donggas90 »

Thanks Octocontrabass.
Octocontrabass wrote: They are using SATA.
You mean, SATA AHCI has 6 'Ports' for each and SDD and HDDs are connected with those 'Ports'?
Maybe I have to read this wiki.
Last edited by donggas90 on Sat Nov 01, 2014 3:05 am, edited 1 time in total.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Detect SATAs in real machine.

Post by Combuster »

You mean, SATA AHCI has 6 'Ports' for each and 'Port' is different with Function of PCI?
Maybe I have to read this wiki.
The forum rules actually instruct you to read before asking. There's this nice picture on that page that demonstrates exactly how wrong you are :wink:
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
donggas90
Member
Member
Posts: 38
Joined: Fri Oct 17, 2014 12:07 pm

Re: Detect SATAs in real machine.

Post by donggas90 »

Combuster wrote:The forum rules actually instruct you to read before asking.
I didn't know about AHCI at all before asking.
NOW I have been known little about AHCI.
If didn't asked, also didn't realized to have to read that wiki. :lol:
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Detect SATAs in real machine.

Post by Combuster »

donggas90 wrote:I didn't know about AHCI at all before asking.
What is it doing in your opening post then? :wink:

Just be more careful with the questions you ask.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
donggas90
Member
Member
Posts: 38
Joined: Fri Oct 17, 2014 12:07 pm

Re: Detect SATAs in real machine.

Post by donggas90 »

You already know many of HW and experienced about OS.
so you can infer something for OS.

Before I said, I'm a programmer and a begginner of OS.
I had not been used many HWs deeply even CPU instructions before.
AHCI as well.
I heard that name sometimes, but didn't know what is doing for.
and I asked many kewords of questions also.

You need to regard begginers of 'HW'.
Maybe somebodys are not know about even CPU.

In concretely, I didn't know about that SATA can indirectly connected with PCI by AHCI.
I thought, all about SATAs are connected with PCI directly only.
That's it.
You can think this point is very basic.
but for someone who is a begginer, that can be very big problem such as me.

Thanks for advise!
Post Reply