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

daltonfury42
  • 5,499

2 Answers2

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

MGodby
  • 1,162
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.

daltonfury42
  • 5,499