0

I have a partition in use, ext4 and the operating system is already run, is it possible resize that partition?

Pilot6
  • 88,764
  • 91
  • 205
  • 313
  • 2
    Possible duplicate of [How do you resize a live partition?](https://askubuntu.com/questions/23067/how-do-you-resize-a-live-partition) and [Is it possible (aka safe) to resize a partition while the system is running?](https://askubuntu.com/q/13250/) – karel Sep 02 '19 at 15:43

1 Answers1

1

It is not possible to resize a mounted ext4 partition.

This is possible only for btrfs but only "the right-hand border".

You can boot with Ubuntu LiveUSB and resize it this way.

Pilot6
  • 88,764
  • 91
  • 205
  • 313
  • `man resize2fs` contradicts this. The mounted file system can be expanded with any modern kernel. – doneal24 Sep 02 '19 at 15:55
  • That's true. But it can't be shrinked. So generally "resize" only one way. `btrfs` can both ways. – Pilot6 Sep 02 '19 at 15:58
  • I have never seen a case where one of my customers has requested that their disk allocation been reduced. In my experience, `resize` is only one way - increase the disk size. – doneal24 Sep 02 '19 at 16:10
  • I shrinked filesystems very many times. E.g. if I wanted to create another partition. – Pilot6 Sep 02 '19 at 16:13