If the disk size exceeds 2TB, you can use the parted command to create the partition.
We first mount a 4TB disk:
Partition partitioning using the parted tool:
Note that we use Mklabel GPT to modify the disk partition format to GPT format, which is MBR format by default. If no modification is made, only 2.2TB partitions are supported by default:
When you use Mkpart to do partitions, you will get an error:
Partition length of 8587837439 sectors exceeds the msdos-partition-table-imposed maximum of 4294967295
The full name of the MBR is the Master boot record (master boot Records), the primary boot sector is the first sector of the hard disk, consisting of three parts, the master boot record MBR, the hard disk partition table DPT, and the hard disk valid flag. The MBR can only support 4 primary partitions, 2.2TB size partitions.
GPT is the globally Unique Identifier Partition table, which is the UUID partition tables, because the MBR-supported disk size limits have been unable to meet hardware development, The main function of GPT is to break the 2.2TB limit and can support 18EB size partitions.
Reference Link: http://www.chinaz.com/server/2016/1017/595444.shtml
After the partition is done with parted, you can use the corresponding MKFS to format the file system according to the normal format of the partition:
After mount, view the file system size: