|just to clarify: 2 partitions on the drive...?|
d = XP and d: = ubuntu;
or is it
c = ubuntu and d: = XP?
And how are you setting about repairing XP?
This site has a very comprehensive and clear set of how to go about it instructions...