I want to install ubuntu on my pc and i have windows xp already installed on it. While formatting the os will it erase on the data on other partitioned drives also or will erase on that partitioned drive which i will choose before installing. i have partition drive C, D and E respectively and windows xp os is installed in C drive. please suggest what to do i have not taken backup of files stores in d and E partitioned drive.
Firstly, backup anything you want to keep. When partitioning, it is very easy to lose all data on the harddrive if you don't know what you are doing
Then given C:\, D:\ and E:\ in windowsXP are distinct partitions, you'll most likely have to sacrifice (at least) one of those three partitions to install Ubuntu. You'll need feasibly at least 8GB hard disk space for Ubuntu.
When you boot Ubuntu from CD/DVD or USB device, go through the wizard (one of the only wizards you'll get in Linux) and when it comes to choosing how Ubuntu will be installed on your hard drive, pick the last option (whether it be "do something else", "manual partition", "for advanced users", etc.). The exact wording will vary from one version of Ubuntu to another, but in my experience it's always been the last option. You should be familiar with your C:\ D:\ and E:\ partitions (they'll all be NTFS or FAT and you should be able to recognize them based on how much disk space each partition takes...if not you can always mount them and look through them in the file manager).
You'll want to make a SWAP partition, which should be double your RAM (if you have 1GB RAM, make a 2GB SWAP partition). Next make an ext4 partition (at least 8GB...you can adjust the size of Linux filesystem partitions but it does take a long time) and make its mounting point
Alternatively, if all you want to do is partition your hard drive, it is possible to grab a live CD just to run gParted, mind you gParted runs quite nicely in an Ubuntu live session as well.
Here's an old screenshot of that important step that takes place during the Ubuntu install wizard:
When you install another OS to replace your existing XP, while formatting you will only erase all files in drive C. The files you have on D and E will not be touched, don't worry.