Changing Partition Sizes

I installed Windows XP on a 200gb partition and left remaining 50gb for opensuse parition.
I now want to change that and give linux 200gb and leave windows with less space.
How can i do that?

thanks

You can “defrag” the xp partition from within the running xp. Then boot the computer using the application Gparted on a bootable CD thac can be downloaded from here:
SourceForge.net: Files

Use that to resize the xp partition downwards and to increase the Suse partitions into the space that is freed up.

If you want a more exact game plan you should post the dialogue you get in a console window when you enter this command in Suse:

sudo /sbin/fdisk -l

Disco /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cilindros of 16065 * 512 = 8225280 bytes
Disk identifier: 0x493c493b

Disposit. Inicio Comienzo Fin Bloques Id Sistema
/dev/sda1 * 1 25496 204796588+ 7 HPFS/NTFS
/dev/sda2 25497 30401 39399412+ f W95 Ext’d (LBA)
/dev/sda5 25497 25758 2104483+ 82 Linux swap / Solaris
/dev/sda6 25759 27638 15101068+ 83 Linux
/dev/sda7 27639 30401 22193766 83 Linux

Disco /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cilindros of 16065 * 512 = 8225280 bytes
Disk identifier: 0x493c493b

Disposit. Inicio    Comienzo      Fin      Bloques  Id  Sistema
/dev/sda1   *           1       25496   204796588+   7  HPFS/NTFS
/dev/sda2           25497       30401    39399412+   f  W95 Ext'd (LBA)
/dev/sda5           25497       25758     2104483+  82  Linux swap / Solaris
/dev/sda6           25759       27638    15101068+  83  Linux
/dev/sda7           27639       30401    22193766   83  Linux

also, when i take away space from the windows partition, how do distribute it among all of the linux paritions ??? (swap , etc ) ?

Back up important data in windows and Linux first.

I’d do something like these targets, assuming sda6 is the root partition and sda7 is the /home partition.
reduce sda1 to 50Gb (as you suggested) leaving 150 more to add to linux, making 200 total.
Your swap partition is 2GB which is quite enough already so leave that.
Your root (if it’s sda6 is roughly 15.5Gb which is arguably enough but you could increase it to 20Gb)
The storage space is sda7 (if it’s /home) and that’s where the bulk should go so make it to be approx 178Gb
sda1 50Gb
sda2 (this is just a shell that surrounds sda5 + 6+ 7) 200Gb
within that shell you have sda5 (2Gb) + sda6 (20Gb) + sda7 (178Gb)

I’d do it this way once the GParged GUI is on the screen. There’s a list of partitions below the graphic horizontal display at the top.

In the list - RightClick on sda1 and select resize/move. A panel of sda1 opens. Use the mouse to drag the right hand end of sda1 graphic to the left until the size is 50Gb. Click the button (resize/move) to lock it in.

(Don’t click the “Apply” button at the top now or at all until the whole list below is finished and you’ve approved it.)

Now R-click on sda2 in the list and select resize/move. When the resizer graphic opens, use your mouse to pull the left side of sda2 to occupy the free space. Lock that in with the button.

Now open a resizer panel for sda5. Use the mouse to drag the whole of sda5 to the left – keeping the same size, just moving left until the free space has gone across to the right side of the graphic. Lock it in.

Now open a resizer panel for sda6. Drag it fully to the left. Then pull the right hand end until it has a size of 20Gb. Lock it in.

Now open a resizer for sda7. Drag the whole thing to the left and then pull the right side to the right to take up all the remaining space. Lock it in.

Cross fingers and on the top menu click the “Tick” button labeled Apply. It could take an hour or so to finish if there’s a lot of data to move around.

Luck

thank you vvvveeeeeeery much, you were very helpful !!

In fact, on windows parition there not much things installed, just a couple of things that dont work under Linux.

How do i confirm which of the sda paritions is my home??
I generally put my things into My Documents under Common folders in My Computer.

Hi there,

This command will show which partitions go to what device:

#df -h

This is also a wonderful tool:

http://partedmagic.com/

(Full site content is not available currently, though you can still download this tool.)

Partedmagic installs a separate bootable kernel - you can use it to run gparted without actually needing a boot CD. Very handy.

Good luck!

Pete

as Pete said: df -h

Go with Gparted if you want to use the blow by blow method I outlined.