Originally Posted by asinghpu
i have laptop and linux is installed .
Do you also have Linux on a liveCD? Many Linux distributions install from a liveCD, so the media you installed Linux from might be a liveCD.
Do you know what boot manager you are using to start Linux? Probably it is grub, but it is best to find out for sure what to fix before breaking it.
You should be booted in the liveCD to shrink the Linux partition before installing XP and you should be booted in the liveCD to repair the Linux boot manager after you install XP.
Make sure you know how to use the liveCD to repair the boot manager before you even resize the partition.
gparted is available as a program to be used inside your installed Linux, but it can't resize the Linux partition that is booted, so it would be pretty useless for you in that form.
gparted is also available as a liveCD. That might be what you want. I don't have a copy of that and don't know if it includes what you also need to repair your boot manager.
Many distributions of Linux are available as a liveCD that includes both gparted and the tools to repair grub. There is no need to have a compatible distribution of liveCD to your installed copy of Linux. I use an older version Mepis liveCD for many such repair tasks on Centos systems. Mepis 8.5 isn't as effective as a stand alone liveCD for repairing other systems, but older versions of Mepis are quite good for that. But if your Linux uses grub2, you would need a liveCD with grub2 support for repairing it.