Linux adjusts the disk format to GPT and formats more than 2TB of disk __linux

Source: Internet
Author: User
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:





Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.