2

I want to expand home partition refers that folder will be full.

I've been looking this problem on the internet, it was told to boot over "the gparted live cd/usb", but still can not expand its size.

This is the video when I boot through Gparted live usb/cd, but still can't increase the size of my home partition.

And this is picture of my partition setup gparted live on ubuntu : enter link description here

2

2 Answers 2

0

Looking at your setup, I believe you are having a MBR disk and therefore am using a extended partition. This is why you were experiencing the problem. The limitation with MBR is that you can't have more than 4 primary partitions. So what is usually done when you want more than 4 partitions on a MBR disk is to create 3 primary partitions, and make the fourth one an extended partition. Now inside the extended partition you can create multiple logical partitions.

This is the setup you have. You had sda1, sda3 and the windows partition as primary partitions and sda2 is your extended partition within which you have sda5 and sda6 (logical partitions).

Whenever you want to increase the size of a logical partition, you need to first increase the size of the extended partition within which it is contained, and then increase the size of logical partitions in it.

Even if you did not understand what I just told you, never mind, I will walk you through the steps.

  1. You can't modify partitions that are mounted. So the first step is to right click on each partition with a 'key' symbol next to them and unmount them.
  2. Move sda3 to the right to create enough unalocated space between sda6 and sda3.
  3. Now you should be able to expand sda2, your extended partition to take up the free space.

  4. Finally Expand the size of your home(sda6) partition.

A Tip: You could use a bit more swap space to increase your system performance. So while you are at it, before step 3, move the existing sda6 1 or 2 GB to the right and expand your swap space.

6
  • Move sda3 to the right? did you mean resize(increase)? when i do it, it doesnt give unlocated space "between" sda6 and sda3 Aug 12, 2015 at 9:58
  • You have not read carefully. Move sda3 to the right. Then expand sda2 to occupy the space. Then only unallocated space will appear between sda6 and sda3 Aug 12, 2015 at 10:04
  • When you do it(ie move sda3 to the right), where does the unallocated space appear? Aug 12, 2015 at 10:05
  • when i do it, the unallocated space is still under sda3 (no new unallocated space appear). youtu.be/eFoZ3IqaOfQ <--- see this maybe I was misunderstood or doing a wrong step Aug 12, 2015 at 10:19
  • ohh sorry, I was wrong in applying the methods you gave. I just now know that the intent of "move" is increase of the free space preceding. Thanks for your answer. and i found on here help.ubuntu.com/community/HowtoPartition/MovingPartition Aug 12, 2015 at 12:24
0

Here are some simple steps for you to perform right where you were in the video (assuming you really were booting from live cd/usb and that /dev/sda6 really is the partition you have mounted on /home ).

  1. Move /dev/sda3 to the "right" far enough to leave unallocated space between it and /dev/sda2 equal or greater to the amount of space you wish to add to /dev/sda6.
  2. Increase the size of /dev/sda6 to use up as much of the unallocated space directly to the "right" of it as you wish to add to that partition.

Note 1: It is possible that you have to separately increase the size of /dev/sda2 prior to step 2. This depends on whether or not gparted implicitly extend /dev/sda2 as you attempt to extend a partition within it.

Note 2: Moving the beginning sector of a partition to the "right" can potentially take a very long time due to the fact that all of the data on that partition will need to be moved, so be patient.

Note 3: If /dev/sda3 is your root partition, you will need to use chroot to re-install grub prior to rebooting, because grub points to a specific sector on your HDD/SDD, at least if it's not using EFI.

Instructions on how to do this can be found in my answer to this question: Problems restoring grub

3
  • Sorry for long time response. yeah sda6 is my /home and sda3 is my root. But the problem is sda6(/home) and sda2(extended) both can't be expanded. of course sda5(linux-swap) can't be expanded too. Aug 9, 2015 at 1:39
  • @Ramadan_Arif_Hardijansyah, you can expand your swap too.
    – Cbhihe
    Aug 9, 2015 at 17:03
  • @RamadhanArifHardijansyah did you try moving /dev/sda3 to the right first?
    – MGodby
    Aug 10, 2015 at 13:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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