The root partition space in my Ubuntu 18.04 LTS is almost exhausted, so I want to extend this partition. This is a picture from :Gparted output. I want to merge the /dev/sda8
partition with the unallocated space preceding it. I used sudo resize2fs /dev/sda8
, and it gave
resize2fs 1.44.1 (24-Mar-2018)
The filesystem is already 4941312 (4k) blocks long. Nothing to do!
I was following this link. But it is not working. Is there any way of achieving what I want to do without using a live Gparted session? And also, is it absolutely necessary to have swap space adjacent to /
?