What is the best, safest way to create another partition after installation Ubuntu 20.04? [duplicate]

I've already installed Ubuntu 20.04, but I did not make any separate partitions beside the one the operating system is installed on.

Now I would like to create a new partition, as safely and simply as possible. Please excuse me I am brand new in Linux(Ubuntu 20.04)


Since its a new install you hopefully dont have a lot of precious data on it, but go ahead and make a backup anyway..

If you really mean partition, and not volume, you should be able to just fire up gparted and shrink the existing partition (which will shrink the filesystem for you too), then create a new partition in the new free space.

If you cant do this, its still fairly simple. Its not massively risky, but you'll want that backup we talked about:

  1. shrink the filesystem - resize2fs can help you here
  2. shrink the partition to just a bit bigger than the new fs size
  3. grow the filesystem to the new partition size
  4. make a new partition in the new space