This question already has an answer here:

enter image description here

Here I want to merge unallocated space to ext4 partition. But during running in Ubuntu it is not allowed. Am I right? It has key picture. I must do that Ubuntu DVD booting from it and selecting try Ubuntu there with GParted, I must merge this unallocated part by right clicking on ext4 partition and then selecting shrink. Am I right?

Then for swap area I want to take 5GB from extended partition (which is now called D on Windows). Can I format this partition in Windows or should I use GParted? But in GParted it has key picture. Or in the same way should I do this during trying Ubuntu to merge unallocated space to ext4? Thank you for your answers.

marked as duplicate by Elder Geek, Byte Commander, TheWanderer, Pilot6, Aaron Sep 26 '16 at 15:43

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • I have no idea what the text means in the screenshot. Why don't you run Ubuntu in English? Yes you need to be running a live session (USB/DVD) to edit your partitions. Not sure what you want to do, can you rewrite yoyr text please? Right now it's very unclear. – Alvar Mar 17 '14 at 21:55
  • Ok Sorry for my writing. I want to merge 37.52GiB unallocated part to my ubuntu which is ext4.And I want to take 5GiB from extended part for swap area. – Maksat Yalkabov Mar 17 '14 at 22:58
  • user255742 check my edits regarding a swap partition creation. – precise Mar 18 '14 at 4:17
  • In Turkish, ayrilmamis = "unallocated", yeni birim = "new partition" – Michael McGinnis Nov 21 '14 at 19:26

The steps:

  1. Start GParted in live Ubuntu session,

  2. Unmount (if it's mounted) the partition that will be involved in the resize/move operation, here /dev/sda2 (by right clicking and selecting unmount from the context menu),

  3. Now right click your /dev/sda2 partition and select Resize/Move option, and drag the slider right to cover the entire unallocated space. And then click the Resize/Move button, snap1

  4. After specifying the resize options, from the menu select Edit -> Apply All Operations or click the Apply button in the toolbar. Wait patiently for the operation to complete.

  • 7
    The smudging was unnecessary. – Joseph Christian Hefley Aug 28 '16 at 19:17
  • 2
    Does not work for ubuntu 14.04 and gparted 0.18.0 - maximum and minimum size equals current size – Alexandre Abreu May 17 '17 at 17:34

You can boot from Ubuntu's LiveCD and use GParted on it or download GParted's LiveCD .iso, burn it to a CD and boot into it. The key icon beside a partition means that said partition is mounted and thus cannot be modified. Booting to a LiveCD should resolve this issue. If it does not, use umount to unmount a partition.

Since the unallocated space is to the left of the ext4 partition you wish to resize, you'll first need to move the partition to the left of the unallocated space, which might cause boot error. Follow GParted's instructions on moving partitions.

Then right-click on the ext4 partition and select "resize". Expanding it will shrink the unallocated space and expand the partition's free space. Leave 5GB unallocated and use it to create a swap area.

  • should I format unallocated part to ext4 before emereging or resizing sda2 will do it for me ? and unallocated part is the right of ext4 , should I slide to the right – Maksat Yalkabov Aug 1 '14 at 19:03

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