Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have 250Gb drive on a laptop, which has Windows 7 on a 122Gb ntfs partition (which has a "boot" flag on it) and Ubuntu 12.04.1 on a 110Gb extended partition, of which the root ext4 partition is 108Gb and the swap is 1.74Gb. You can see everything in the screenshot below. My question is:

  1. I want to diminish the size of the linux root partition and then use that space to increase the windows partition. How do I do that?
  2. Also, is it possible to increase the size of the swap partition and not do any damage? If so, how?

    I'm using GParted, and i'd say i'm pretty confident with it.

Screenshot of my partitions

share|improve this question
Please consider accepting your answer to mark this as solved. Thank you. – Peachy Oct 7 '12 at 5:10

SOLVED! Thanks all! I did everything, and finally got to the point where there was unallocated space in between the windows and ubuntu partitions, but then GParted (in Puppy Linux) would extend the windows partition to include the unallocated space for some reason, so I ended up doing that in windows, and it worked great. Also managed to increase swap size as well.

share|improve this answer

For 1), this will be tough as you will need to shrink the root FS, then the root partition, move the root partition to create a gap between the Windows partition and the extended one, then extend the Windows partition. All this is best done using a LiveCD like

For 2), if you have free unpartitioned HDD space then you will need to: deactivate the swap, extent the swap partition, re-format it (mkswap), re-activate the swap. You need to update the /etc/fstab file to use the right UUID of your new swap.

share|improve this answer
Just added a screenshot. I use puppy linux on a usb stick when partitioning.. – Alex Oct 4 '12 at 21:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.