USB Pin Layout
 
Typically the order of the pins is RED, WHITE, GREEN, BLACK, with the RED wire being the 5v Vcc power signal. If you use a digital multimeter or Volt/Ohm meter to measure the voltages of each pin and locate the two 5v pins, then you can figure out the placement of the wires based on the information below. Make certain that you connect the RED wire to the 5v DC pin. Incorrectly connecting the RED wire will cause damage to the cable and/or the motherboard and the USB controller will no longer work properly.
 
PIN FUNCTION PIN FUNCTION
1 Vcc +5v (RED) 2 Ground (BLACK)
3 (-) Data WHITE 4 Ground (BLACK)
5 (+) Data (GREEN) 6 (+) Data (GREEN)
7 Ground (BLACK) 8 (-) Data WHITE
9 Ground (BLACK) 10 Vcc +5v (RED)