Using Gparted

Hi,

I’ve been trying to use GParted Live CD to shrink my Windows XP partition and allocate this space to /home.

On GParted I shrank my /dev/sda1 (Windows) from 36GB to 26 GB. Then I had 10 GB of unallocated space. I didn’t know how I could use this unallocated space to increase the size of /dev/sda7 (/home). How do you do this?

Thanks.

You probably can’t

I would need to see fdisk output to know for certain

In su terminal

fdisk -l

The unallocated space will need to be next to the one you want to grow (/dev/sda7?).

Then if the properties of /dev/sda7 includes the size, you should be able to increase it to fill in the space.

I haven’t used GParted lately, unless you count during Ubuntu installation. If this is true then this was something I did, where I deleted a partition and then increased the size of the partition next to it to take that space.

Here’s the output from fdisk -l

Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd0f4738c

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        4684    37624198+   7  HPFS/NTFS
/dev/sda2   *        4685        7295    20972857+   f  W95 Ext'd (LBA)
/dev/sda5            4685        4946     2104483+  82  Linux swap / Solaris
/dev/sda6            4947        5936     7952143+  83  Linux
/dev/sda7            5937        7295    10916136   83  Linux

I don’t think the unallocated space is next to /dev/sda7 (at least graphically on GParted it wasn’t). I’m guessing it’d be impossible to make it next to /dev/sda7 since it would mean I need to play with all my partitions?

Not looking good for you:)

You can only add space to the END of a partition. If you reduce the first partition you would need to move the next so that is is at the next position after the first. Then you would could increase the size of the second or repeat until you get to the partition you want to increase. Extended partitions would need to be resized before increasing one of the sub-partitions.

Alternately you could add a 10 gig partition to the free space and mount it some where in the Linux file system.

You plan to backup before doing any of this right? There is just about a million ways to shoot your foot. :open_mouth: