How to partition Hard drive on ubuntu [duplicate]

When installing Ubuntu, it will ask you if it needs to partition the drive for you. This would be the easiest way to proceed.

enter image description here

If you want to partition your drive manually, you will need at least two partitions:

  • One (or more) Ext4 partition: This will be the location for the Ubuntu system itself. Make sure you set the mount point to / (root). Official documentation.
  • One Swap partition: Used as virtual memory. Also used for storing your memory when going into hibernate mode. You should let the size of it depend on the size of your hard-disc and RAM. Official documentation

To manage your partitions, you could use a tool like GParted, or the installation disc.