Hard disk formatting larger than 2 TB in CentOS

Source: Internet
Author: User
As the storage space of hard disks continues to expand, the original system file format cannot keep up with the hard disk resizing speed. especially for mobile hard disks larger than 2 TB, traditional MBR partition tables can only support 2 TB of addressing space, therefore, if MBR is used as a partition table, the 3 T hard disk can only use 2 T space. In the past, we used the fdisk command to format the hard disk, but it cannot format disks larger than 2 TB. what should we do? In this case, we need to use GPT Partitioning. this partitioning method has no restrictions currently. The following describes how to format 2 TB or above in linux.

As the storage space of hard disks continues to expand, the original system file format cannot keep up with the hard disk resizing speed. especially for mobile hard disks larger than 2 TB, traditional MBR partition tables can only support 2 TB of addressing space, therefore, if MBR is used as a partition table, the 3 T hard disk can only use 2 T space. In the past, we used the fdisk command to format the hard disk, but it cannot format disks larger than 2 TB. what should we do? In this case, we need to use GPT Partitioning. this partitioning method has no restrictions currently. The following describes how to format a disk larger than 2 TB in linux. the partitioning of a hard disk larger than 2 TB is similar. for details, refer to CentOS 6's division of large-capacity hard disks (larger than 2 TB.

 

In superuser mode, run the fdisk-l command to view the mounted hard disk device. if the device number is/dev/sdb, run the parted command to partition the GPT:

 

1. # parted/dev/sdb

GNU Parted 1.8.1

Using/dev/sdb

Welcome to GNU Parted! Type 'help' to view a list of commands.

 

2. format the MBR disk as GPT

(Parted) mklabel gpt

 

3. divide all the space into one partition

(Parted) mkpart primary 0-1

 

This step can also be set as follows:

Unit TB (unit: TB)

Mkpart primary 0 3 (set as a primary partition, 3 TB in size, 0 at the beginning, and 3 at the end)

 

4. display the configured partition size

(Parted) print

 

5. exit the parted program.

(Parted) quit

 

6. use parted to format the partitions and then mount and use them.

Mkfs. ext3-F/dev/sdb1

Related Article

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.