Create a new partition in Linux with fdisk

You must be in fdisk command mode to do this:

fdisk /dev/sda
After entering in command mode, now press “n” command to create a new partition under /dev/sda with specific size:
Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
While creating a new partition, it will ask you two options ‘extended‘ or ‘primary‘ partition creation. Press e for extended partition and p for primary partition. Then it will ask you to enter following two inputs.
First cylinder number of the partition to be create.
Last cylinder number of the partition to be created (Last cylinder, +cylinders or +size).

Basically the first option should be kept default (just press Enter).
You can enter the size of cylinder by adding +5000M in last cylinder. Here, + means addition and 5000M means size of new partition.

Keep in mind that after creating a new partition, you should enter w command to alter and save new changes to partition table.