For a brief introduction you can read official manual. Basically each storage device will have a structure like this:
+--+---------------+----------------+------------------------+
|PT| Partition 1 | Partition 2 | Partition 3 |
+--+---------------+----------------+------------------------+
0 start end
At the beginning we have a partition table that specify how many partitions we have and the location of them. It can be MBR
or GPT
or other partition tables.
Unlike "MBR", "GPT" doesn't require extend and logical partitions if you need more than 4 partitions. Out of the box, "GPT" supports 128 partitions. Fore more information refer to "advantages of GPT over MBR" in this wiki.
The syntax for mkpart
is:
mkpart [part-type name fs-type] start end
File-system type (fs-type
) is required for data partitions (i.e., non-extended partitions). So If you are creating an extend partition in MBR, you shouldn't specify file-system type. For more information visit the manual.
mkpart
command, start and end are the offset from the beginning of the disk, that is, the “distance” from the start of the disk. For more information read the manual