What you are trying to do does not work from within a running system ... so follow these steps :
- Boot from a GParted Live media, either GParted Live or Ubuntu Live media.
Right click the
swap partition and select swap off in case it is mounted.
As there is no data on
sda5, first delete
sda5 and then
sda1, right click the partition and select Resize/Move to increase it.
Now create a new
linux-swap partition from the unallocated free space.
You have to update the UUIDs of the partitions in the
/etc/fstab file afterwards.
Open a terminal and execute :
sudo mount /dev/sda1 /mnt
To correct the UUID entries in the fstab file execute :
Open another terminal and execute :
sudo gedit /mnt/etc/fstab
Replace the UUID entries of
sda1 (in case it is different) and
(with those entries of the output given from the
Shutdown, remove the Live media and boot the operating system ...