I have the following partitions on my machine:
I want to resize
/dev/sda5 and stick it to
gparted doesn't allow me.
How can I do it?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
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.