Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this 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 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. –  user255742 Mar 17 at 22:58
    
user255742 check my edits regarding a swap partition creation. –  rusty Mar 18 at 4:17
    
In Turkish, ayrilmamis = "unallocated", yeni birim = "new partition" –  Michael McGinnis Nov 21 at 19:26

2 Answers 2

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.

share|improve this answer

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.

share|improve this answer
    
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 –  user255742 Aug 1 at 19:03

Your Answer

 
discard

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.