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