READ THIS FIRST IF YOU WANT TO RESIZE WINDOWS

**********************************************************************
Setting Up XP (from http://www.dominok.net/en/it/en.it.clonexp.html )

A little nastiness with XP is that it "remembers" its surroundings. It doesn't only keep track of the systems hardware and moans if "too much" of it is altered but also stores data about the partitions it's "surrounded" by in its registry-key HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices This includes hidden partitions, too! 
If one simply clones or resize such a XP and boots the new/moved system, the environment stored in its registry doesn't fit the one it actually detects and XP gets "upset and confused". In some cases login was still possible but followed immediately by automatic logout and system-freeze.

This can easily be circumvented by executing regedit and resetting/deleting the values in registry-key HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices
During its next reboot XP will then regenerate them according to its "new" environment, which, by then, will have been customised by us. 



Personaly, i never purge registry from this value and the resize worked each time. But i must admit that in some case it doesnt. And the problem is that after you perform the resize, if login fails, you cant edit XP registry anymore !
So it seems to be safe to first do this.
**********************************************************************

Shrinking VISTA

At the moment, GParted is not able to shrink Vista. In fact, it sometimes does and sometimes does'nt ! So you need to use ntfsresize in command line to shrink Vista. Don't try to move it, since bootsector wont be update, and then you couldn't boot Vista anymore.
So, if you want to shrink Vista from 40 go to 25 go, open a Terminal and run ntfsresize :

#ntfsresize -s 25G /dev/hda1
"-s" is used to set the size
25G = 25 gigas 
/dev/hda1 is the partition number you want to resize : this info can be returned by GParted : just run it !

Okay, but we just shrink the file system, not the partition !!!
Now we are going to shrink the partition, using fdisk :
#fdisk /dev/hda, and hite "p" to print the layout of your drive.
It will return something like this :
  Device   Boot   Start  End     Blocks  ID  System	
/dev/hda1    *      1    962    7727234   7  HTFS/NTFS

Type "d" to delete the partition we need to shrink.
If you have more than one partition, select the right number of the partition !
Then type "p" to see the partition is gone (to be afraid).
Type "n" to create a new partition, and "p" to use primary ; 
then type the right number = the same as it was before you deleted the partition !
At First cylinder type the value you saw in "Start" column ("1" here !).
At last cylinder (be careful), type the size of the file system + about one go (to be safe).
So in our example : +26G (for 26 gigas).
Then type "p" to see the result.

Well, watch the type of partition you have just created ! It is "83 linux" ! So now, type "t", then the number of the partition you want to change the "type", then type "7" (it is ntfs).
Then type "p" to see the result.

If it sounds good, type "w" to write the changes.
If it sounds unsafe, type "q" to quit without making any change !
And try again.

************************************************************************
