- Unmount the swap and logical partition
- use the gparted to delete the partitions
- extend your root partition using gparted
- finally create a logical partition and a swap partition in it
- Verify/modify the /etc/fstab so that UUID matches
Here is a small illustration.Modify for your case accordingly.Feel free to ask if you face any error/doubs and accept the answer if it helped
if you are doing this from system itself then unmount the swap partition before continuing
if doing this from live usb make sure every partition in unmounted ofc ):
- current situation,disk in mbr and swap in lartition
- start by deleting the swap partition
- delete the logical partition
- resize your root ext4 partition
here you might get something like
well read it carefully; basically if anything happens during resizing then you are done and your data is gone );
- root partition size before resizing
- root partition size after resizing
- now it should look like this
- create your logical partition
- allocate te size of logical partition
- create a swap partition in logical partition
- allocate swap partition size
- finally it should look like this.check the list of pending processes
- apply the changes
- all done , this is how it should look like
- correct the UUID of swap partition in
/etc/fstab
/etc/fstab
are as expected after GParted did its surgery.