root@kali:/tmp# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): n
Partition type
p primary (1 primary, 0 extended, 3 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (2-4, default 2):
First sector (6144-2097151, default 6144):
Last sector, +sectors or +size (6144-2097151, default 2097151): +10M
Created a new partition 2 of type 'Linux' and of size 10 MiB.
Command (m for help): p
Disk /dev/sdb: 1 GiB, 1073741824 bytes, 2097152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x293a4722
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 6143 4096 2M 83 Linux
/dev/sdb2 6144 26623 20480 10M 83 Linux
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
....
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 6143 4096 2M 83 Linux
/dev/sdb2 6144 26623 20480 10M 83 Linux
....