0

I used G-PARTED, the partition managing application, to merge my Ubuntu Installation Partition (sda6) with unallocated space. When I try to increase the Ubuntu partition with the resize option, no extra space is available. How can I enlarge my system partition sda6? Unallocating operation is successful

Unallocating operation is successful

The Unallocated space is just left of the Ubuntu Partition

The Drives to be merged are the /dev/sda6 and the unallocated space left of it.

It shows the max and min size same and does not let me merge them

It shows the max and min size same and does not let me merge them

12
  • 3
    See the little 'key' icon by /dev/sda6? That icon means the partition is mounted. Mounted partitions cannot be changed. Boot from a LiveUSB to change your root (/) partition. Also, back up your data first -- re-partitioning is inherently risky.
    – user535733
    Aug 31 at 2:29
  • boot from g parted live? Aug 31 at 2:34
  • what would happen if i unmnount it? just asking Aug 31 at 2:44
  • You can try. Since it's your root (/) partition, if you succeed your system will immediately crash. Not a wise strategy for safely preserving your data.
    – user535733
    Aug 31 at 2:49
  • i wont even try in my dreams btw thanks Aug 31 at 2:51
2

Make sure that you have a good backup of your important Ubuntu files, as this procedure can corrupt or lose data.

Keep these things in mind:

  • always start the entire procedure with issuing a swapoff on any mounted swap partitions, and end the entire procedure with issuing a swapon on that same swap partition

  • a move is done by pointing the mouse pointer at the center of a partition and dragging it left/right with the hand cursor

  • a resize is done by dragging the left/right side of a partition to the left/right with the directional arrow cursor

  • if any partition can't be moved/resized graphically, you may have to manually enter the specific required numeric data (don't do this unless I instruct you to)

  • you begin any move/resize by right-clicking on the partition in the lower pane of the main window, and selecting the desired action from the popup menu, then finishing that action in the new move/resize window

Do the following...

Note: if the procedure doesn't work exactly as I outline, STOP immediately and DO NOT continue.

  • boot to a Ubuntu Live DVD/USB, in “Try Ubuntu” mode
  • start gparted
  • if you don't need /dev/sda5 then delete this partition (there is data on it)
  • if you don't need /dev/sda7 then delete this partition (there is data on it)
  • move /dev/sda6 partition all the way left
  • resize the right side of /dev/sda6 partition all the way right
  • click the Apply icon
4
  • thanks its done Sep 9 at 12:50
  • @KushagraSrivastava Please "accept" this answer by clicking the check mark next to the question. Not only do you show your appreciation for the efforts of the person that helped you, you also will help future readers show this is a useful answer.
    – vanadium
    Sep 10 at 14:22
  • @vanadium Thanks for the nice comment... but not necessary. Yesterday I posted a comment to OP to accept ONE of our answers. OP hasn't responded.
    – heynnema
    Sep 10 at 14:28
  • sorry i forgot....accepted and upvoted too Sep 11 at 16:11
2

It is not trivial to make sda6 use the free space, because it comes before that partition rather than after it. A move of sda6 is therefore required. This can be a lengthy process that may fail.

Take following steps from a live session so none of the partitions on the drive are in use. Do not start this before your backup of your user data is up to date. When manipulating partitions, there is always a risk (human error and/or technical error).

  • Remove partition sda5;
  • Remove partition sda7;
  • Move your current system partition sda6 to the left into the free space. This will take a very long time and may fail;
  • Enlarge the moved sda6 to the right to fill the free space.

A safer and quicker option would be to create a new partition in the free space (after removing /dev/sda5 and 7). If you then move out all your user data from system partition /dev/sda6 to that new partition, it will have plenty of free space. This can be done from within your running Ubuntu system.

4
  • sir i am talking about the unallocated space above sda6 which is 117 gb. you have misinterpreted. Aug 31 at 7:11
  • To me, "above" sda6 means "to the right of sda6". You are using confusing terminology.
    – vanadium
    Aug 31 at 7:15
  • OK, I updated the anser to provide the procedure to enlarge sda6. It involves a move, and this is very lengthy and may fail. So be warned.
    – vanadium
    Aug 31 at 7:22
  • +1, thanks, the live session helped Sep 9 at 12:49
-1

You can't resize the partition because the unallocated space is not adjacent to the sda6 partition. if you are not using the sda7 partition, then you can delete it and then try to resize the sda6.

Make sure you are not using the sda7 before doing the above and make sure you have backed up your data.

1

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.