There is often dispute as to how the header pins are wired on motherboards.
Check your manual see if this tells you the pin layout.
To match with the pin assignments of a port header, wires can be shifted and repositioned within the connector. In some cases, you need to change the connector to suit the layout of the header. Use the tip of a blade and slide it in from the side of the plastic lock. Move in the blade horizontally at the bottom of the plastic lock to release the lock from the terminal. Then, pull out the wire. Insert the wires back into the connector at appropriate positions to match with the pin assignments of the motherboard header.
On most motherboards, the USB header/pin-out consists of 9 pins arranged in 2 rows; and each header allows for 2 USB connections (i.e. USB1 and USB2). Normally, the pins for USB1 and USB2 are in seperate rows.
Red: + 5V / Voltage + / VCC . .
White: USB - / Data - / D - . .
Green: USB + / Data + / D + . .
Black: GND / Voltage - / Ground . .
Black: S-GND / Over Current .
2X5 PINS HEADER
a 2x5 pins header has 2 S-GND pins. You can leave one of the S-GND pins unconnected. Please make sure that the color coded wires are connected to the correct pins. You might have to rearrange the wires if necessary.
2X4 PINS HEADER
a 2x4 pins header has no S-GND pin. You can leave the S-GND wire unconnected. You might have to rearrange the wires if necessary, in such that the wire assignments and pins assignments are matched correctly
On some motherboards, the 4 active pins are not arranged in one same row.
Before shifting the wires, use a marker pen to mark the green and white wires located in the same row. It means that these 2 wires work as a pair. The other green and white wires (unmarked) work as another pair.
Connect the wires to the header in such that the marked green wire is connected to USB1+ pin and the marked white wire to USB1- pin. The remaining wires are connected to the other pins according to their assignments. The connection of S-GND wire is optional.