Hard drive capacity is reduced

Hello,
I have a 2nd internal hard drive 160 GB formatted my pc . After installing Windows XP ,, my drive E does not open and gives me a message to format. I formatted and it opens but its capacity is 31 GB. I do not know why. If you can give me the solution please and thank you in advance.
