You must mean P1 and P5 for Rev2 boards, and P1 for Rev1 boards.
Also you really should show pictures of P5 shot from the back of the board, depicting it from the top is confusing, P5 belongs (is designed to be mounted) on the bottom of the board, that is why pin 1 is on the top left, and all the other pins are mirrored too if you look at P5 from the wrong side!
IDE connectors, and the pinheaders they connect to are numbered in a very specific way, to ensure that the first wire on a flatcable connects to pin 1, and the second one to pin 2 etc. If you put the pinheader on the wrong side, and connect an IDE connector to it, the numbering mixes up all even and uneven numbers. This will generate massive confusion, so please do the right thing, and directly learn people to count the pinning from a connector mounted on the bottom side.