|"...it tells me that my disk may be broken o damaged and it cant find somewere to store the data ...."|
Do you mean XP doesn't find the hard drive after the intial files have been loaded from the CD?
XP first came out before SATA drives and SATA drive controllers existed, so it does not have the SATA drive controller drivers built into it, and that has not changed in any XP version since.
Even when the bios recognizes the hard drive no problem, if the hard drive is SATA, the XP CD can't recognize the SATA hard drive(s) unless.....
- the bios Setup is set so the SATA controllers are in IDE compatible mode or similar. When Setup isset that way, the SATA drive is recognized as an IDE drive.
Once Setup is finished, and you have loaded the drivers for the mboard from it's CD, you can load the SATA controller drivers, then set the bios Setup to SATA or SATA RAID mode.
This is the easiest way to go.
- OR, if the bios Setup is set so the SATA controllers are in SATA or SATA RAID mode or similar, you must press F6 near the beginning of loading files from the XP CD when you see the prompt to do so, and later on you will need to provide the drivers for the SATA controllers on the mboard on a floppy disk in a floppy drive.
When you boot from the XP CD , before actually running Setup, which comes a bit later after it finds a hard drive, it cannot find the SATA driver files on anything but a floppy disk in the early stages - it can't find files on a flash drive, or on a hard drive, or on a CD, etc., etc. It can find files on a floppy , in a regular floppy drive, or in a USB connected floppy drive, but only a very few models of USB floppy drive are recognized by it, and most of those models are no longer being made.
Even if you don't have a floppy drive ora floppy drive bay in your case, even recent mboards almost always have the floppy data cable header - borrow a floppy drive and floppy data cable if you haven't got one.
OR - you have to make yourself a slipstreamed CD that has the contents of the Windows CD with the SATA controller drivers integrated into it, anduse that to install XP.
If the hard drive is new, it has no partitions, it has not been formatted yet, it has no data on it.
OR - If the hard drive has been used before, if the partition(s) on it has/have been deleted, it has no partitions, it has not been formatted yet, it has no data on it.
When you install XP from the CD, once it can see the hard drive, if the drive has no partitions, you are prompted to make at least one, and it will be formatted automatically while doing that.
Ubuntu may have the SATA controller drivers built into it and may have no problem detecting the SATA drive, but if the drive has no partitionson it, you would have to make at least one partition in Ubuntu too.
It is NOT wise to make only one partition on a hard drive on a generic system (when you install an operating system from aregular CD) - make at least two. Choose a size smaller than the maximum for the first one - that's the only one XP or Ubuntu Setup is concerned about. You can partition and format the rest of the drive after Setup has finished. If the drive capacity is stated in mb, there are 1,024 mb per gb.