Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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'm trying to resize a partition (using GParted) so that the first partition (in yellow) will fill the empty space (in gray). Using GParted, is it possible to resize a partition in order to fill all the unallocated space on the hard disk? I haven't found an option for this under "resize/move" in GParted.

enter image description here

share|improve this question
GParted won't let me expand the first partition (most likely because the linux-swap partition (in red) is in front of it.) – Anderson Green Nov 15 '12 at 2:05
I think I've found a comprehensive walkthrough for this problem:… – Anderson Green Nov 15 '12 at 2:26

As far as I know, the only option is to remove the linux-swap partition (I think - but I can't check it - that you could move it to the end), then resize the partition (and create the swap partition again if you removed it).

share|improve this answer
A relevant question on Askubuntu:… – Anderson Green Nov 15 '12 at 2:09
Is it possible to move a partition (instead of resizing it) using the resize/move option? I'd like to move the swap partition instead of deleting it (if it's possible to do that.) – Anderson Green Nov 15 '12 at 2:13
I don't know (am not on my machine so I can't test much). – Renan Nov 15 '12 at 2:13
In the GParted manual, I found instructions for moving a partition:… However, this can cause the operating system to not boot correctly, in some cases. – Anderson Green Nov 15 '12 at 2:16
Also, how can you create a new swap partition using GParted? – Anderson Green Nov 15 '12 at 2:23

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.