0

So I'm trying to give my ubuntu 16.04 partition more disk space by booting from a pendrive with ubuntu and gparted. I already have a 40gb unallocated disk space, however after watching a few videos, and reading, I saw that it was necessary for the Free Space to be together with the Swap Space and the Ubuntu filesystem root. In my case there is an unknown 1.0MB linux filesystem between the Ubuntu root and the swap space, so I can't do it. Somebody told me it was probably created to protect the swap space. What should I do? Disks

(edit)...After moving partition 7 to the left, I got this enter image description here

however, when I right click on the 8th partition, I don't get the option to resize the partition, and when I try to resize the 9th partition, I can't move it either to the left or to the right (since the unknown or 8th partition is at the left).

Anto
  • 13

2 Answers2

0

I would begin by making a backup utilizing my method here: What's a good back-up strategy for 1 desktop PC? for although I've moved and resized many partitions without error or data loss a power or hardware failure during the process can ruin your day.

I would then continue by issuing the command sudo swapoff -a to insure that the swap partition (7) is not in use.

Then I would move partition 7 to the beginning of the free space to the left until all your free space is next to partition 9. Since p8 is unallocated you might be tempted to delete it but you will want to insure that your fstab is using UUID rather than /dev/sdX entried to insure that you don't impact mounting in some unexpected way.

When all this is complete select partition 9 and select Resize/Move and drag the bounderies left and right as necessary to utilize the space

Specifying Partition Alignment

To specify the alignment of the partition, click the Align to arrow button, and select from the list.

Use MiB alignment for modern operating systems. This setting aligns partitions to start and end on precise mebibyte (1,048,576 byte) boundaries.

MiB alignment provides enhanced performance when used with RAID systems and with Solid State Drives, such as USB flash drives.

Sources: memory and http://gparted.org/display-doc.php?name=help-manual#gparted-resize-partition http://gparted.org/display-doc.php?name=help-manual#gparted-specify-partition-size-and-location

Elder Geek
  • 36,752
0

This one is easy...

update: added steps 5.1 through 5.3.

update: sda8 was unrecognized partition, not unallocated as I first thought, and it just wouldn't move, so we deleted it. Steps 5.1-5.3 not used.

Backup your Ubuntu data in partition 9.

Boot to the Ubuntu Live DVD or USB flash and start gparted.

  1. Right-click on partition 7 and issue a swapoff command.
  2. Right-click on partition 7 and issue a resize/move command.
  3. Drag the center of partition 7 all the way to the left. Click OK.
  4. Right-click on partition 7 and issue a swapon command.
  5. Click the APPLY checkmark icon.

5.1. Right-click on partition 8 and issue a resize/move command.
5.2. Drag the center of partition 8 all the way to the left. Click OK.
5.3. Click the APPLY checkmark icon.

  1. Right-click on partition 9, issue a resize/move command, then drag the center of the partition all the way left, then grab the partition's right-edge handle and drag it all the way to the right. Click OK.
  2. Click the APPLY checkmark icon.
  3. Quit gparted.
  4. In terminal, issue a sudo fdisk -l /dev/sda to make sure that you don't have any misaligned partitions.
  5. Reboot

Cheers, Al

heynnema
  • 73,649