I have the following partitions on my machine:

enter image description here

I want to resize /dev/sda5 and stick it to sda4, but gparted doesn't allow me.
How can I do it?

  • resize it how? and what does "stick it to sda4" mean? Jan 10, 2022 at 9:39

1 Answer 1


You can't, you need to unmount it first. And because it is your / filesystem, you need to use a LiveCD (GParted has a special LiveCD but you can use the Ubuntu installation image too).

Some filesystems can be resized when mounted and ext4 is one of them, but you don't want to just resize it, you also need to move the entire partition to the left, because partitions can be resized only to the right. This means copying the data and it cannot be done when the partition is mounted.

Note that the Resize/Move operation in GParted can be dangerous (for example losing power during it would be really bad) so make sure to backup your data first.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .