GPT partition of Centos

Source: Internet
Author: User
Nowadays, hard disks are very cheap and the capacity is N large. common dos partition tables cannot meet the needs of large hard disks. The sin of a dos partition table is that 1. only a limited number of partitions are supported. for historical reasons, only 64 K (4x16 k) is reserved for the primary partition, that is, four primary partitions; 384 k (24x16 k) is reserved for logical partitions, that is, up to 23 logical partitions. 2. it is also a historical reason that 2 TB or more hard disk partitions are not supported. at that time, 2 TB is still an astronomical number, while GPT has the following advantages: 1. the partition table capacity can be expanded to 16 kB, But GPT can

Nowadays, hard disks are very cheap and the capacity is N large. common dos partition tables cannot meet the needs of large hard disks.

Dos partition table:

1. only a limited number of partitions are supported.

For historical reasons, only 64 K (4x16 k) is reserved for the primary partition, that is, 4 primary partitions; 384 k (24x16 k) is reserved for the logical partition ), that is, up to 23 logical partitions can be created.


2. hard disk partitions larger than 2 TB are not supported

This is also the historical reason. at that time, 2 TB is still an astronomical number.



The advantages of GPT are as follows:

1. scalable partition table capacity

A partition is still 16 k, but GPT can expand the capacity of the partition table. after creating a GPT partition table, you can create a small partition, such as 1 M, to store the partition table, the number of partitions has increased significantly.

2. there is nothing to say. it supports large partitions larger than 2 TB.


How to create a GPT partition under CentOS 6

1. parted or gparted

2. gdisk


Use the parted method

 
 
  1. # /usr/sbin/parted -s /dev/sdb mklabel gpt  



Gdisk is the simplest, similar to fdisk.


 
 
  1. # gdisk /dev/sdb


Like fdisk, the derivatives include cgdisk and sgdisk.


You can use the epel source to install gdisk.


 
 
  1. # yum install gdisk --enablerepo=epel


This article is from the "Purple_Grape blog", please be sure to keep this source http://purplegrape.blog.51cto.com/1330104/935664


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.