Home  >  Article  >  System Tutorial  >  How to partition a disk larger than 2T?

How to partition a disk larger than 2T?

王林
王林forward
2024-03-12 15:50:03569browse

Since I purchased a disk cabinet specifically for storage, I later considered the dynamic management of disk capacity and planned to use LVM for dynamic expansion management. First, let the front-end mounting machine recognize the logical volume group of the disk cabinet, such as: /dev/sdb

How to partition a disk larger than 2T?

First introduce two types of partition tables:

MBR partition table: (MBR meaning: master boot record)
Maximum supported volume: 2T (T; terabytes, 1TB=1024GB)
Limits on partitions: Up to 4 primary partitions or 3 primary partitions plus one extended partition.
GPT partition table: (GPT meaning: GUID partition table)
Maximum volume supported: 18EB, (E: exabytes, 1EB=1024TB)
Each disk supports up to 128 partitions

Use parted to create a partition larger than 2T:

1,parted /dev/sdb
You can enter p to print disk information, check the partition status, and find the starting and ending locations.

2,mklabel gpt
Set the partition type to gpt

3,mkpart primary 0 1572860
primary refers to the partition type as the main partition, 0 is the starting position of the partition, and 1572860 is the ending position of the partition.

4,quit
After completion, use the quit command to exit.

The above is the detailed content of How to partition a disk larger than 2T?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:linuxprobe.com. If there is any infringement, please contact admin@php.cn delete