Hi
Go into your setup and look at what drive is adressed at each port; 1,2,3,4....
Then go to Device Manager and look how many SATA controller you have and how many ports for each, then start count from 0 for IdePort0, 1, 2, etc. for each SATA controller, so if you got 4 ports for each SATA controler, here it is how you got to count:
drive 1 - IdePort0, drive 2 - IdePort1, drive 3 - IdePort2 and drive 4 - IdePort3 in sequence
I hope it helps